UPDATE - 12/01/2020: You now can choose either OWM or weather.gov as the source for Weather Alerts. weather.gov only provides alerts for the United States while OWM provides global weather alerts (see link below).
UPDATE - 10/20/2020: OpenWeatherMap now provides global weather alerts. As of version V0.2.2 this driver uses OWM for all of it's external forecast data and no longer polls weather.gov (NWS) for weather alerts. This means that weather alerts are available from global sources as specified on OWM's documentation here, and alerts are no longer with limited to the United States only.
[RELEASE] V0.0.1 04/22/2020
REQUIREMENTS: You MUST have a Personal Weather Station (PWS) and use Weather-Display software to capture that weather data from your network or a web server. If you do not meet this requirement then this driver will not work for you. This uses the Weather-Display data files from a webserver you specify in the driver preferences. I used waynedgrant's work to make those data files available in JSON format (GitHub - waynedgrant/json-webservice-wdlive: JSON formatted Web Service API to expose Weather Display Live data. Written in PHP.).
This is the initial release of my driver that changes the forecast/alert source from DarkSky.net to OpenWeatherMap.org and NWS (weather.gov). This initial release only intends to replicate the functionality of the Weather-Display With Darksky.net Forecast Driver as much as possible.
OpenWeatherMap I beleive is worldwide so it should give you results from anywhere. I am not certain about the weather alerts as those come the US National Weather Server (weather.gov).
The driver does include a Luminance(Lux) calculation.
@mik3
I just plugged in the coordinates for Edmonton, Canada on the National Weather Service (weather.gov) API and got 'Parameter "point" is invalid: out of bounds' message returned, so it does not look like Alerts will work outside of the US.
The primary weather data does come from OpenWeatherMap.org (OWM). OWM does not provide alert data (like DarkSky does), so to replicate that functionality I pull alerts from the US National Weather Service (weather.gov). There is not a lot of weather alert data provided in this driver, basically just if there is an alert and if so, the alert 'Title'. If you do not require alert data, this driver should provide all the other general current and forecast weather data.
@Matthew, thank you for this new driver! I have it installed, replacing the DarkSky version. It seems to be working well, pulling in my station data.
However, I believe there is a bug with the station polling intervals. I currently have it set to 5 minute polling, but if I change it to 1 minute (which is what I prefer) nothing updates after that.
I took a look at the driver code and in the initialize_poll() function the option for polling the station at 1 minute interval seems to be missing...
While I was researching some of this I found some of your comments on the NOAA Alert thread. Without reading all 400 posts over there .... did that app/driver find a solution for Canadian weather alerts I can look at to bring over into this driver?
Improved Alert handling for dashboard tiles, various bug fixes
PLEASE NOTE : after any update of the driver code, even if you use Hubitat Package Manager, you should open the virtual device, click 'Save Device', then click 'Save Preferences'.
I am a long time user of Weather Display and I'm having hard time understanding where everything.php is derived. I was not in involved in DarkSky so that may be the reason. Is it testtags with a new name? ??
Improved Alert handling for dashboard tiles (modelled after @bptworld's WDG alert error handling), again, various bug fixes.
PLEASE NOTE : after any update of the driver code, even if you use Hubitat Package Manager, you should open the virtual device, click 'Save Device', then click 'Save Preferences'.
PLEASE NOTE : after any update of the driver code, even if you use Hubitat Package Manager, you should open the virtual device, click 'Save Device', then click 'Save Preferences'.