Apixu.com worldwide weather data with outside lux. No PWS or server setup

WU Night Icon Variants

@bangali I noticed that the code appears to have support for the night variants of Weather Underground keys in the forecastIcon attribute, but it appears to be hard coded to day.

On line 285 of the current release, the getWUIconName() call can be changed from:

sendEvent(name: "forecastIcon", value: getWUIconName(obs.current.condition.code, 1), displayed: true)

To:

sendEvent(name: "forecastIcon", value: getWUIconName(obs.current.condition.code, obs.current.is_day), displayed: true)

Was it hard coded for some particular reason or maybe just a remnant from testing that could be corrected?


Attributes Now Reporting in SharpTools.io

Just an update that the Hubitat 2.0.6 update includes some enhancements around this. SharpTools.io can now dynamically request which attributes to subscribe to so it can get events from 'non-standard' attributes like those used in several weather drivers.


localSunrise and localSunset impact

Also just a comment that the removal of the localSunrise and localSunset attributes means that sunrise and sunset will no longer be reflected/updated in the SharpTools weather tile.

2 Likes