|
Veteran Member
Join Date: Jan 2014
Location: Astral planes
|
08-26-2014
, 01:15
Re: Element
|
#9
|
I like how OpenWeatherMap.org has current wind condition.
$~telnet api.openweathermap.org 80
Trying 162.243.53.59...
Connected to api.openweathermap.org.
Escape character is '^]'.
[
Code:
GET /data/2.5/weather?id=4887398&units=imperial&APPID=register-for-a-openweathermap&u=c HTTP/1.0
...PRESS ENTER TWICE...
HTTP/1.1 200 OK
Server: openresty
Date: Sun, 02 Apr 2017 00:57:51 GMT
Content-Type: application/json; charset=utf-8
Content-Length: 438
Connection: close
X-Cache-Key: /data/2.5/weather?APPID=register-for-a-openweathermap=4887398&u=c&units=imperial
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Access-Control-Allow-Methods: GET, POST
{"coord":{"lon":-87.65,"lat":41.85},"weather":[{"id":800,"main":"Clear","description":"cl ear sky","icon":"01n"}],"base":"stations","main":{"temp":50,"pressur e":1022,"humidity":46,"temp_min":46.4,"temp_m ax":53.6},"visibility":16093,"wind":{"speed":6.93,"deg" :110},"clouds":{"all":1},"dt":1491093300,"sys":{" type":1,"id":1007,"message":0.1218,"country": "US","sunrise":1491132670,"sunset":1491178654 },"id":4887398,"name":"Chicago","cod":200}
Connection closed by foreign host.
This is a good start. If anybody else wanted to collaborate or spin-off with the sniping section! Hint hint wink wink nudge n u d g e.
Last edited by DJEarthQuake; 09-22-2018 at 02:10.
Reason: register-for-a-openweathermap
|
|
|
|