Mercurial > code > home > repos > homeauto
comparison service/frontDoorLock/tasks.py @ 771:3f6055cfccb2
move mqtt port
Ignore-this: c073796027dbda80f17fc2ae708e4f96
author | drewp@bigasterisk.com |
---|---|
date | Fri, 05 Jun 2020 17:49:56 -0700 |
parents | 013e2a89b345 |
children | 437d7263b515 |
comparison
equal
deleted
inserted
replaced
770:11712539f4df | 771:3f6055cfccb2 |
---|---|
39 tag = 'esphome/esphome' | 39 tag = 'esphome/esphome' |
40 ctx.run(f"docker run --rm -v `pwd`:/config --device=/dev/ttyUSB0 -it {tag} door.yaml logs", pty=True) | 40 ctx.run(f"docker run --rm -v `pwd`:/config --device=/dev/ttyUSB0 -it {tag} door.yaml logs", pty=True) |
41 | 41 |
42 @task | 42 @task |
43 def tail_mqtt(ctx): | 43 def tail_mqtt(ctx): |
44 ctx.run(f'mosquitto_sub -h bang -p 10010 -d -v -t \#') | 44 ctx.run(f'mosquitto_sub -h bang -p 10210 -d -v -t \#') |
45 | 45 |
46 @task | 46 @task |
47 def mqtt_force_open(ctx): | 47 def mqtt_force_open(ctx): |
48 ctx.run(f'mosquitto_pub -h bang -p 10010 -t frontdoorlock/switch/strike/command -m ON') | 48 ctx.run(f'mosquitto_pub -h bang -p 10210 -t frontdoorlock/switch/strike/command -m ON') |
49 | 49 |
50 @task | 50 @task |
51 def mqtt_force_lock(ctx): | 51 def mqtt_force_lock(ctx): |
52 ctx.run(f'mosquitto_pub -h bang -p 10010 -t frontdoorlock/switch/strike/command -m OFF') | 52 ctx.run(f'mosquitto_pub -h bang -p 10210 -t frontdoorlock/switch/strike/command -m OFF') |
53 | 53 |
54 | 54 |
55 @task(pre=[build_image]) | 55 @task(pre=[build_image]) |
56 def mypy(ctx): | 56 def mypy(ctx): |
57 ctx.run(f'docker run --rm -it --name={JOB}_mypy --net=host' | 57 ctx.run(f'docker run --rm -it --name={JOB}_mypy --net=host' |