Mercurial > code > home > repos > homeauto
view service/espNode/tasks.py @ 1457:2ba144b7ede0
whitespace and doc
Ignore-this: 51023da4821300d28020696e0b145db5
darcs-hash:716d578348ca7a56c55f0687741d19077829c5e8
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Wed, 25 Sep 2019 17:56:03 -0700 |
parents | 5e8f1fcfbc79 |
children | 438edc93e29e |
line wrap: on
line source
from invoke import task @task def program_board_over_usb(ctx, board): tag = 'esphome/esphome' ctx.run(f"docker run --rm -v `pwd`:/config -v /usr/share/fonts:/usr/share/fonts --device=/dev/ttyUSB1 -it {tag} {board}.yaml run", pty=True) @task def program_board_over_wifi(ctx, board): tag = 'esphome/esphome' ctx.run(f"docker run --rm -v `pwd`:/config -v /usr/share/fonts:/usr/share/fonts -it --net=host {tag} {board}.yaml run", pty=True) @task def monitor_usb(ctx, board): tag = 'esphome/esphome' ctx.run(f"docker run --rm -v `pwd`:/config --device=/dev/ttyUSB0 -it {tag} {board}.yaml logs", pty=True)