[Deprecated] Weather Dot Gov - Gathering data from weather.gov

@bptworld Just wanted to let you now i applied the update this morning and the font change is working great!! Thank you so much for the super quick fix!! Have a great day!

1 Like

@bptworld... I was wondering if you've seen where "No Data" shows sometimes for the Current temp and Humdity on the tile? Mine has been doing it on and off today, and when I look at the data driver, it does show "No Data" in the temperature and relativehumidity (which is where i think the tile pulls data from). I do a check every 15 mins, and i see where it goes out and pulls data but those fields show "No Data".

Just thought i would share what i'm seeing..

Thanks!!

That just means it couldn't pull the data from the website. Could be for a variety of reasons.

Ok.. I went to the site it pulls the data from and i see it there but it's just not showing in the data (driver) and in turn the tile.. but it just update a few mins ago and shows up right now. Who knows lol. just something i saw.. Thanks for all your work on this. i have really had fun tweaking the settings and CSS (hope thats ok). I have forgotten so much coding that i feel like i'm learning coding all over again LOL..

1 Like

New version on GitHub...

Child:
1.1.8 - 06/11/20 - Cosmetic changes

Data driver:
1.1.5 - 06/11/20 - Last Updated can be 24h or 12h.
Be sure to go into the data device and select which option you want!

1 Like

Hi, I stop getting update since the end of May. I'm getting some messages in the logfile. I'm not sure what had happened. Any advice. Thanks,

dev:7412020-06-12 08:49:15.008 am infoforecastURL: https://api.weather.gov/gridpoints/PHI/78,90/forecast

dev:7412020-06-12 08:49:12.514 am errorjava.lang.NullPointerException: Cannot invoke method split() on null object on line 236 (dataOptions)

dev:7412020-06-12 08:49:09.532 am infoforecastURL: https://api.weather.gov/gridpoints/PHI/78,90/forecast

dev:7412020-06-12 08:49:09.452 am infoforecastURL: https://api.weather.gov/gridpoints/PHI/78,90/forecast

dev:7412020-06-12 08:46:34.280 am infoforecastURL: https://api.weather.gov/gridpoints/PHI/78,90/forecast

dev:7412020-06-12 08:46:32.270 am errorjava.lang.NullPointerException: Cannot invoke method split() on null object on line 236 (dataOptions)

dev:7412020-06-12 08:46:27.785 am infoforecastURL: https://api.weather.gov/gridpoints/PHI/78,90/forecast

dev:7412020-06-12 08:31:16.308 am infoforecastURL: https://api.weather.gov/gridpoints/PHI/78,90/forecast

dev:7412020-06-12 08:30:10.816 am infoforecastURL: https://api.weather.gov/gridpoints/PHI/78,90/forecast

dev:7412020-06-12 08:29:56.648 am infoforecastURL: https://api.weather.gov/gridpoints/PHI/78,90/forecast

dev:7412020-06-12 08:29:45.795 am infoforecastURL: https://api.weather.gov/gridpoints/PHI/78,90/forecast

dev:7412020-06-12 08:08:38.224 am infoforecastURL: https://api.weather.gov/gridpoints/PHI/78,90/forecast

Hi,
Please include a proper debug log, not just the error. That way I can see what it is doing before the error happens. Also, be sure you are on the latest version.

Thanks

When I enabled the Debugging/Messaging (application and devices list) update seemed to starting working with a manual update.

dev:7412020-06-12 09:52:59.018 am infopointsOffice: PHI

dev:7412020-06-12 09:52:59.016 am infoIn getPointsData - response: 200

dev:7412020-06-12 09:52:58.778 am debugIn getPointsData - pointsURL: https://api.weather.gov/points/40.187957,-74.260613

dev:7412020-06-12 09:52:58.671 am debugIn getPointsData

dev:7412020-06-12 09:52:57.661 am debugIn dataOptions - 40.187957:-74.260613:KBLM:07731:Imperial

dev:7412020-06-12 09:52:41.012 am infoIn on - Turning Switch On

dev:7412020-06-12 09:52:40.736 am infoIn on - Turning Switch On

dev:7412020-06-12 09:52:40.448 am infoIn on - Turning Switch On

dev:7412020-06-12 09:52:40.015 am infoIn on - Turning Switch On

dev:7412020-06-12 09:52:39.440 am infoIn on - Turning Switch On

dev:7412020-06-12 09:52:37.766 am debugIn getAlertData - Start collecting data from website

dev:7412020-06-12 09:52:37.764 am infoIn getAlertData - response: 200

dev:7412020-06-12 09:52:37.325 am debugIn getAlertData - alertURL: https://api.weather.gov/alerts?active=true&status=actual&zone=NJZ013

dev:7412020-06-12 09:52:37.241 am debugIn getAlertData

dev:7412020-06-12 09:43:19.040 am infoforecastURL: https://api.weather.gov/gridpoints/PHI/78,90/forecast

dev:7412020-06-12 09:42:46.780 am infoforecastURL: https://api.weather.gov/gridpoints/PHI/78,90/forecast

dev:7412020-06-12 09:04:47.235 am infoforecastURL: https://api.weather.gov/gridpoints/PHI/78,90/forecast

dev:7412020-06-12 08:49:15.008 am infoforecastURL: https://api.weather.gov/gridpoints/PHI/78,90/forecast

dev:7412020-06-12 08:49:12.514 am errorjava.lang.NullPointerException: Cannot invoke method split() on null object on line 236 (dataOptions)

dev:7412020-06-12 08:49:09.532 am infoforecastURL: https://api.weather.gov/gridpoints/PHI/78,90/forecast

However, the dashboard is still not updating.

I have no idea what your talking about ....

I need this turned on,

Your using the attributes starting with bpt- within the dashboard, right? As stated in the version notes above.

Suggestion: for precipitationLastHour, precipitationLast3Hours, and precipitationLast6Hours, if value is null, convert to 0.

Reason: Stations report null when no precipitation in that period, but that complicates using that value in RM, as you expect a number. Converting the value to 0 would make use simpler.

1 Like

New version on GitHub...

Data Driver:
1.1.6 - 06/13/20 - Changed 'No Data' to 0 for current weather values as requested

1 Like

Thanks for the quick response! I was restricting my request to the three precipitation variables because "0" was valid when the data was missing. For the other variables, instead of "0", I'd use some sentinel value that is impossible in real life that can be tested against in RM to discard the data instead of erroneously using it. For example, "-1000" would be unrealistic for the other measures and would obviously be a flag value.

Then, down in lines 675 and 676, I'd use the flag value in the conditional, and on 677 use the flag value instead of "0".

Has anyone else noticed that the weather they see in WDG doesn't match weather.gov? I recently noticed the weather that WDG was showing me was wrong so I looked on the website and noticed that weather.gov is correct

Weather.gov:

WDG:
image

As a note, it's not foggy, it's overcast, and the wind is only around 3mph, not 12 so what the website says is more correct than what WDG is showing. Anyone else having this issue or know why it might occur? I copied the station ID, KMPO into weather.gov to make sure I'm looking at what I assume should be the same forecast if it's the same ID?

Yup, looks like something is wrong with the website again. My isn't current either and I'm not getting the weather icon. It's also still displaying last nights weather in the forecast so it stopped working sometime last night.

Hopefully they fix their end soon.

1 Like

I was just about to drop an issue I have, but it sounds like ya'll see something is up. My Current Condition Tile isn't working. It hasn't updated since June 11th, and has a broken icon link. I don't see any errors in my logs that might give me a clue, and this might totally be something on mine that isn't working as it doesn't exactly match what ya'll are talking about, but I wanted to at least drop a screen shot and let ya know I see that somethings up too..

Is it just me or has this just been completely broken for weeks now? Not @bptworld's fault... it seems like the government has just decided to waste our tax dollars on a website that doesn't work. :frowning:

It definitely comes and goes.

Have had some time to add a way to clear alerts that have expired? Thanks

1 Like

New version on GitHub...

Data Driver:
1.1.7 - 07/19/20 - Changed up Alerts to remove from app as Weather.gov removes them from their website

1 Like

hey @bptworld, I just wanted to let you know that the post I posted about the Current Condition Tile wasn't working, well, is now working.. I removed the child app and recreated it all, and "automagically" it's now reporting the right information!! I guess mine just was annoyed with weather.gov's api and decided it wanted to be rebuilt LOL.. Anyways thanks for all your coding mastery!!

1 Like