Code by Scott שאול בן ישוע
Verified Commit 2f58246b authored by Sha'ul ben Yeshua's avatar Sha'ul ben Yeshua 🎗
Browse files

Added Ultraviolet Index

parent c02d6205
Pipeline #289 passed with stage
in 3 seconds
......@@ -33,7 +33,6 @@
* requires you to install my Weewx Skin at https://github.com/sgrayban/hubitat-weewx-driver/
*
* Version:
* 2.0.0 - Url changes
* 1.0.0 - Initial commit
* - Fixed UTF8 encoding
*
......@@ -44,7 +43,7 @@ metadata {
name: "Weewx Weather Driver",
namespace: "sgrayban",
author: "Scott Grayban",
importUrl: "http://sgrayban.borgnet.online:8081/hubitat-weewx-driver/weeWX-driver.groovy"
importUrl: "https://gitlab.borgnet.us:8443/sgrayban/hubitat-weewx-driver/raw/master/Driver/weeWX-driver.groovy"
)
{
......@@ -53,6 +52,7 @@ metadata {
capability "Temperature Measurement"
capability "Illuminance Measurement"
capability "Relative Humidity Measurement"
capability "Ultraviolet Index"
capability "Polling"
command "PollStation"
command "poll"
......@@ -892,6 +892,7 @@ def PollStation()
sendEvent(name: "localSunrise", value: state.LocalSunrise, isStateChange: true)
sendEvent(name: "localSunset", value: state.LocalSunset, isStateChange: true)
sendEvent(name: "uv", value: state.UV, isStateChange: true)
sendEvent(name: "ultravioletIndex", value: state.UV, isStateChange: true)
sendEvent(name: "uvHarm", value: state.UVHarm, isStateChange: true)
sendEvent(name: "LastUpdate-Weewx", value: resp1.data.time)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment