Matt. Getting an error tonight.
- Refactored much of the code.
- Made the driver compatitible with the Hubitat Package Manager in the 'Integrations' category.
Try the updated version and report back if you are still see those error.
I could not identify any specific that would cause this? I will be pushing an update in a few minutes that has many bug fixes in it. Suggest you try that and report back if you still see errors. It would be helpful to get a few more lines from the log before and after the error occurs to help me narrow down the section of code that is the problem.
- Many bug fixes.
- Better handling when there are no 'Alerts' (make sure that you do NOT have 'Alerts' turn on if they are not available in your area (outside of the US).
If you find a bug, please turn on 'Extended Logging' and provide some lines from the log from a few line before the error to a few lines after the error, to help me locate the problem quicker.
Here is the latest error after the poll data is executed:
dev:10892020-04-23 01:03:07.090 pm infoOpenWeatherMap.org Weather Driver - INFO: Poll api.weather.gov/alerts/active: [uri:https://api.weather.gov/alerts/active?status=actual&message_type=alert,update&point=44.302018,-92.674947&urgency=unknown,future,expected,immediate&severity=unknown,moderate,severe,extreme&certainty=unknown,possible,likely,observed, requestContentType:application/json, contentType:application/json]
Matt - I'm switching to your OWM- Weather Display Driver. Unless you need additional assisstance with testing?
The first error (line 405) indicates that it cannot find the 'visibility' data. I did not check for a null value, so I will have to add that check. That would cause the driver to fail.
The second message (that was processed first) is not an error, just providing info on the API request sent.
Thanks. This helps.
Thanks for helping. Switch to what works for you. I appreciate the notices on things I need to fix.
I still have both going. I do see errors with both. Let me know what you need until we get them both working..
Ignore last sent
Here is OWM with Alerts:
Refresh reports no errors.
dev:10892020-04-23 01:56:32.113 pm infoOpenWeatherMap.org Weather Driver - INFO: Poll api.weather.gov/alerts/active: [uri:https://api.weather.gov/alerts/active?status=actual&message_type=alert,update&point=44.302018,-92.674947&urgency=unknown,future,expected,immediate&severity=unknown,moderate,severe,extreme&certainty=unknown,possible,likely,observed]
dev:10892020-04-23 01:56:29.833 pm infoOpenWeatherMap.org Weather Driver - INFO: OpenWeatherMap Data: [current:[sunrise:1587640362, temp:55.35, uvi:5.59, pressure:1005, clouds:100, feels_like:50.68, wind_gust:8.99, dt:1587667835, wind_deg:66, dew_point:39, sunset:1587690283, weather:[[icon:04d, description:overcast clouds, main:Clouds, id:804]], humidity:54, wind_speed:4], timezone:America/Chicago, daily:[[sunrise:1587640362, temp:[min:42.78, max:55.36, eve:53.01, night:42.78, day:55.35, morn:55.35], uvi:5.59, pressure:1005, clouds:100, feels_like:[eve:47.73, night:33.93, day:49.55, morn:49.55], dt:1587664800, wind_deg:79, dew_point:39, sunset:1587690283, weather:[[icon:04d,
Too many things going on. Sorry Matt.
Here is OWM with Weather Display. OMG I'm not paying attention..
2020-04-23 02:02:43.763 pm errorjava.lang.IllegalArgumentException: The JSON input text should neither be null nor empty. on line 776 (pollAlertsHandler)
Okay, Do you have time to test again? If so the same links above.
I actually missed an occurance of the visibility being null. I fixed that. I also check for nulls on all the other OWM data items now to prevent furthur issues.
I have not anticipated that when the weather.gov returns an 'okay' (200) status, that it also returns a null value if there are no alerts. I had seen it return a populated value that I could determine that there were no alerts, but there was a return. I have corrected that if it is 'okay' it check to see if it is null too.
Thanks again for your help.
No errors on OWM NWS Alerts Driver..