From 0d810335cfc55c836a054db14fab36fb99f58441 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 13 Jun 2021 11:41:11 +0100 Subject: add atacama --- boiler-monster/mr3020/usr/bin/thermostat | 2 +- heating-cgi/heating.cgi | 20 ++-- mqtt_dash.sh | 190 +++++++++++++++++++++++++++++++ prometheus/usr/local/bin/midnight_tidy | 15 --- prometheus/usr/local/bin/radiators_off | 4 + prometheus/usr/local/bin/vents_close | 3 + radiator-plc/stm32/app/logic.c | 9 ++ tasmota-config/configure-radiators | 3 +- 8 files changed, 219 insertions(+), 27 deletions(-) create mode 100755 mqtt_dash.sh delete mode 100755 prometheus/usr/local/bin/midnight_tidy create mode 100755 prometheus/usr/local/bin/radiators_off create mode 100755 prometheus/usr/local/bin/vents_close diff --git a/boiler-monster/mr3020/usr/bin/thermostat b/boiler-monster/mr3020/usr/bin/thermostat index 8fcc071..612c899 100755 --- a/boiler-monster/mr3020/usr/bin/thermostat +++ b/boiler-monster/mr3020/usr/bin/thermostat @@ -46,7 +46,7 @@ done #... others where we care about the delta -for i in kstudy_radiator bedroom_radiator spare_bedroom_radiator dd_radiator1 dd_radiator2 dd_radiator3 hall_radiator kitchen_radiator music_room_radiator 2fl_stair_radiator 2fl_main_radiator; do +for i in kstudy_radiator bedroom_radiator spare_bedroom_radiator dd_radiator1 dd_radiator2 dd_radiator3 hall_radiator kitchen_radiator music_room_radiator 2fl_stair_radiator 2fl_main_radiator boxroom_radiator; do O="$(mosquitto_sub -t stat/$i/OPEN -h ${M} -W 1 -C 1)" P="$(mosquitto_sub -t stat/$i/POWER -h ${M} -W 1 -C 1)" diff --git a/heating-cgi/heating.cgi b/heating-cgi/heating.cgi index 496f7ba..6d36f4d 100755 --- a/heating-cgi/heating.cgi +++ b/heating-cgi/heating.cgi @@ -615,16 +615,16 @@ sub do_boiler($) { . "' >", $pump, "\n"; -# my $dhw = $boiler->{0.2}->{values}->[0]; -# my $dhw_colour = '#c0c0ff'; -# $dhw_colour = '#ffc0c0' if $dhw == 1; - -# print "DHW running:", $dhw, -# "\n"; + my $dhw = $boiler->{0.2}->{values}->[0]; + my $dhw_colour = '#c0c0ff'; + $dhw_colour = '#ffc0c0' if $dhw == 1; + + print "DHW running:", $dhw, + "\n"; print "