I have made a cool gauge card to visualize the UV index and its level before going out to my Alfresco area. The UV in Australia can go extreme and you will need to be protected
for this you need to use Open UV platform:
for automation of OpenUV I am using the suggested 30 minutes updates which gives you enough points within your free 50 API requests.
for the gauge I am using combination of cards:
- type: custom:card-modder #UV Gauge
style:
border-radius: 25px
card:
type: picture-elements
image: /local/pics/UV_gauge_wa.png
elements:
- type: custom:canvas-gauge-card
entity: sensor.current_uv_index
style:
top: 50%
left: 50%
gauge:
type: "radial-gauge"
title: UV Index
width: 200
height: 200
minValue: 0
maxValue: 13
startAngle: 40
ticksAngle: 280
valueBox: true
majorTicks: ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13"]
minorTicks: 5
strokeTicks: true
highlights: [{"from": 2.5, "to": 5.5,"color": "rgba(247, 228, 1, .75)"},{"from": 0, "to": 2.5,"color": "rgba(40, 149, 0, .75)"},{"from": 5.5, "to": 7.5,"color": "rgba(248, 123, 1, .75)"},{"from": 7.5, "to": 10.5,"color": "rgba(216, 23, 0, .75)"},{"from": 10.5, "to": 13,"color": "rgba(75, 46, 154, .75)"}]
borders: no
needleType: "arrow"
needleWidth: 4
needleCircleSize: 7
needleCircleOuter: true
needleCircleInner: false
animationDuration: 1500
animationRule: "linear"
valueBoxBorderRadius: 10
colorValueBoxRect: "#222"
colorValueBoxRectEnd: "#333"
valueDec: 2
valueInt: 2
I made the background myself to fit the gauge and my screen nicely:
I hope you enjoy. Let me know if any feedback or suggestion to improve. I haven’t figured it out if I can get the UV index from any other source like BOM.
The end result:
Cheers
Ali