[RELEASE] Enhanced Weather Underground Driver

Can you Set to 0 if you get null?

My own station. I have a rain gauge. It reports null when rain is 0.

Similar problem in this thread:

In all my testing when no rain I saw 0 reported. But I did code for the checking for null, but it must be another variation on how groovy represents null. I am using what they call "groovy truth" mentioned in your following message but does not work for these nulls.

Which PWS are you using? You can check the PWS to see is all the data is there via this URL and replacing the name with the PWS you want to check:

https://www.wunderground.com/dashboard/pws/KINCOLUM95

You can also validate that PWS is returning data directly via the API:

https://api.weather.com/v2/pws/observations/current?stationId=PwsHere&format=json&units=e&apiKey=MyKeyHere

If these both work, then the driver should be able to pull all the data without errors:

Working through PM with user to get it to work and resolve the errors. I think we have a fix. Just waiting on @C379776 Dan to get back to me. I was able to use his station values with the modified code and it worked for me. Hopefully it will work for Dan and if confirmed all is good I will pm @dJOS you the updates.

1 Like

Sweet. :slight_smile:

Thank you dJOS and swade for developing this driver.

I’ve got v6.7.0 installed and I’m pulling in data ok but when I tried adding the following tiles I can't see the attributes: html3dayfcst & htmlRainTile. Looking a prior post there was a bug that was fixed but I’m seeing this issue. Or am I missing something?

Thanks
Scott

Did you force a poll after updating and then refresh the dashboard after about 2 mins? Usually it takes a little time to appear.

Hi dJOS,

Yes, just tried that again without luck so I just deleted it all and started again and set the station ID to IMELBO809 as I saw you had used this in a previous post. I’m still not seeing the html3dayfcst & htmlRainTile attributes.

Also is the below error expected when clicking on “Poll” or “Force Poll”?

Hope this helps, It looks like after the fist poll it's not poling after that I just keep get the line 280 error.

Ok, a fix is coming.

1 Like

Working without any warnings with the patch. Nice work and thanks!

You're welcome. I think the null errors are how different PWS brands report values to WU. Fixed for now until we get a report of some other variation. :grin:

I sent the changes to @dJOS and he will get the updates submitted to HPM.

1 Like

I think I resolved your error from Line 280 with the latest release. Once @dJOS gets the updates to HPM, please try the newest release and let me know if it fixes your error.

1 Like

Hi All, v6.7.1 has been published - please test it out.

1 Like

Thank you that has fixed the null+1 on line 280 error and it's now updating every time I hit the poll button.

The only errors I'm seeing in the logs now are as follows:
errorjava.lang.NullPointerException: Cannot invoke method replace() on null object on line 566 (method pollHandler3)

errorjava.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Throwable on line 850 (method poll)

Please also note that I still can't see the following attributes: html3dayfcst & htmlRainTile

Also I've change my Station ID back to: IADELA951 (This is the Station ID I had set when getting the above errors)

Thank you again :slight_smile:

1 Like

Hmm, when I get time I’ll do some more testing with that PWS.

1 Like

Unfortunately, this is a WU issue, not a driver issue:

I cant access the data of any PWS' near your location with my "Melbourne" API key, or any other PWS that isn't my own. It looks like WU has noticed ppl accessing other ppl's PWS' and clamped down.

I'll look into tweaking the driver so the PWS is optional, and hopefully at least the forecast data will be accessible.

Hmmm, Ok I got this mostly working ..... however it breaks so many things in the driver it just isn't worth the effort. Sorry Guys. :tired_face:

So having some time to think about it, I can make the PWS optional and ppl will get all the forecast data, and the simple forecast tiles.

But the 3 day forecast tile and rain tile won’t be possible (these tiles are too intertwined with PWS data).

I’d this something folk would find useful?