Skip to content

Instantly share code, notes, and snippets.

@mwittig
Last active July 29, 2016 09:36
Show Gist options
  • Save mwittig/5d792dc784b79803b308920dcc661589 to your computer and use it in GitHub Desktop.
Save mwittig/5d792dc784b79803b308920dcc661589 to your computer and use it in GitHub Desktop.
Openweather Intermittent Wrong Temperature Values Issue (search for "temp":7)

Observations

The response data seems to originate from different source referred to by property "base" in the data record. What I noticed is that the bogus 7 degrees temperature values always originate from "base": "stations" while "base": "cmc stations" seem to provide correct values all times. It should also be noted that "base": "stations" sometimes provides correct values.

0,30 * * * * ~/openweather.sh
Do 28. Jul 00:00:01 CEST 2016
{"coord":{"lon":13.07,"lat":52.4},"weather":[{"id":802,"main":"Clouds","description":"überwiegend bewölkt","icon":"03d"}],"base":"stations","main":{"temp":7,"pressure":1017,"humidity":65,"temp_min":7,"temp_max":7},"visibility":10000,"wind":{"speed":5.7,"deg":260},"clouds":{"all":40},"dt":1458406200,"sys":{"type":1,"id":4892,"message":0.0329,"country":"DE","sunrise":1469589724,"sunset":1469646321},"id":2852458,"name":"Potsdam","cod":200}
Do 28. Jul 00:30:01 CEST 2016
{"coord":{"lon":13.07,"lat":52.4},"weather":[{"id":741,"main":"Fog","description":"Nebel","icon":"50n"}],"base":"cmc stations","main":{"temp":17.84,"pressure":1015,"humidity":88,"temp_min":16,"temp_max":19},"wind":{"speed":2.6,"deg":260},"clouds":{"all":75},"dt":1469658312,"sys":{"type":1,"id":4892,"message":0.0112,"country":"DE","sunrise":1469589726,"sunset":1469646319},"id":2852458,"name":"Potsdam","cod":200}
Do 28. Jul 01:00:01 CEST 2016
{"coord":{"lon":13.07,"lat":52.4},"weather":[{"id":741,"main":"Fog","description":"Nebel","icon":"50n"}],"base":"stations","main":{"temp":17.7,"pressure":1015,"humidity":88,"temp_min":16,"temp_max":19},"visibility":6000,"wind":{"speed":2.6,"deg":260},"clouds":{"all":75},"dt":1469659827,"sys":{"type":1,"id":4892,"message":0.0336,"country":"DE","sunrise":1469589728,"sunset":1469646317},"id":2852458,"name":"Potsdam","cod":200}
Do 28. Jul 01:30:01 CEST 2016
failed to connect
Do 28. Jul 02:00:01 CEST 2016
failed to connect
Do 28. Jul 02:30:01 CEST 2016
{"coord":{"lon":13.07,"lat":52.4},"weather":[{"id":802,"main":"Clouds","description":"überwiegend bewölkt","icon":"03d"}],"base":"stations","main":{"temp":7,"pressure":1017,"humidity":65,"temp_min":7,"temp_max":7},"visibility":10000,"wind":{"speed":5.7,"deg":260},"clouds":{"all":40},"dt":1458406200,"sys":{"type":1,"id":4892,"message":0.0329,"country":"DE","sunrise":1469676133,"sunset":1469732711},"id":2852458,"name":"Potsdam","cod":200}
Do 28. Jul 03:00:01 CEST 2016
failed to connect
Do 28. Jul 03:30:01 CEST 2016
{"coord":{"lon":13.07,"lat":52.4},"weather":[{"id":701,"main":"Mist","description":"trüb","icon":"50n"},{"id":741,"main":"Fog","description":"Nebel","icon":"50n"}],"base":"cmc stations","main":{"temp":17.95,"pressure":1015,"humidity":88,"temp_min":16.67,"temp_max":19},"wind":{"speed":2.1,"deg":250},"clouds":{"all":75},"dt":1469669038,"sys":{"type":1,"id":4892,"message":0.0032,"country":"DE","sunrise":1469676137,"sunset":1469732707},"id":2852458,"name":"Potsdam","cod":200}
Do 28. Jul 04:00:01 CEST 2016
{"coord":{"lon":13.07,"lat":52.4},"weather":[{"id":701,"main":"Mist","description":"trüb","icon":"50n"},{"id":741,"main":"Fog","description":"Nebel","icon":"50n"}],"base":"cmc stations","main":{"temp":17.83,"pressure":1015,"humidity":93,"temp_min":16.67,"temp_max":18.89},"wind":{"speed":2.6,"deg":250},"clouds":{"all":75},"dt":1469671019,"sys":{"type":1,"id":4892,"message":0.3903,"country":"DE","sunrise":1469676139,"sunset":1469732705},"id":2852458,"name":"Potsdam","cod":200}
Do 28. Jul 04:30:01 CEST 2016
{"coord":{"lon":13.07,"lat":52.4},"weather":[{"id":701,"main":"Mist","description":"trüb","icon":"50n"},{"id":741,"main":"Fog","description":"Nebel","icon":"50n"}],"base":"cmc stations","main":{"temp":17.64,"pressure":1015,"humidity":93,"temp_min":16.67,"temp_max":18.89},"wind":{"speed":2.1,"deg":270},"clouds":{"all":75},"dt":1469672819,"sys":{"type":1,"id":4892,"message":0.0045,"country":"DE","sunrise":1469676141,"sunset":1469732703},"id":2852458,"name":"Potsdam","cod":200}
Do 28. Jul 05:00:02 CEST 2016
{"coord":{"lon":13.07,"lat":52.4},"weather":[{"id":802,"main":"Clouds","description":"überwiegend bewölkt","icon":"03d"}],"base":"stations","main":{"temp":7,"pressure":1017,"humidity":65,"temp_min":7,"temp_max":7},"visibility":10000,"wind":{"speed":5.7,"deg":260},"clouds":{"all":40},"dt":1458406200,"sys":{"type":1,"id":4892,"message":0.0329,"country":"DE","sunrise":1469676143,"sunset":1469732701},"id":2852458,"name":"Potsdam","cod":200}
Do 28. Jul 05:30:01 CEST 2016
failed to connect
Do 28. Jul 06:00:02 CEST 2016
failed to connect
Do 28. Jul 06:30:01 CEST 2016
failed to connect
Do 28. Jul 07:00:01 CEST 2016
failed to connect
Do 28. Jul 07:30:01 CEST 2016
{"coord":{"lon":13.07,"lat":52.4},"weather":[{"id":741,"main":"Fog","description":"Nebel","icon":"50d"}],"base":"cmc stations","main":{"temp":17.34,"pressure":1015,"humidity":88,"temp_min":16.67,"temp_max":18.33},"wind":{"speed":2.1,"deg":260},"clouds":{"all":0},"dt":1469683752,"sys":{"type":1,"id":4892,"message":0.005,"country":"DE","sunrise":1469676152,"sunset":1469732691},"id":2852458,"name":"Potsdam","cod":200}
Do 28. Jul 08:00:01 CEST 2016
{"coord":{"lon":13.07,"lat":52.4},"weather":[{"id":741,"main":"Fog","description":"Nebel","icon":"50d"}],"base":"cmc stations","main":{"temp":17.8,"pressure":1015,"humidity":88,"temp_min":17,"temp_max":20},"wind":{"speed":2.1,"deg":260},"clouds":{"all":0},"dt":1469685001,"sys":{"type":1,"id":4892,"message":0.011,"country":"DE","sunrise":1469676154,"sunset":1469732689},"id":2852458,"name":"Potsdam","cod":200}
Do 28. Jul 08:30:01 CEST 2016
{"coord":{"lon":13.07,"lat":52.4},"weather":[{"id":802,"main":"Clouds","description":"überwiegend bewölkt","icon":"03d"}],"base":"stations","main":{"temp":7,"pressure":1017,"humidity":65,"temp_min":7,"temp_max":7},"visibility":10000,"wind":{"speed":5.7,"deg":260},"clouds":{"all":40},"dt":1458406200,"sys":{"type":1,"id":4892,"message":0.0329,"country":"DE","sunrise":1469676156,"sunset":1469732687},"id":2852458,"name":"Potsdam","cod":200}
Do 28. Jul 09:00:01 CEST 2016
{"coord":{"lon":13.07,"lat":52.4},"weather":[{"id":802,"main":"Clouds","description":"überwiegend bewölkt","icon":"03d"}],"base":"stations","main":{"temp":7,"pressure":1017,"humidity":65,"temp_min":7,"temp_max":7},"visibility":10000,"wind":{"speed":5.7,"deg":260},"clouds":{"all":40},"dt":1458406200,"sys":{"type":1,"id":4892,"message":0.0329,"country":"DE","sunrise":1469676158,"sunset":1469732685},"id":2852458,"name":"Potsdam","cod":200}
Do 28. Jul 09:30:01 CEST 2016
failed to connect
Do 28. Jul 10:00:01 CEST 2016
failed to connect
Do 28. Jul 10:30:01 CEST 2016
{"coord":{"lon":13.07,"lat":52.4},"weather":[{"id":802,"main":"Clouds","description":"überwiegend bewölkt","icon":"03d"}],"base":"stations","main":{"temp":7,"pressure":1017,"humidity":65,"temp_min":7,"temp_max":7},"visibility":10000,"wind":{"speed":5.7,"deg":260},"clouds":{"all":40},"dt":1458406200,"sys":{"type":1,"id":4892,"message":0.0329,"country":"DE","sunrise":1469676164,"sunset":1469732679},"id":2852458,"name":"Potsdam","cod":200}
Do 28. Jul 11:00:01 CEST 2016
{"coord":{"lon":13.07,"lat":52.4},"weather":[{"id":802,"main":"Clouds","description":"überwiegend bewölkt","icon":"03d"}],"base":"cmc stations","main":{"temp":23.6,"pressure":1016,"humidity":64,"temp_min":21.67,"temp_max":28.33},"wind":{"speed":3.1,"deg":300},"clouds":{"all":40},"dt":1469696365,"sys":{"type":1,"id":4892,"message":0.0033,"country":"DE","sunrise":1469676166,"sunset":1469732677},"id":2852458,"name":"Potsdam","cod":200}
Do 28. Jul 11:30:01 CEST 2016
{"coord":{"lon":13.07,"lat":52.4},"weather":[{"id":802,"main":"Clouds","description":"überwiegend bewölkt","icon":"03d"}],"base":"cmc stations","main":{"temp":24.51,"pressure":1016,"humidity":64,"temp_min":21.67,"temp_max":30},"wind":{"speed":3.1,"deg":300},"clouds":{"all":40},"dt":1469697629,"sys":{"type":1,"id":4892,"message":0.0095,"country":"DE","sunrise":1469676168,"sunset":1469732675},"id":2852458,"name":"Potsdam","cod":200}
Do 28. Jul 12:00:01 CEST 2016
{"coord":{"lon":13.07,"lat":52.4},"weather":[{"id":802,"main":"Clouds","description":"überwiegend bewölkt","icon":"03d"}],"base":"cmc stations","main":{"temp":24.84,"pressure":1016,"humidity":60,"temp_min":22,"temp_max":30.56},"wind":{"speed":4.1,"deg":250},"clouds":{"all":40},"dt":1469699537,"sys":{"type":1,"id":4892,"message":0.0082,"country":"DE","sunrise":1469676170,"sunset":1469732673},"id":2852458,"name":"Potsdam","cod":200}
Do 28. Jul 12:30:01 CEST 2016
{"coord":{"lon":13.07,"lat":52.4},"weather":[{"id":802,"main":"Clouds","description":"überwiegend bewölkt","icon":"03d"}],"base":"stations","main":{"temp":7,"pressure":1017,"humidity":65,"temp_min":7,"temp_max":7},"visibility":10000,"wind":{"speed":5.7,"deg":260},"clouds":{"all":40},"dt":1458406200,"sys":{"type":1,"id":4892,"message":0.0329,"country":"DE","sunrise":1469676172,"sunset":1469732671},"id":2852458,"name":"Potsdam","cod":200}
Do 28. Jul 13:00:01 CEST 2016
{"coord":{"lon":13.07,"lat":52.4},"weather":[{"id":802,"main":"Clouds","description":"überwiegend bewölkt","icon":"03d"}],"base":"cmc stations","main":{"temp":25.32,"pressure":1016,"humidity":60,"temp_min":21.67,"temp_max":31.67},"wind":{"speed":4.1,"deg":250},"clouds":{"all":40},"dt":1469700029,"sys":{"type":1,"id":4892,"message":0.0027,"country":"DE","sunrise":1469676173,"sunset":1469732669},"id":2852458,"name":"Potsdam","cod":200}
Do 28. Jul 13:30:01 CEST 2016
{"coord":{"lon":13.07,"lat":52.4},"weather":[{"id":802,"main":"Clouds","description":"überwiegend bewölkt","icon":"03d"}],"base":"stations","main":{"temp":7,"pressure":1017,"humidity":65,"temp_min":7,"temp_max":7},"visibility":10000,"wind":{"speed":5.7,"deg":260},"clouds":{"all":40},"dt":1458406200,"sys":{"type":1,"id":4892,"message":0.0329,"country":"DE","sunrise":1469676175,"sunset":1469732667},"id":2852458,"name":"Potsdam","cod":200}
Do 28. Jul 14:00:01 CEST 2016
{"coord":{"lon":13.07,"lat":52.4},"weather":[{"id":803,"main":"Clouds","description":"überwiegend bewölkt","icon":"04d"}],"base":"cmc stations","main":{"temp":23.97,"pressure":1016,"humidity":60,"temp_min":22.78,"temp_max":26.11},"wind":{"speed":3.6,"deg":240},"clouds":{"all":75},"dt":1469707103,"sys":{"type":1,"id":4892,"message":0.0039,"country":"DE","sunrise":1469676177,"sunset":1469732665},"id":2852458,"name":"Potsdam","cod":200}
Do 28. Jul 14:30:01 CEST 2016
{"coord":{"lon":13.07,"lat":52.4},"weather":[{"id":802,"main":"Clouds","description":"überwiegend bewölkt","icon":"03d"}],"base":"stations","main":{"temp":7,"pressure":1017,"humidity":65,"temp_min":7,"temp_max":7},"visibility":10000,"wind":{"speed":5.7,"deg":260},"clouds":{"all":40},"dt":1458406200,"sys":{"type":1,"id":4892,"message":0.0329,"country":"DE","sunrise":1469676179,"sunset":1469732663},"id":2852458,"name":"Potsdam","cod":200}
Do 28. Jul 15:00:02 CEST 2016
failed to connect
Do 28. Jul 15:30:01 CEST 2016
failed to connect
Do 28. Jul 16:00:01 CEST 2016
failed to connect
Do 28. Jul 16:30:01 CEST 2016
{"coord":{"lon":13.07,"lat":52.4},"weather":[{"id":802,"main":"Clouds","description":"überwiegend bewölkt","icon":"03d"}],"base":"stations","main":{"temp":7,"pressure":1017,"humidity":65,"temp_min":7,"temp_max":7},"visibility":10000,"wind":{"speed":5.7,"deg":260},"clouds":{"all":40},"dt":1458406200,"sys":{"type":1,"id":4892,"message":0.0329,"country":"DE","sunrise":1469676187,"sunset":1469732655},"id":2852458,"name":"Potsdam","cod":200}
Do 28. Jul 17:00:01 CEST 2016
{"coord":{"lon":13.07,"lat":52.4},"weather":[{"id":521,"main":"Rain","description":"Regenschauer","icon":"09d"}],"base":"cmc stations","main":{"temp":26.45,"pressure":1015,"humidity":57,"temp_min":23.89,"temp_max":31.67},"wind":{"speed":1.5},"clouds":{"all":75},"dt":1469717746,"sys":{"type":1,"id":4892,"message":0.0037,"country":"DE","sunrise":1469676189,"sunset":1469732653},"id":2852458,"name":"Potsdam","cod":200}
Do 28. Jul 17:30:01 CEST 2016
{"coord":{"lon":13.07,"lat":52.4},"weather":[{"id":521,"main":"Rain","description":"Regenschauer","icon":"09d"}],"base":"stations","main":{"temp":27.16,"pressure":1014,"humidity":57,"temp_min":23,"temp_max":32.78},"visibility":10000,"wind":{"speed":2.1,"deg":180},"clouds":{"all":75},"dt":1469719788,"sys":{"type":1,"id":4892,"message":0.0336,"country":"DE","sunrise":1469676191,"sunset":1469732651},"id":2852458,"name":"Potsdam","cod":200}
Do 28. Jul 18:00:01 CEST 2016
{"coord":{"lon":13.07,"lat":52.4},"weather":[{"id":802,"main":"Clouds","description":"überwiegend bewölkt","icon":"03d"}],"base":"stations","main":{"temp":7,"pressure":1017,"humidity":65,"temp_min":7,"temp_max":7},"visibility":10000,"wind":{"speed":5.7,"deg":260},"clouds":{"all":40},"dt":1458406200,"sys":{"type":1,"id":4892,"message":0.0329,"country":"DE","sunrise":1469676193,"sunset":1469732649},"id":2852458,"name":"Potsdam","cod":200}
Do 28. Jul 18:30:01 CEST 2016
{"coord":{"lon":13.07,"lat":52.4},"weather":[{"id":803,"main":"Clouds","description":"überwiegend bewölkt","icon":"04d"}],"base":"cmc stations","main":{"temp":26.82,"pressure":1014,"humidity":50,"temp_min":25,"temp_max":30.56},"wind":{"speed":1.5},"clouds":{"all":75},"dt":1469723091,"sys":{"type":1,"id":4892,"message":0.0038,"country":"DE","sunrise":1469676194,"sunset":1469732647},"id":2852458,"name":"Potsdam","cod":200}
Do 28. Jul 19:00:02 CEST 2016
failed to connect
Do 28. Jul 19:30:01 CEST 2016
failed to connect
Do 28. Jul 20:00:02 CEST 2016
failed to connect
Do 28. Jul 20:30:01 CEST 2016
failed to connect
Do 28. Jul 21:00:01 CEST 2016
{"coord":{"lon":13.07,"lat":52.4},"weather":[{"id":801,"main":"Clouds","description":"ein paar Wolken","icon":"02d"}],"base":"cmc stations","main":{"temp":22.11,"pressure":1013,"humidity":56,"temp_min":19.44,"temp_max":23.89},"wind":{"speed":0.5},"clouds":{"all":20},"dt":1469732159,"sys":{"type":1,"id":4892,"message":0.0114,"country":"DE","sunrise":1469676204,"sunset":1469732637},"id":2852458,"name":"Potsdam","cod":200}
Do 28. Jul 21:30:01 CEST 2016
{"coord":{"lon":13.07,"lat":52.4},"weather":[{"id":802,"main":"Clouds","description":"überwiegend bewölkt","icon":"03d"}],"base":"stations","main":{"temp":7,"pressure":1017,"humidity":65,"temp_min":7,"temp_max":7},"visibility":10000,"wind":{"speed":5.7,"deg":260},"clouds":{"all":40},"dt":1458406200,"sys":{"type":1,"id":4892,"message":0.0329,"country":"DE","sunrise":1469676206,"sunset":1469732635},"id":2852458,"name":"Potsdam","cod":200}
Do 28. Jul 22:00:01 CEST 2016
{"coord":{"lon":13.07,"lat":52.4},"weather":[{"id":802,"main":"Clouds","description":"überwiegend bewölkt","icon":"03d"}],"base":"stations","main":{"temp":7,"pressure":1017,"humidity":65,"temp_min":7,"temp_max":7},"visibility":10000,"wind":{"speed":5.7,"deg":260},"clouds":{"all":40},"dt":1458406200,"sys":{"type":1,"id":4892,"message":0.0329,"country":"DE","sunrise":1469676208,"sunset":1469732633},"id":2852458,"name":"Potsdam","cod":200}
Do 28. Jul 22:30:02 CEST 2016
failed to connect
Do 28. Jul 23:00:01 CEST 2016
failed to connect
Do 28. Jul 23:30:01 CEST 2016
{"coord":{"lon":13.07,"lat":52.4},"weather":[{"id":802,"main":"Clouds","description":"überwiegend bewölkt","icon":"03d"}],"base":"stations","main":{"temp":7,"pressure":1017,"humidity":65,"temp_min":7,"temp_max":7},"visibility":10000,"wind":{"speed":5.7,"deg":260},"clouds":{"all":40},"dt":1458406200,"sys":{"type":1,"id":4892,"message":0.0329,"country":"DE","sunrise":1469676214,"sunset":1469732627},"id":2852458,"name":"Potsdam","cod":200}
#!/bin/sh
date >> ~/openweather.log
curl --silent 'http://api.openweathermap.org/data/2.5/weather?q=Potsdam,de&apikey=XXXXXXXXXXXXXXXXXXX&units=metric&lang=de' >> ~/openweather.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment