veganism.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Veganism Social is a welcoming space on the internet for vegans to connect and engage with the broader decentralized social media community.

Administered by:

Server stats:

297
active users

#gauge

0 posts0 participants0 posts today

Evaluating Drought Risk Of The Red River Of The North Basin Using Historical And Stochastic Streamflow Upstream From Emerson, Manitoba
--
pubs.usgs.gov/publication/sir2 <-- shared link to USGS publication
--
waterdata.usgs.gov/nwis <-- USGS National Water Information System (NWIS) database - USGS water open data for the Nation
--
#GIS #spatial #mapping #deterministic #waterbalance #stochasticweather #model #modeling #RedRiver #USA #Canada #spatialanalysis #spatiotemporal #waterresources #streamgage #NorthDakota #Manitoba #streamflow #flood #flooding #watersupply #agriculture #farming #ecology #drought #extremeweather #meteorology #basin #subbasin #risk #hazard #gauge #flow
@USGS

Home Assistant gauge card – manually defined colours

This post fits to #TIL (Today I learned) category.

The ‘normal’ way to define colours in a ‘gauge’ card is by defining severity from UI gauge settings. There are only 4 colours available in a sequence: blue, green, yellow, red:

Standard colours are defined using UI by turning on ‘define severity‘ and then entering thresholds for green, yellow, red:

But what if I want to define my own colours (e. g. green-yellow-orange-red)? Sometimes these colours doesn’t visually well represent the sensor value.

Firstly I wanted to define themes but because it didn’t work in a first try, I gave up.

Then I found out that Home Assistant gauge card help offers definining manual ‘segments’ for gauge card. So I switched to manual editing of a gauge and defined segments:

cards:  - type: gauge    entity: sensor.ikea_vindstyrka_airquality_01_voc_index    needle: true    max: 500    name: VOC index - organske spojine    segments:      - from: 0        color: green      - from: 150        color: yellow      - from: 250        color: orange      - from: 400        color: red

For me it was easier than defining and editing ‘themes.yaml’. Maybe I’ll use frontend themes next time.

Tags: #homeassistant #lovelace #gauge #colours

If you’re reading this on fediverse and the layout (embedded pics) is off, here’s the link to the original blog post.

https://blog.rozman.info/home-assistant-gauge-card-manually-defined-colours/