comparison espNode/tasks.py @ 1527:ed3d29eb989a

espNode was not a service; move it to top dir Ignore-this: 3a46fb9f4d09a046dcc30ec838923d69 darcs-hash:711b2e30f5117dbacde98394bfd32791c953a3c7
author drewp <drewp@bigasterisk.com>
date Wed, 05 Feb 2020 16:43:46 -0800
parents
children
comparison
equal deleted inserted replaced
1526:c476543e761e 1527:ed3d29eb989a
1 from invoke import task
2
3 tag = 'esphome/esphome:dev'
4
5 @task
6 def pull_esphome(ctx):
7 ctx.run(f"docker pull {tag}")
8
9 @task
10 def program_board_over_usb(ctx, board):
11 ctx.run(f"docker run --rm -v `pwd`:/config -v /usr/share/fonts:/usr/share/fonts --device=/dev/ttyUSB0 -it {tag} {board}.yaml run", pty=True)
12
13 @task
14 def program_board_over_wifi(ctx, board):
15 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)
16
17 @task
18 def monitor_usb(ctx, board):
19 ctx.run(f"docker run --rm -v `pwd`:/config --device=/dev/ttyUSB0 -it {tag} {board}.yaml logs", pty=True)
20
21 # device up?
22 # nmap -Pn -p 3232,6053 10.2.0.21