red or green background based on kWh price?

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
renerene
Posts: 316
Joined: Wednesday 03 August 2016 11:36
Target OS: -
Domoticz version:
Contact:

red or green background based on kWh price?

Post by renerene »

For my dynamic energy contract it would be nice to have the Dasthicz background green if currentkWh price is lower than average.
I am no CSS master, but working in dzVents is no problem.

can you help?

An alternative scale 0-100 red -green based on a dummy dimmer status would also be nice. But simple on/off red/green boolean is also ok
User avatar
Xenomes
Posts: 379
Joined: Tuesday 27 November 2018 19:05
Target OS: Linux
Domoticz version: 2024.7
Location: Netherlands
Contact:

Re: red or green background based on kWh price?

Post by Xenomes »

You can use this function of Dashticz.
https://dashticz.readthedocs.io/en/mast ... tomjs.html
HP T630 (32GB SSD/8GB Mem) - Ubuntu 22.04.4 LTS (64Bit) - Domoticz 2024.7 with Machinon theme - RFLink - KaKu - Sonoff - Tasmota - Shelly - MQTT2Zigbee - OpenTherm Gateway - Tinytuya - IR Blaster - P1 Smart Meter - NPN Watermeter - Google Assistant
renerene
Posts: 316
Joined: Wednesday 03 August 2016 11:36
Target OS: -
Domoticz version:
Contact:

Re: red or green background based on kWh price?

Post by renerene »

Xenomes wrote: Thursday 27 July 2023 9:36 You can use this function of Dashticz.
https://dashticz.readthedocs.io/en/mast ... tomjs.html
Thank you, this looks like half of the solution.
Missing is the option to change color of the ENTIRE dashticz background, not just background of single device
User avatar
Xenomes
Posts: 379
Joined: Tuesday 27 November 2018 19:05
Target OS: Linux
Domoticz version: 2024.7
Location: Netherlands
Contact:

Re: red or green background based on kWh price?

Post by Xenomes »

You need to find the correct class to manipulate the color, in your browser hit F12 and you see the built of the page and you will see/find the class complete page.
HP T630 (32GB SSD/8GB Mem) - Ubuntu 22.04.4 LTS (64Bit) - Domoticz 2024.7 with Machinon theme - RFLink - KaKu - Sonoff - Tasmota - Shelly - MQTT2Zigbee - OpenTherm Gateway - Tinytuya - IR Blaster - P1 Smart Meter - NPN Watermeter - Google Assistant
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests