Introducing 'Weather Dot Gov'
Making the Weather.gov data usable with Hubitat.
No longer actively supporting this app. Weather.gov website is too unpredictable/unreliable.
Features:
Collect and display tons of weather data from weather.gov
NO signups or cost needed!
Daily Forecast, Weekly Forecasts, Alerts, Notifications, Pollen and Asthma Forecasts
All data is available to use in RM or any other app
Several pre-made tiles to choose from or build your own using Tile Master .
Parent/Child App structure
Create as many child apps as needed
This app can be found on my GitHub.
When reporting problems...
Be sure you are on the latest version. I won't troubleshoot an older version.
Turn on debug and screenshot the issue happening in the log. One line or just the error doesn't cut it. I need a log.
Post the screenshot of the log with an explanation of the problem.
Thanks
Note: If using Smartly, add this to your CSS within the Dashboard settings.
.tile-primary, .tile-contents{
height: 100% ;
}
Also see this thread...
https://community.hubitat.com/t/smartly-wdg-weather-dot-gov-tile-css-patch/38921
22 Likes
App portion coming along nicely. Here's a little example.
Current - Horizontal:
Current - Vertical:
Daily - Can have up to 7 days (each day with 2 parts!)
Alerts
5 Likes
woodsy
April 5, 2020, 11:35pm
3
OH BABY! keep going, I am glued to this thread.
Thank You, Bruce.
2 Likes
aaron
April 6, 2020, 1:40pm
4
Hopefully others can add their LUX code to this driver. Would be greatly appreciated as that is what I use the current DarkSky for.
1 Like
I came here to say this same thing.
If we wanted to change the method of getting solar data, NWS has a nifty solar calculator that could probably be used
Also request adding Lux
TIA
Since this is an app/driver for Weather.gov I ask that anyone that can find a Lux setting come forward with this information. I haven't seen one that's for sure.
If I recall correctly, the other weather drivers had to use a custom algorithm for these—something that took visibility and time of day into consideration.
I’ll see if I can dig anything up, though. It sure would be nice to have!
1 Like
Beta release on GitHub...
Parent:
V1.0.0 - 04/07/20 - Initial release
Child:
V1.0.0 - 04/07/20 - Initial release
Driver - Data:
V1.0.0 - 04/07/20 - Initial release
Driver - Tile:
V1.0.0 - 04/07/20 - Initial release
4 Likes
starcom:
Also request adding Lux
I don't recall seeing Lux on any site but I do recall seeing solar radiation in watts/meter^2 which I find much more meaningful. It's been a long time since I've seen it.
DarkSky driver exposed Lux attribute; don't know the inner workings...
Looks like driver derives Lux
// >>>>>>>>>> Begin Lux Processing <<<<<<<<<<
void updateLux(boolean pollAgain=true) {
LOGINFO("UpdateLux $pollAgain")
if(pollAgain) {
String curTime = new Date().format("HH:mm", TimeZone.getDefault())
String newLight
if(curTime < getDataValue("tw_begin") || curTime > getDataValue("tw_end")) {
newLight = "false"
} else {
newLight = "true"
}
if(newLight != getDataValue("is_lightOld")) {
pollDS()
return
}
}
def (lux, bwn) = estimateLux(getDataValue("condition_code"), getDataValue("cloud").toInteger())
updateDataValue("illuminance", !lux ? "0" : lux.toString())
updateDataValue("illuminated", String.format("%,4d", !lux ? 0 : lux).toString())
updateDataValue("bwn", bwn)
if(pollAgain) PostPoll()
return
}
//
@bptworld
Seem to be getting an error in the Child App. I noticed I could not create a daily tile, it keeps saying Select an Attribute even though the driver had populated the data. I saw this in the logs:
I uninstalled and reinstalled and still showing the same thing,
Sorry about that, try the new version on GitHub...
Child:
V1.0.1 - 04/08/20 - Fixed typo
The fix seemed to fix my issue with the tile.
Thanks,
I know this might be a little problem I'm missing the condition image.
Missing in the driver section too.
Can you show me a screenshot of your data device, Current States? Specifically showing the icon attribute.
Thanks
I think this is what you are asking for
Nope, wrong driver. That's the Tile driver. I need the Data driver.
Like this: