Expand exanples
This commit is contained in:
parent
513d1d3593
commit
6633db25d7
62
README.md
62
README.md
|
@ -46,7 +46,7 @@ This was originally written for an [AdvantageAir](https://www.advantageair.com.a
|
||||||
|
|
||||||
# Examples
|
# Examples
|
||||||
|
|
||||||
## Sample .rc file
|
## Sample .airconrc file
|
||||||
|
|
||||||
root@gridbug:~# cat .airconrc
|
root@gridbug:~# cat .airconrc
|
||||||
|
|
||||||
|
@ -82,23 +82,79 @@ This was originally written for an [AdvantageAir](https://www.advantageair.com.a
|
||||||
person Beth bethsphone
|
person Beth bethsphone
|
||||||
person Brendan brendansphone
|
person Brendan brendansphone
|
||||||
|
|
||||||
## Generate ~/.airconrcbased on your a tual aircon zones
|
## Generate ~/.airconrc based on your a tual aircon zones
|
||||||
bash$ aircon.sh -m
|
bash$ aircon.sh -m
|
||||||
|
|
||||||
## Log temperature for each zone to csv then exit
|
## Log temperature for each zone to csv then exit
|
||||||
bash$ aircon.sh -L -o /root/acstats.csv -x /usr/local/bin/pymyair -f /root/.airconrc
|
bash$ aircon.sh -L -o /root/acstats.csv -x /usr/local/bin/pymyair -f /root/.airconrc
|
||||||
|
|
||||||
## Preview influxdb inserts for zone temperatures
|
## Preview influxdb inserts for zone temperatures
|
||||||
bash$ aircon.sh -I myinfluxdb -y
|
bash$ aircon.sh -I myinfluxdb
|
||||||
|
/usr/local/bin/influx -database myinfluxdb -execute INSERT temperature,room=Family value=18.7
|
||||||
|
/usr/local/bin/influx -database myinfluxdb -execute INSERT temperature,room=Brendan value=19.1
|
||||||
|
/usr/local/bin/influx -database myinfluxdb -execute INSERT temperature,room=Media value=21
|
||||||
|
/usr/local/bin/influx -database myinfluxdb -execute INSERT temperature,room=Rob&Beth value=18.4
|
||||||
|
/usr/local/bin/influx -database myinfluxdb -execute INSERT temperature,room=Study value=19.2
|
||||||
|
/usr/local/bin/influx -database myinfluxdb -execute INSERT temperature,room=Nursery value=17.8
|
||||||
|
/usr/local/bin/influx -database myinfluxdb -execute INSERT attendance,person=Rob value=1
|
||||||
|
/usr/local/bin/influx -database myinfluxdb -execute INSERT attendance,person=Beth value=1
|
||||||
|
/usr/local/bin/influx -database myinfluxdb -execute INSERT aircon running=0
|
||||||
|
/usr/local/bin/influx -database myinfluxdb -execute INSERT aircon mode=0
|
||||||
|
|
||||||
## Log temperature for each zone to local influxdb then exit
|
## Log temperature for each zone to local influxdb then exit
|
||||||
bash$ aircon.sh -I myinfluxdb -y
|
bash$ aircon.sh -I myinfluxdb -y
|
||||||
|
|
||||||
## Determine required aircon changes and display them only (dry run)
|
## Determine required aircon changes and display them only (dry run)
|
||||||
bash$ aircon.sh
|
bash$ aircon.sh
|
||||||
|
Aircon mode: heat (locked to heat)
|
||||||
|
Current myzone: Family (zone 1)
|
||||||
|
Tolerance: 0.5 degrees low, 0 degrees high
|
||||||
|
Valid Set Actual Proposed
|
||||||
|
Zone Temp State Temp Temp Action
|
||||||
|
Family (C) 18-21 open 19 21.6 close_vent
|
||||||
|
Brendan n/a close 19 19.3 n/a
|
||||||
|
Media 18-22 close 20 21.6 n/a
|
||||||
|
Rob&Beth 18-22 close 18 19.5 n/a
|
||||||
|
Study n/a close 19 20.6 n/a
|
||||||
|
Mel&Rob 18-21 close 18 19.5 n/a
|
||||||
|
Nursery 17-19 open 19 18.9 set_myzone
|
||||||
|
Ben/Sewing n/a close 18 17.6 n/a
|
||||||
|
|
||||||
|
Analysis:
|
||||||
|
- Family is too hot (constant zone)
|
||||||
|
|
||||||
|
Proposed commands:
|
||||||
|
myair 10.99.99.1 set --zone 1 --state off --temp 19 # In zone Family, close vent
|
||||||
|
myair 10.99.99.1 myzone --zone 7 # Set MyZone to Nursery
|
||||||
|
|
||||||
## Make required aircon changes
|
## Make required aircon changes
|
||||||
bash$ aircon.sh -y
|
bash$ aircon.sh -y
|
||||||
|
Aircon mode: heat (locked to heat)
|
||||||
|
Current myzone: Family (zone 1)
|
||||||
|
Tolerance: 0.5 degrees low, 0 degrees high
|
||||||
|
Valid Set Actual Proposed
|
||||||
|
Zone Temp State Temp Temp Action
|
||||||
|
Family (C) 18-21 open 19 21.6 close_vent
|
||||||
|
Brendan n/a close 19 19.3 n/a
|
||||||
|
Media 18-22 close 20 21.6 n/a
|
||||||
|
Rob&Beth 18-22 close 18 19.5 n/a
|
||||||
|
Study n/a close 19 20.6 n/a
|
||||||
|
Mel&Rob 18-21 close 18 19.5 n/a
|
||||||
|
Nursery 17-19 open 19 18.9 set_myzone
|
||||||
|
Ben/Sewing n/a close 18 17.6 n/a
|
||||||
|
|
||||||
|
Analysis:
|
||||||
|
- Family is too hot (constant zone)
|
||||||
|
|
||||||
|
Proposed commands:
|
||||||
|
myair 10.99.99.1 set --zone 1 --state off --temp 19 # In zone Family, close vent
|
||||||
|
myair 10.99.99.1 myzone --zone 7 # Set MyZone to Nursery
|
||||||
|
|
||||||
|
Running action: In zone Family, close vent
|
||||||
|
RUNNING myair 10.99.99.1 set --zone 1 --state off --temp 19
|
||||||
|
Running action: Set MyZone to Nursery
|
||||||
|
RUNNING myair 10.99.99.1 myzone --zone 7
|
||||||
|
|
||||||
|
|
||||||
## Make required aircon changes and log actions to influxdb
|
## Make required aircon changes and log actions to influxdb
|
||||||
bash$ aircon.sh -y -A myinfluxdb
|
bash$ aircon.sh -y -A myinfluxdb
|
||||||
|
|
Loading…
Reference in New Issue