Mercurial > code > home > repos > homeauto
view service/espNode/tasks.py @ 1451:71684fc9c692
new index page table
Ignore-this: 7668675a04bd5cc03cf4e1799c54d4d1
darcs-hash:5b546637d01f1fa70134c09470007ed1251d708c
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Wed, 25 Sep 2019 17:27:35 -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)