-
Notifications
You must be signed in to change notification settings - Fork 0
Weather
There is a great possibilie to get weather informationen from openweathermap.org. But first you need to create an account and get a API Key.
I need the weather plus 3 day forecast for the actual GPS Position. So my Request is
And this is the answer:
{"city":{"id":2929670,"name":"Erfurt","coord":{"lon":11.03333,"lat":50.98333},"country":"DE","population":0},"cod":"200","message":0.0054,"cnt":3,"list":[{"dt":1483873200,"temp":{"day":0.26,"min":-3.73,"max":0.26,"night":-3.02,"eve":-3.73,"morn":-2},"pressure":1002.8,"humidity":100,"weather":[{"id":600,"main":"Snow","description":"mäßiger Schnee","icon":"13d"}],"speed":1.92,"deg":322,"clouds":88,"snow":0.56},{"dt":1483959600,"temp":{"day":-2.27,"min":-5.7,"max":-2.27,"night":-4.48,"eve":-5.7,"morn":-4.14},"pressure":1000.14,"humidity":96,"weather":[{"id":600,"main":"Snow","description":"mäßiger Schnee","icon":"13d"}],"speed":3.76,"deg":256,"clouds":24,"snow":0.31},{"dt":1484046000,"temp":{"day":0.62,"min":-2.43,"max":1.15,"night":0.69,"eve":0.01,"morn":-2.43},"pressure":984.23,"humidity":96,"weather":[{"id":601,"main":"Snow","description":"Schnee","icon":"13d"}],"speed":3.46,"deg":247,"clouds":32,"snow":4.25}]}
For the visualization, i download some weather icons from http://adamwhitcroft.com/climacons/ and convert this to a 1-color-BMP file.