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

Hi @bptworld, First of all, killer app and you considering yourself a non-coder is fantasy. You killin it. I'm very new to hubitat and because of selfless support like yours is what makes the internet work. Thanks for that.

One question: and pardon for may be sounding naive/repetitive but couldn't find what I needed. How does one make your example of the horizontal weather tile w/ time with today's info? I'm trying everything but all to no avail. Lastly don't see "current" in attribute tile. only asthma/forecast and daily?

Much thanks!

[UPDATE] My lack of adventure in your child app made me lapse the obvious. Please ignore my request. Awesome work! thanks !

1 Like

I did at least a little searching and couldn't find anything about this. I have the latest version of the code (and normally keep it up to date with the package manager). I have an odd outcome. When I look at the weather data, TodaysHigh and TodaysLow seem to be reversed. Here is a snapshot from the device view just now:
image

Based on the way I use the data, I can easily swap the data, but I only want to do it if I it is likely to stay in its current state and won't get broken by a fix. Any thoughts?

I just looked at mine and you are not alone. I question Wind Speed of 53.95mph today in DFW area also.

added to the list

I agree that your 50+ wind speed and my 30+ both seem inaccurate. I take it from what you wrote that I am in Frisco and you are elsewhere in the DFW area.

Of course, I just assume the collection process generates some junk and that unlike a paid weather service, no one is devoted to ensuring the there is never junk data in every location.

Awesome app as is and gets better every time you knocks something off your list.

Yup, I live in southern tip of Grand Prairie. I completely think its Weather.gov's issue, not BPT's.

Sorry for the likely inexperienced question but should I be seeing a sample of the various tiles in the child app? I clicked the manually update tiles and nothing happened (same story for all of the other tiles besides current conditions. I also don't see any errors in the log for it. I do see the tile in current conditions although a couple of the parameters are not coming over like wind speed but temp is.

Would need to see a debug log of you flipping that switch.

Bryan, thanks for the quick reply. here is what I am getting from flipping the get weekly data switch with debug on

Summary

app:672020-08-21 12:11:02.658 pm debugIn weeklytTileOptions - Sending 'weeklyTable' to tile device (WDG - Castle Rock Weather Tile)
app:672020-08-21 12:11:02.571 pm debugIn weeklytTileOptions - Sending 'weeklyTable' to tile device (WDG - Castle Rock Weather Tile)
app:672020-08-21 12:11:02.513 pm debugIn weeklytTileOptions - Sending 'weeklyTable' to tile device (WDG - Castle Rock Weather Tile)
app:672020-08-21 12:11:02.473 pm debugIn weeklytTileOptions - Sending 'weeklyTable' to tile device (WDG - Castle Rock Weather Tile)
app:672020-08-21 12:11:02.440 pm debugIn weeklytTileOptions - Sending 'weeklyTable' to tile device (WDG - Castle Rock Weather Tile)
app:672020-08-21 12:11:02.406 pm debugIn weeklytTileOptions - Sending 'weeklyTable' to tile device (WDG - Castle Rock Weather Tile)
app:672020-08-21 12:11:02.372 pm debugIn weeklytTileOptions - Sending 'weeklyTable' to tile device (WDG - Castle Rock Weather Tile)
app:672020-08-21 12:11:02.337 pm debugIn weeklytTileOptions - Sending 'weeklyTable' to tile device (WDG - Castle Rock Weather Tile)
app:672020-08-21 12:11:02.303 pm debugIn weeklytTileOptions - Sending 'weeklyTable' to tile device (WDG - Castle Rock Weather Tile)
app:672020-08-21 12:11:02.246 pm debugIn weeklytTileOptions - Sending 'weeklyTable' to tile device (WDG - Castle Rock Weather Tile)
app:672020-08-21 12:11:02.202 pm debugIn weeklytTileOptions - Sending 'weeklyTable' to tile device (WDG - Castle Rock Weather Tile)
app:672020-08-21 12:11:02.163 pm debugIn weeklytTileOptions - Sending 'weeklyTable' to tile device (WDG - Castle Rock Weather Tile)
app:672020-08-21 12:11:02.111 pm debugIn weeklytTileOptions - Sending 'weeklyTable' to tile device (WDG - Castle Rock Weather Tile)
app:672020-08-21 12:11:01.595 pm debugIn weeklytTileOptions - Sending 'weeklyTable' to tile device (WDG - Castle Rock Weather Tile)
app:672020-08-21 12:10:54.943 pm debugIn getWeeklyData (1.1.8)

Ran it for the forecast tile option and getting the following:

Summary

' app:672020-08-21 12:16:34.983 pm debugIn initializeAlerts (1.1.8)

app:672020-08-21 12:16:34.918 pm infoalertStatus: No Data - alertCategory: No Data

app:672020-08-21 12:16:34.468 pm infoalertStatus: No Data - alertCategory: No Data

app:672020-08-21 12:16:34.001 pm infoalertStatus: No Data - alertCategory: No Data

app:672020-08-21 12:16:33.547 pm infoalertStatus: No Data - alertCategory: No Data

app:672020-08-21 12:16:33.132 pm infoalertStatus: No Data - alertCategory: No Data

app:672020-08-21 12:16:29.769 pm infoalertTitle: null

app:672020-08-21 12:16:23.106 pm debugIn getAlertData (1.1.8)

app:672020-08-21 12:15:39.118 pm debugIn weeklytTileOptions - Sending 'weeklyTable' to tile device (WDG - Castle Rock Weather Tile)

app:672020-08-21 12:15:39.075 pm debugIn weeklytTileOptions - Sending 'weeklyTable' to tile device (WDG - Castle Rock Weather Tile)

app:672020-08-21 12:15:39.029 pm debugIn weeklytTileOptions - Sending 'weeklyTable' to tile device (WDG - Castle Rock Weather Tile)

app:672020-08-21 12:15:38.989 pm debugIn weeklytTileOptions - Sending 'weeklyTable' to tile device (WDG - Castle Rock Weather Tile)

app:672020-08-21 12:15:38.944 pm debugIn weeklytTileOptions - Sending 'weeklyTable' to tile device (WDG - Castle Rock Weather Tile)

app:672020-08-21 12:15:38.900 pm debugIn weeklytTileOptions - Sending 'weeklyTable' to tile device (WDG - Castle Rock Weather Tile)

app:672020-08-21 12:15:38.863 pm debugIn weeklytTileOptions - Sending 'weeklyTable' to tile device (WDG - Castle Rock Weather Tile)

app:672020-08-21 12:15:38.825 pm debugIn weeklytTileOptions - Sending 'weeklyTable' to tile device (WDG - Castle Rock Weather Tile)

app:672020-08-21 12:15:38.791 pm debugIn weeklytTileOptions - Sending 'weeklyTable' to tile device (WDG - Castle Rock Weather Tile)

app:672020-08-21 12:15:38.770 pm debugIn weeklytTileOptions - Sending 'weeklyTable' to tile device (WDG - Castle Rock Weather Tile)

app:672020-08-21 12:15:38.750 pm debugIn weeklytTileOptions - Sending 'weeklyTable' to tile device (WDG - Castle Rock Weather Tile)

app:672020-08-21 12:15:38.673 pm debugIn weeklytTileOptions - Sending 'weeklyTable' to tile device (WDG - Castle Rock Weather Tile)

app:672020-08-21 12:15:38.637 pm debugIn weeklytTileOptions - Sending 'weeklyTable' to tile device (WDG - Castle Rock Weather Tile)

app:672020-08-21 12:15:38.215 pm debugIn weeklytTileOptions - Sending 'weeklyTable' to tile device (WDG - Castle Rock Weather Tile)

app:672020-08-21 12:15:35.899 pm debugIn getWeeklyData (1.1.8)

app:672020-08-21 12:15:23.531 pm debugIn sendDataOptions (1.1.8)

app:672020-08-21 12:15:23.523 pm debugWeather Dot Gov unable to create tile device - java.lang.IllegalArgumentException: A device with the same device network ID exists, Please use a different DNI

app:672020-08-21 12:15:23.511 pm debugIn createDataChildDevice - Child device not found - Creating device Weather Dot Gov - Castle Rock Weather Tile

app:672020-08-21 12:15:23.507 pm debugIn createDataChildDevice (1.1.8)

app:672020-08-21 12:15:23.504 pm debugWeather Dot Gov unable to create data device - java.lang.IllegalArgumentException: A device with the same device network ID exists, Please use a different DNI

app:672020-08-21 12:15:23.485 pm debugIn createDataChildDevice - Child device not found - Creating device Weather Dot Gov - Castle Rock Weather Data

app:672020-08-21 12:15:23.480 pm debugIn createDataChildDevice (1.1.8)'

Continuing the discussion from [RELEASE] Weather Dot Gov - Gathering data from weather.gov:

@bptworld I take it WDG decided to change something on you yet again????

2020-08-21 17:59:28.445 warnIn getWeatherData - Either WDG website is having issues (probably) or double check your Station ID in the Weather Dot Gov app.

New version on GitHub...

data driver:
1.1.8 - 08/21/20 - Each section now tries 3 times to get data


Thanks, try the new version.

Also, please see post #1 on how to post a log. :wink: :sunglasses: :eyes:

1 Like

Thanks @bptworld updated to the latest using Hubitat Package Manager and still not seeing anything after toggling the Manual update Switch. I am assuming it is supposed to have a sample of the tile like I am seeing in create current weather tile? I don't want to waste your time if I just don't know what to expect.

Current Weather Tile:

Forecast Tile Options:

Summary

2020-08-21 10:24:28.555 pm debugIn weeklytTileOptions - Sending 'weeklyTable' to tile device (WDG - Castle Rock Weather Tile)
app:672020-08-21 10:24:28.505 pm debugIn weeklytTileOptions - Sending 'weeklyTable' to tile device (WDG - Castle Rock Weather Tile)
app:672020-08-21 10:24:28.446 pm debugIn weeklytTileOptions - Sending 'weeklyTable' to tile device (WDG - Castle Rock Weather Tile)
app:672020-08-21 10:24:28.409 pm debugIn weeklytTileOptions - Sending 'weeklyTable' to tile device (WDG - Castle Rock Weather Tile)
app:672020-08-21 10:24:28.370 pm debugIn weeklytTileOptions - Sending 'weeklyTable' to tile device (WDG - Castle Rock Weather Tile)
app:672020-08-21 10:24:28.310 pm debugIn weeklytTileOptions - Sending 'weeklyTable' to tile device (WDG - Castle Rock Weather Tile)
app:672020-08-21 10:24:28.247 pm debugIn weeklytTileOptions - Sending 'weeklyTable' to tile device (WDG - Castle Rock Weather Tile)
app:672020-08-21 10:24:28.184 pm debugIn weeklytTileOptions - Sending 'weeklyTable' to tile device (WDG - Castle Rock Weather Tile)
app:672020-08-21 10:24:28.125 pm debugIn weeklytTileOptions - Sending 'weeklyTable' to tile device (WDG - Castle Rock Weather Tile)
app:672020-08-21 10:24:28.055 pm debugIn weeklytTileOptions - Sending 'weeklyTable' to tile device (WDG - Castle Rock Weather Tile)
app:672020-08-21 10:24:27.992 pm debugIn weeklytTileOptions - Sending 'weeklyTable' to tile device (WDG - Castle Rock Weather Tile)
app:672020-08-21 10:24:27.935 pm debugIn weeklytTileOptions - Sending 'weeklyTable' to tile device (WDG - Castle Rock Weather Tile)
app:672020-08-21 10:24:27.873 pm debugIn weeklytTileOptions - Sending 'weeklyTable' to tile device (WDG - Castle Rock Weather Tile)
app:672020-08-21 10:24:27.322 pm debugIn weeklytTileOptions - Sending 'weeklyTable' to tile device (WDG - Castle Rock Weather Tile)
app:672020-08-21 10:24:24.787 pm debugIn getWeeklyData (1.1.8)
app:672020-08-21 10:24:14.941 pm debugIn sendDataOptions (1.1.8)

On the device created, turn the debugging on and take a screenshot of what happens when flipping the switch. Also show me a screenshot of how you have WDG setup in the 'Location Options' section.

Thanks

@bptworld
Morning, I am probably giving more info than needed but wanted to be thorough and make sure I got everything that might help.

Devices created:

Summary

Flipping the switch in child app:

Summary

During:


After:

Location Configuration - Lat and Long Adjusted to nearby hospital for safety

Summary


Current State from Child Device:

Summary

Current States

  • bpt-alertSummaryTile :
    - No Data
  • No Data
  • No Data
  • No Data
  • No Data
  • bpt-alertTile1 :
    No alerts

  • bpt-alertTile2 :
    No alerts

  • bpt-alertTile3 :
    No alerts

  • bpt-alertTile4 :
    No alerts

  • bpt-alertTile5 :
    No alerts

  • bpt-asthmaTodayTile :
    Asthma Forecast Today
    80109
    null - null
    null

  • bpt-asthmaTomorrowTile :
    Asthma Forecast Tomorrow
    80109
    null - null

  • bpt-asthmaYesterdayTile :
    Asthma Forecast Yesterday
    80109
    null - null
    null

  • bpt-currentDataTile :
    Mostly Clear
    68 Humidity: 37.35%
    Wind Speed: 0
    Barometer: 30.14 Dewpoint: 41.0
    Visibility: 8.0
    Updated: 08-22 08:37

  • bpt-forecastTable1 :
    Today - Smoke. Sunny, with a high near 94. North northwest wind 6 to 10 mph, with gusts as high as 16 mph.
    Tonight - Smoke. Mostly clear, with a low around 62. South wind 6 to 9 mph.
    Sunday - Areas of smoke before noon, then a slight chance of showers and thunderstorms. Sunny. High near 96, with temperatures falling to around 89 in the afternoon. South wind 3 to 10 mph.

  • bpt-forecastTable2 :
    Sunday Night - Partly cloudy, with a low around 62. South wind 5 to 8 mph, with gusts as high as 21 mph.
    Monday - A slight chance of showers and thunderstorms after noon. Sunny, with a high near 96. Southeast wind 3 to 7 mph, with gusts as high as 18 mph. Chance of precipitation is 20%.
    Monday Night - A slight chance of showers and thunderstorms before 9pm. Partly cloudy, with a low around 63.

  • bpt-forecastTable3 :
    Tuesday - A chance of showers and thunderstorms after noon. Sunny, with a high near 97. Chance of precipitation is 30%.
    Tuesday Night - A slight chance of showers and thunderstorms before midnight. Partly cloudy, with a low around 62.
    Wednesday - A chance of showers and thunderstorms after noon. Mostly sunny, with a high near 94.

  • bpt-forecastTable4 :
    Wednesday Night - A chance of showers and thunderstorms before midnight. Mostly cloudy, with a low around 62.
    Thursday - A chance of showers and thunderstorms after noon. Mostly sunny, with a high near 91.
    Thursday Night - A chance of showers and thunderstorms. Mostly cloudy, with a low around 60.

  • bpt-forecastTable5 :
    Friday - A chance of showers and thunderstorms. Mostly sunny, with a high near 87.
    Friday Night - A chance of showers and thunderstorms before midnight. Mostly cloudy, with a low around 59.

  • bpt-pollenTodayTile :
    Pollen Forecast Today
    80109
    10.8 - High
    null

  • bpt-pollenTomorrowTile :
    Pollen Forecast Tomorrow
    80109
    10.7 - High
    Ragweed, Chenopods, Sagebrush

  • bpt-pollenYesterdayTile :
    Pollen Forecast Yesterday
    80109
    10.8 - High
    Ragweed, Chenopods, Sagebrush

  • bpt-weeklyDataTile01 :
    Today

    Smoke
    94

  • bpt-weeklyDataTile02 :
    Tonight

    Smoke
    62

  • bpt-weeklyDataTile03 :
    Sunday

    Areas Of Smoke then Slight Chance Showers And Thunderstorms
    96

  • bpt-weeklyDataTile04 :
    Sunday Night

    Partly Cloudy
    62

  • bpt-weeklyDataTile05 :
    Monday

    Sunny then Slight Chance Showers And Thunderstorms
    96

  • bpt-weeklyDataTile06 :
    Monday Night

    Slight Chance Showers And Thunderstorms then Partly Cloudy
    63

  • bpt-weeklyDataTile07 :
    Tuesday

    Sunny then Chance Showers And Thunderstorms
    97

  • bpt-weeklyDataTile08 :
    Tuesday Night

    Slight Chance Showers And Thunderstorms then Partly Cloudy
    62

  • bpt-weeklyDataTile09 :
    Wednesday

    Mostly Sunny then Chance Showers And Thunderstorms
    94

  • bpt-weeklyDataTile10 :
    Wednesday Night

    Chance Showers And Thunderstorms then Mostly Cloudy
    62

  • bpt-weeklyDataTile11 :
    Thursday

    Mostly Sunny then Chance Showers And Thunderstorms
    91

  • bpt-weeklyDataTile12 :
    Thursday Night

    Chance Showers And Thunderstorms
    60

  • bpt-weeklyDataTile13 :
    Friday

    Chance Showers And Thunderstorms
    87

  • bpt-weeklyDataTile14 :
    Friday Night

    Chance Showers And Thunderstorms then Mostly Cloudy
    59

Log from turning on debug and trying to update forecast tile in child device:

Summary

app:672020-08-22 08:43:45.021 am debugIn sendDataOptions (1.1.8)
app:672020-08-22 08:43:45.018 am debugWeather Dot Gov unable to create tile device - java.lang.IllegalArgumentException: A device with the same device network ID exists, Please use a different DNI
app:672020-08-22 08:43:45.006 am debugIn createDataChildDevice - Child device not found - Creating device Weather Dot Gov - Castle Rock Weather Tile
app:672020-08-22 08:43:45.003 am debugIn createDataChildDevice (1.1.8)
app:672020-08-22 08:43:45.000 am debugWeather Dot Gov unable to create data device - java.lang.IllegalArgumentException: A device with the same device network ID exists, Please use a different DNI
app:672020-08-22 08:43:44.985 am debugIn createDataChildDevice - Child device not found - Creating device Weather Dot Gov - Castle Rock Weather Data
app:672020-08-22 08:43:44.980 am debugIn createDataChildDevice (1.1.8)
app:672020-08-22 08:43:39.820 am debugIn weeklytTileOptions - Sending 'weeklyTable' to tile device (WDG - Castle Rock Weather Tile)
app:672020-08-22 08:43:39.781 am debugIn weeklytTileOptions - Sending 'weeklyTable' to tile device (WDG - Castle Rock Weather Tile)
app:672020-08-22 08:43:39.752 am debugIn weeklytTileOptions - Sending 'weeklyTable' to tile device (WDG - Castle Rock Weather Tile)
app:672020-08-22 08:43:39.713 am debugIn weeklytTileOptions - Sending 'weeklyTable' to tile device (WDG - Castle Rock Weather Tile)
app:672020-08-22 08:43:39.682 am debugIn weeklytTileOptions - Sending 'weeklyTable' to tile device (WDG - Castle Rock Weather Tile)
app:672020-08-22 08:43:39.643 am debugIn weeklytTileOptions - Sending 'weeklyTable' to tile device (WDG - Castle Rock Weather Tile)
app:672020-08-22 08:43:39.613 am debugIn weeklytTileOptions - Sending 'weeklyTable' to tile device (WDG - Castle Rock Weather Tile)
app:672020-08-22 08:43:39.576 am debugIn weeklytTileOptions - Sending 'weeklyTable' to tile device (WDG - Castle Rock Weather Tile)
app:672020-08-22 08:43:39.546 am debugIn weeklytTileOptions - Sending 'weeklyTable' to tile device (WDG - Castle Rock Weather Tile)
app:672020-08-22 08:43:39.506 am debugIn weeklytTileOptions - Sending 'weeklyTable' to tile device (WDG - Castle Rock Weather Tile)
app:672020-08-22 08:43:39.475 am debugIn weeklytTileOptions - Sending 'weeklyTable' to tile device (WDG - Castle Rock Weather Tile)
app:672020-08-22 08:43:39.435 am debugIn weeklytTileOptions - Sending 'weeklyTable' to tile device (WDG - Castle Rock Weather Tile)
app:672020-08-22 08:43:39.405 am debugIn weeklytTileOptions - Sending 'weeklyTable' to tile device (WDG - Castle Rock Weather Tile)
app:672020-08-22 08:43:39.008 am debugIn weeklytTileOptions - Sending 'weeklyTable' to tile device (WDG - Castle Rock Weather Tile)
app:672020-08-22 08:43:35.445 am debugIn getWeeklyData (1.1.8)
app:672020-08-22 08:42:55.041 am debugIn sendDataOptions (1.1.8)
app:672020-08-22 08:42:55.037 am debugWeather Dot Gov unable to create tile device - java.lang.IllegalArgumentException: A device with the same device network ID exists, Please use a different DNI
app:672020-08-22 08:42:55.026 am debugIn createDataChildDevice - Child device not found - Creating device Weather Dot Gov - Castle Rock Weather Tile
app:672020-08-22 08:42:55.023 am debugIn createDataChildDevice (1.1.8)
app:672020-08-22 08:42:55.020 am debugWeather Dot Gov unable to create data device - java.lang.IllegalArgumentException: A device with the same device network ID exists, Please use a different DNI
app:672020-08-22 08:42:55.007 am debugIn createDataChildDevice - Child device not found - Creating device Weather Dot Gov - Castle Rock Weather Data
app:672020-08-22 08:42:55.003 am debugIn createDataChildDevice (1.1.8)

First off, thanks for this app. Really great to have with Apple killing off DarkSky.

I'm seeing periods of time where it seems to get bad/no data back from the weather.gov website, which results in the InfluxDB logging app logging 0 entries and messing up my timeseries data. I suppose I could filter these out, but considering the temperature around here does actually go to 0 (or below) pretty routinely for about half the year, this seems like a bad idea. How feasible is it to do some checking for null data being returned and just dropping the measurement instead if updating the data in Hubitat with zeroes?

Example from my temperature graphs this morning.

Each of the drops is the temperature from this app, and is only a single measurement before returning to normal.

added to the list

Wind speed seems to not be working... I've tried KPIB & KHBG and both are the same and show differently on the weather gov site.

  • windGust : 21.92
  • windSpeed : 49.93