summaryrefslogtreecommitdiffstats
path: root/prometheus/usr/local/bin/midnight_tidy
diff options
context:
space:
mode:
Diffstat (limited to 'prometheus/usr/local/bin/midnight_tidy')
-rwxr-xr-xprometheus/usr/local/bin/midnight_tidy15
1 files changed, 15 insertions, 0 deletions
diff --git a/prometheus/usr/local/bin/midnight_tidy b/prometheus/usr/local/bin/midnight_tidy
new file mode 100755
index 0000000..2e6686e
--- /dev/null
+++ b/prometheus/usr/local/bin/midnight_tidy
@@ -0,0 +1,15 @@
+#!/bin/sh
+set -x
+
+/usr/local/bin/vent close
+
+for i in 2fl_main_radiator 2fl_stair_radiator bathroom_radiator bedroom_radiator hall_radiator kitchen_radiator kstudy_radiator laundry_radiator spare_bedroom_radiator; do
+ /usr/local/bin/set_radiator_target $i 10
+done
+
+for i in kitchen_left/POWER kitchen_right/POWER bathroom/POWER1 bathroom/POWER2 front_door/POWER 2ndfl_3gang_switch/POWER1 2ndfl_3gang_switch/POWER2 2ndfl_3gang_switch/POWER3; do
+ mosquitto_pub -h 127.0.0.1 -t cmnd/$i -m 0
+ sleep 1
+done
+
+