Hi,
I wanted to share the app that I wrote. Itās kind of handy in the summer. It will alert you if UV index is dangerously high.
Feel free to modify and share the code.
https://github.com/625alex/SmartThings/blob/master/apps/UVMonitor.groovy
Hi,
I wanted to share the app that I wrote. Itās kind of handy in the summer. It will alert you if UV index is dangerously high.
Feel free to modify and share the code.
https://github.com/625alex/SmartThings/blob/master/apps/UVMonitor.groovy
I made minor changes to validate UV value, since sometimes the WU returns -1 for UV.
I installed this yesterday but Iām getting seemingly random alerts. I havenāt looked at the code but I assume no configuration is needed?
Earlier today it was alerting to UV 5, then 4, then around 9 an hour later.
Incidentally, itās been cloudy here all day so Iām not sure the UV index is that high.
@viguera
Thatās right, no configuration is needed.
The app checks UV report of Weather Underground based on your homeās location every 15 minutes. If UV reading is grater than 5 (high), it will alert you. You will not get any alerts until the value changes. Once the UV rating gets below 5, you will not get any more notifications until it gets above 5 again.
If you had broken clouds all day, itās possible that the UV rating greatly fluctuated throughout the day.
I compared readings from Weather Undergroundās website and ones reported by my app. They seem to match.
I also subscribed to UV alerts from IFTTT, but Yahoo weather reports rather different UV ratings. Maybe itās because IFTTT uses cityās official report. Weather Underground has a weather station right next to my house, so their weather report is always slightly different than city centerās.
Thanks.
Iāll look at the UV report from WU and compare.
Check app properties in the IDE. It saves last reported value.
Let me know if you find something interesting.
Nothing outrageous⦠it seems to match the reports from WU, so maybe Iām the one underestimating the UV value
I did notice a typo where Extreme was incorrectly spelled Extreame though but thatās minor
The one thing that I was going to edit and figured Iād point out as a request instead is to have a customizable schedule, rather than a preset 60 minute interval for āannouncementsā of the UV index. That way you could set it as every 3-4 hours or once a day or something to that effect.
I updated the app to take settings for refresh interval, minimum UV threshold and change quantity.
This app even scores some WAF points from my wife who has fare skin. She is warming up to seeing notifications from ST.
I also created a UV Sensor device type that might be useful on a dashboard. It should be used with something like Pollster to refresh it periodically.