From 7c6887eaaf812b63bab6c5e134f80a2ef36aeb31 Mon Sep 17 00:00:00 2001 From: fishsoupisgood Date: Tue, 12 Jan 2021 16:58:31 +0000 Subject: works --- prometheus/usr/local/bin/midnight_tidy | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 prometheus/usr/local/bin/midnight_tidy (limited to 'prometheus/usr/local/bin/midnight_tidy') 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 + + -- cgit v1.2.3