Hi Mark,
I have used
http://api.openweathermap.org/data/2.5/ ... thmyAPIkey] and get
Code: Select all
{"coord":{"lon":-81.43,"lat":42.95},"weather":[{"id":804,"main":"Clouds","description":"overcast clouds","icon":"04d"}],"base":"stations","main":{"temp":277.11,"feels_like":274.28,"temp_min":275.93,"temp_max":278.15,"pressure":1006,"humidity":67},"visibility":10000,"wind":{"speed":0.89,"deg":360,"gust":2.24},"clouds":{"all":100},"dt":1609360755,"sys":{"type":3,"id":2009087,"country":"CA","sunrise":1609333001,"sunset":1609365602},"timezone":-18000,"id":5993934,"name":"Komoka","cod":200}
Are those temps such as 277.11, feels like 274.28 and temp min 275.33 in some code?
And on further checking the MXdiags I see after each successful upload there is a second entry with an error
Code: Select all
2020-12-30 14:41:02.911 OpenWeatherMap: URL = http://api.openweathermap.org/data/3.0/measurements?appid=<key>
2020-12-30 14:41:02.911 OpenWeatherMap: Body = [{"station_id":"KomokaWeather","dt":1609357262,"temperature":4,"wind_deg":360,"wind_speed":2.4,"wind_gust":5.9,"pressure":1006.3,"humidity":86,"rain_1h":1.2,"rain_24h":2.8}]
2020-12-30 14:41:03.349 OpenWeatherMap: Response code = Error - BadRequest
2020-12-30 14:41:03.349 OpenWeatherMap: Response data = {"code":400001,"message":"Station id is invalid"}
2020-12-30 14:45:00.125 OpenWeatherMap: URL = http://api.openweathermap.org/data/3.0/measurements?appid=<key>
2020-12-30 14:45:00.125 OpenWeatherMap: Body = [{"station_id":"KomokaWeather","dt":1609357500,"temperature":4.1,"wind_deg":360,"wind_speed":2.4,"wind_gust":7.1,"pressure":1006.4,"humidity":86,"rain_1h":1,"rain_24h":2.8}]
2020-12-30 14:45:01.993 OpenWeatherMap: Response code = Error - BadRequest
2020-12-30 14:45:01.993 OpenWeatherMap: Response data = {"code":400001,"message":"Station id is invalid"}
2020-12-30 14:46:02.913 OpenWeatherMap: URL = http://api.openweathermap.org/data/3.0/measurements?appid=<key>
2020-12-30 14:46:02.913 OpenWeatherMap: Body = [{"station_id":"KomokaWeather","dt":1609357562,"temperature":4.1,"wind_deg":360,"wind_speed":2.4,"wind_gust":7.1,"pressure":1006.5,"humidity":86,"rain_1h":1,"rain_24h":2.8}]
2020-12-30 14:46:03.365 OpenWeatherMap: Response code = Error - BadRequest
2020-12-30 14:46:03.365 OpenWeatherMap: Response data = {"code":400001,"message":"Station id is invalid"}
2020-12-30 14:50:00.252 OpenWeatherMap: URL = http://api.openweathermap.org/data/3.0/measurements?appid=<key>
2020-12-30 14:50:00.252 OpenWeatherMap: Body = [{"station_id":"KomokaWeather","dt":1609357800,"temperature":4.1,"wind_deg":360,"wind_speed":2.4,"wind_gust":7.1,"pressure":1006.5,"humidity":86,"rain_1h":0.8,"rain_24h":2.8}]
2020-12-30 14:50:00.736 OpenWeatherMap: Response code = Error - BadRequest
2020-12-30 14:50:00.736 OpenWeatherMap: Response data = {"code":400001,"message":"Station id is invalid"}
2020-12-30 14:51:02.920 OpenWeatherMap: URL = http://api.openweathermap.org/data/3.0/measurements?appid=<key>
2020-12-30 14:51:02.920 OpenWeatherMap: Body = [{"station_id":"KomokaWeather","dt":1609357862,"temperature":4.1,"wind_deg":360,"wind_speed":2.4,"wind_gust":7.1,"pressure":1006.5,"humidity":86,"rain_1h":0.8,"rain_24h":2.8}]
2020-12-30 14:51:03.298 OpenWeatherMap: Response code = Error - BadRequest
2020-12-30 14:51:03.298 OpenWeatherMap: Response data = {"code":400001,"message":"Station id is invalid"}
2020-12-30 14:55:00.096 OpenWeatherMap: URL = http://api.openweathermap.org/data/3.0/measurements?appid=<key>
2020-12-30 14:55:00.096 OpenWeatherMap: Body = [{"station_id":"KomokaWeather","dt":1609358100,"temperature":4.1,"wind_deg":360,"wind_speed":2.4,"wind_gust":7.1,"pressure":1006.6,"humidity":86,"rain_1h":0.6,"rain_24h":2.8}]
2020-12-30 14:55:00.575 OpenWeatherMap: Response code = Error - BadRequest
2020-12-30 14:55:00.575 OpenWeatherMap: Response data = {"code":400001,"message":"Station id is invalid"}
2020-12-30 14:56:02.921 OpenWeatherMap: URL = http://api.openweathermap.org/data/3.0/measurements?appid=<key>
2020-12-30 14:56:02.921 OpenWeatherMap: Body = [{"station_id":"KomokaWeather","dt":1609358162,"temperature":4.1,"wind_deg":360,"wind_speed":2.4,"wind_gust":6.5,"pressure":1006.6,"humidity":86,"rain_1h":0.6,"rain_24h":2.8}]
2020-12-30 14:56:03.342 OpenWeatherMap: Response code = Error - BadRequest
2020-12-30 14:56:03.342 OpenWeatherMap: Response data = {"code":400001,"message":"Station id is invalid"}
The interval is set at 5 minutes.
Enjoy,
Paul