Files
lightswitch/deploy
2019-09-29 21:08:35 +02:00
..
2019-03-31 13:13:59 +02:00
2019-03-31 13:13:59 +02:00

Convenience tool

This tool reads a CSV and sets all TimeSpecs found. How to use:

  1. edit config.csv and edit the last column in the CSV (a TimeSpec in UTC)
  2. run ./doall.sh -q get > old.csv
  3. diff -u old.csv config.csv
  4. run ./doall.sh set and check the output
  5. run ./doall.sh -f set
  6. Check in the new config.csv

Example

# Generated on Sun Mar 31 13:03:21 CEST 2019
# Device,IPv4,Chan,Name,TimeSpec(UTC)
esp8266_808501,192.168.9.7,0,Heli Basking Light,06:45:00-18:30:00
esp8266_808501,192.168.9.7,1,Heli UV Light,07:00:00-18:15:00
esp8266_052EE8,192.168.9.12,0,Heli Red/White LED,06:30:00-18:45:00
esp8266_052FB1,192.168.9.13,0,Heli Blue LED,22:00:00-04:00:00
esp8266_807AAD,192.168.9.8,0,Sticky Basking Light,06:45:00-18:30:00
esp8266_807AAD,192.168.9.8,1,Sticky UV Light,07:00:00-18:15:00
esp8266_202936,192.168.9.10,0,Sticky Red/White LED,06:30:00-18:45:00
esp8266_053F26,192.168.9.11,0,Sticky Blue LED,22:00:00-04:00:00
esp8266_807AAD,192.168.9.8,2,Sticky Fogging,17:02:00-17:22:00
esp8266_807AAD,192.168.9.8,3,Sticky Raining,17:15:00-17:15:15