Jump to content

OpenWeather hasnt updated since yesterday


TheA2Z

Recommended Posts

Looking in the Polyglot cloud log, it says the following below.


Any idea what is causing?

 


 
2020-08-14 12:29:34,511 [Controller] [DEBUG] request = http://api.openweathermap.org/data/2.5/onecall?exclude=minutely,hourly&30068,us&units=imperial&appid=60d014b2aa1345552d96b3ac761335f3
2020-08-14 12:29:34,725 [Controller] [DEBUG] {'cod': '400', 'message': 'Nothing to geocode'}
2020-08-14 12:29:34,726 [Controller] [ERROR] Onecall data query failed
2020-08-14 12:30:34,511 [Controller] [DEBUG] request = http://api.openweathermap.org/data/2.5/onecall?exclude=minutely,hourly&30068,us&units=imperial&appid=60d014b2aa1345552d96b3ac761335f3
2020-08-14 12:30:34,635 [Controller] [ERROR] Onecall data query failed
2020-08-14 12:30:34,634 [Controller] [DEBUG] {'cod': '400', 'message': 'Nothing to geocode'}
2020-08-14 12:31:34,511 [Controller] [DEBUG] request = http://api.openweathermap.org/data/2.5/onecall?exclude=minutely,hourly&30068,us&units=imperial&appid=60d014b2aa1345552d96b3ac761335f3
2020-08-14 12:31:34,640 [Controller] [ERROR] Onecall data query failed
2020-08-14 12:31:34,640 [Controller] [DEBUG] {'cod': '400', 'message': 'Nothing to geocode'}
2020-08-14 12:32:34,511 [Controller] [DEBUG] request = http://api.openweathermap.org/data/2.5/onecall?exclude=minutely,hourly&30068,us&units=imperial&appid=60d014b2aa1345552d96b3ac761335f3
2020-08-14 12:32:34,649 [Controller] [ERROR] Onecall data query failed
2020-08-14 12:32:34,649 [Controller] [DEBUG] {'cod': '400', 'message': 'Nothing to geocode'}
2020-08-14 12:33:34,517 [Controller] [DEBUG] request = http://api.openweathermap.org/data/2.5/onecall?exclude=minutely,hourly&30068,us&units=imperial&appid=60d014b2aa1345552d96b3ac761335f3
2020-08-14 12:33:35,348 [Controller] [DEBUG] {'cod': '400', 'message': 'Nothing to geocode'}
2020-08-14 12:33:35,363 [Controller] [ERROR] Onecall data query failed
Link to comment
Share on other sites

There's no location specified in the calls to OpenWeatherMap so it can't provide any data. 

I updated the node server to use OpenWeatherMap's new API to get better forecast data a while back and one of the differences with the new API is that it will only accept a location in the form "lat=latitude&lon=longitude"  where latitude and longitude are the coordinates for your location.

Polyglot doesn't provide a way for me to notify users of this. It's in the README's changelog but for PGC, it will just use the new version the next time it is started so there's also no way for you to know that there was a change.  I know this sucks, but, given the current Polyglot infrastructure, I don't know how this can be handled better.

It might be worth a note to support@universal-devices.com suggesting that some mechanism to communicate changes/updates to PGC nodes server would be helpful.  They're working on a new version now so this kind of input from users would be helpful.

Link to comment
Share on other sites

  • 5 weeks later...

My problem is that I'm not getting any forecasts except for the current day (0) and evap always shows zero.  I have tried cutting it down to three days but that didn't help.  New install of this node server a few days ago so probably something not set right.  I am using Lon/Lat so not the same issue that TheA2Z had.

This is the only error I see in the log.

2020-09-13 12:38:29,346 Controller polyinterface ERROR owm:query_onecall: Onecall data query failed
2020-09-13 12:38:29,508 MQTT polyinterface DEBUG owm:process_config: -- configuration not changed, but is valid

Also would like to know which weather node is best for evap and rain.  My primary use it sprinklers.  I read through a bunch of posts in a bunch of threads yesterday but didn't find anything conclusive.

Thank you very much for all of the effort that goes into writing these servers and even more thanks for supporting them!!!  I hope to figure out how they work and and build a couple to do some things that are not yet available.

 

Bob

Link to comment
Share on other sites

I am having similar issues with the OpenWeather.  It had been working fine until I noticed the temperature has not been updating on my ELK keypads.  It has been 77.4 for a while now. Didn't notice it until we had a cold front move in and it is not anywhere near 77.4  The log shows an error, but I don't know what to do.  Any suggestions? 

image.thumb.png.3aae4aa68a2825796888e8cd462b6c74.png

Link to comment
Share on other sites

For sure not an expert but take a look at your location data and maybe refresh it.  Compare my line below and see where my location data is (bold) your line has "48324".  Seems odd but it is just a guess so YMMV.

2020-09-13 12:38:28,985 Controller polyinterface DEBUG owm:get_weather_data: request = http://api.openweathermap.org/data/2.5/onecall?exclude=minutely,hourly&lat=34.29&lon=-118.74&units=imperial&appid=311d2c23714154d9c291441db279d423

 

Link to comment
Share on other sites

New clue!  If your zip is 48324 then I think it's missing the ",us" after the zip in the config.  Try lat=34.29&lon=-118.74lon using your numbers from google maps.  If nothing else you will get better info than zip,us.

Link to comment
Share on other sites

Some additional info on my problem.  It looks like it sets up the forecast request for 8 days then gets the day=0 info but fails after that.


 
2020-09-13 12:38:29,311 Controller polyinterface INFO owm:query_forecast: Day = 0 - Forecast dt = 1600023600 2020-09-13 12:00:00
2020-09-13 12:38:29,311 Controller polyinterface INFO owm:query_forecast: Day = 1 - Forecast dt = 1600110000 2020-09-14 12:00:00
2020-09-13 12:38:29,312 Controller polyinterface INFO owm:query_forecast: Day = 2 - Forecast dt = 1600196400 2020-09-15 12:00:00
2020-09-13 12:38:29,313 Controller polyinterface INFO owm:query_forecast: Day = 3 - Forecast dt = 1600282800 2020-09-16 12:00:00
2020-09-13 12:38:29,313 Controller polyinterface INFO owm:query_forecast: Day = 4 - Forecast dt = 1600369200 2020-09-17 12:00:00
2020-09-13 12:38:29,314 Controller polyinterface INFO owm:query_forecast: Day = 5 - Forecast dt = 1600455600 2020-09-18 12:00:00
2020-09-13 12:38:29,315 Controller polyinterface INFO owm:query_forecast: Day = 6 - Forecast dt = 1600542000 2020-09-19 12:00:00
2020-09-13 12:38:29,315 Controller polyinterface INFO owm:query_forecast: Day = 7 - Forecast dt = 1600628400 2020-09-20 12:00:00
2020-09-13 12:38:29,316 Controller polyinterface INFO owm:query_forecast: Created 8 days forecast.
2020-09-13 12:38:29,316 Controller polyinterface INFO polyinterface:removeNotice: Sending removenotice to Polyglot for index {'key': 'noData'}
2020-09-13 12:38:29,318 Controller polyinterface DEBUG owm_daily:update_forecast: {'temp_max': 89.58, 'temp_min': 62.04, 'Hmax': 23, 'Hmin': 23, 'pressure': 1011, 'weather': 800, 'speed': 4.05, 'winddir': 215, 'clouds': 0, 'dt': 1600023600, 'uv': 8.96, 'pop': 0, 'feelslike': 83.66, 'dewpoint': 44.89, 'rain': 0, 'snow': 0, 'count': 1}
2020-09-13 12:38:29,319 Controller polyinterface INFO owm_daily:update_forecast: Day of week = 0
2020-09-13 12:38:29,320 Controller polyinterface INFO polyinterface:reportDriver: Updating Driver forecast_0 - CLIHUM: 23.0, uom: 22
2020-09-13 12:38:29,322 Controller polyinterface DEBUG node_funcs:update_driver: setDriver (CLIHUM, 23.000000)
2020-09-13 12:38:29,323 Controller polyinterface INFO polyinterface:reportDriver: Updating Driver forecast_0 - BARPRES: 1011.0, uom: 117
2020-09-13 12:38:29,326 Controller polyinterface DEBUG node_funcs:update_driver: setDriver (BARPRES, 1011.000000)
2020-09-13 12:38:29,327 Controller polyinterface INFO polyinterface:reportDriver: Updating Driver forecast_0 - DEWPT: 44.9, uom: 17
2020-09-13 12:38:29,330 Controller polyinterface DEBUG node_funcs:update_driver: setDriver (DEWPT, 44.900000)
2020-09-13 12:38:29,331 Controller polyinterface INFO polyinterface:reportDriver: Updating Driver forecast_0 - GV0: 89.6, uom: 17
2020-09-13 12:38:29,333 Controller polyinterface DEBUG node_funcs:update_driver: setDriver (GV0, 89.600000)
2020-09-13 12:38:29,334 Controller polyinterface DEBUG node_funcs:update_driver: setDriver (GV1, 62.000000)
2020-09-13 12:38:29,335 Controller polyinterface INFO polyinterface:reportDriver: Updating Driver forecast_0 - GV2: 83.7, uom: 17
2020-09-13 12:38:29,338 Controller polyinterface DEBUG node_funcs:update_driver: setDriver (GV2, 83.700000)
2020-09-13 12:38:29,339 Controller polyinterface DEBUG node_funcs:update_driver: setDriver (GV14, 0.000000)
2020-09-13 12:38:29,340 Controller polyinterface DEBUG node_funcs:update_driver: setDriver (GV4, 4.000000)
2020-09-13 12:38:29,341 Controller polyinterface DEBUG node_funcs:update_driver: setDriver (GV19, 0.000000)
2020-09-13 12:38:29,342 Controller polyinterface DEBUG node_funcs:update_driver: setDriver (GV13, 800.000000)
2020-09-13 12:38:29,343 Controller polyinterface DEBUG node_funcs:update_driver: setDriver (UV, 9.000000)
2020-09-13 12:38:29,343 Controller polyinterface DEBUG node_funcs:update_driver: setDriver (GV6, 0.000000)
2020-09-13 12:38:29,344 Controller polyinterface DEBUG node_funcs:update_driver: setDriver (GV7, 0.000000)
2020-09-13 12:38:29,345 Controller polyinterface DEBUG node_funcs:update_driver: setDriver (GV18, 0.000000)
2020-09-13 12:38:29,345 Controller polyinterface INFO owm_daily:update_forecast: Conversion of temperature/wind speed required
2020-09-13 12:38:29,346 Controller polyinterface ERROR owm:query_onecall: Onecall data query failed
2020-09-13 12:38:29,508 MQTT polyinterface DEBUG owm:process_config: -- configuration not changed, but is valid
Link to comment
Share on other sites

BobMic. Your suggestion worked like a champ. I honed in the lat/lon to my house for a more accuracy as I also use this for some high lever irrigation programs.   Should have realized something was wrong with the location when I saw the geocode error in the log, but like I said, it had been working fine since March when I started using this with just the zip code in the location parameter.. Oh well. Back up and running again.  Thanks for taking the time to look!

Link to comment
Share on other sites

@mdarcy I'm assuming you're using the cloud polyglot.  If so, then you should provide feedback to UDI.  This is yet another area where cloud polyglot causes confusion for users.

The cloud based polyglot always loads the latest version of the node server when it is restarted, but doesn't notify you that a new version is being used.  In this case, OpenWeatherMap updated their API and one of the changes was that only lat/long can be used to specify location. Previously, they allowed other methods, including zip code.  I mentioned this somewhere in the forum, but polyglot provides no mechanism to notify users of this before they update.

Link to comment
Share on other sites

@BobMicI'm not sure what's happening with your installation. I believe something is failing in the ETo calculation but the log doesn't provide enough information to narrow it down farther.  I'll try using your location and see if I can reproduce the issue.

Link to comment
Share on other sites

@bpwwer Thank you. This explains what happened.  I agree that there is no good communication feedback loop in the polyglot cloud when API changes happen. I did search the forum before posting, but must not have formed my search correctly to find it. Thanks for all the work you do on these services.  

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...