Mercurial > code > home > repos > homeauto
annotate service/arduinoNode/makefile @ 1312:3c732f3f9f65
rm old (2010) code for talking to arduino/firmata with a web ui and some activitystreams stuff
Ignore-this: 3227955154a42eb5b67b49dd1f15890c
darcs-hash:1e9f0060b712752c69ecd9cde1990438162f06f8
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Sun, 21 Apr 2019 23:26:45 -0700 |
parents | 672a3d830e7f |
children |
rev | line source |
---|---|
1141
34fa399dc5c9
docker and makefile for arduinoNode
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
1 build_image: |
34fa399dc5c9
docker and makefile for arduinoNode
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
2 (cd /my/proj/homeauto/lib; tar czf /my/site/projects/rdfdb/more.tgz *.py) |
34fa399dc5c9
docker and makefile for arduinoNode
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
3 docker build --network=host -t bang6:5000/arduino_node . |
34fa399dc5c9
docker and makefile for arduinoNode
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
4 docker push bang6:5000/arduino_node |
34fa399dc5c9
docker and makefile for arduinoNode
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
5 |
1259
672a3d830e7f
arduinoNode: build updates, stats support, etc
drewp <drewp@bigasterisk.com>
parents:
1188
diff
changeset
|
6 shell: build_image |
1188
afd19bf8b499
various docker setups and build fixes
drewp <drewp@bigasterisk.com>
parents:
1148
diff
changeset
|
7 docker run -it --net=host -v `pwd`/config:/opt/config bang6:5000/arduino_node /bin/bash |
1141
34fa399dc5c9
docker and makefile for arduinoNode
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
8 |
1259
672a3d830e7f
arduinoNode: build updates, stats support, etc
drewp <drewp@bigasterisk.com>
parents:
1188
diff
changeset
|
9 local_run: build_image |
1141
34fa399dc5c9
docker and makefile for arduinoNode
drewp <drewp@bigasterisk.com>
parents:
diff
changeset
|
10 docker run -it -p 9059:9059 --device=/dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A900cepU-if00-port0 --net=host bang6:5000/arduino_node python ./arduinoNode.py -v |
1148 | 11 |
12 push_config: | |
1188
afd19bf8b499
various docker setups and build fixes
drewp <drewp@bigasterisk.com>
parents:
1148
diff
changeset
|
13 docker run -it --net=host -v `pwd`/config:/opt/config bang6:5000/arduino_node python pushConfig.py arduino/ |
1259
672a3d830e7f
arduinoNode: build updates, stats support, etc
drewp <drewp@bigasterisk.com>
parents:
1188
diff
changeset
|
14 |
672a3d830e7f
arduinoNode: build updates, stats support, etc
drewp <drewp@bigasterisk.com>
parents:
1188
diff
changeset
|
15 lightsout: |
672a3d830e7f
arduinoNode: build updates, stats support, etc
drewp <drewp@bigasterisk.com>
parents:
1188
diff
changeset
|
16 curl http://bang:9059/output\?s\=http://projects.bigasterisk.com/room/speakersStrips\&p\=http://projects.bigasterisk.com/room/x -XPUT -d 199 |
672a3d830e7f
arduinoNode: build updates, stats support, etc
drewp <drewp@bigasterisk.com>
parents:
1188
diff
changeset
|
17 |
672a3d830e7f
arduinoNode: build updates, stats support, etc
drewp <drewp@bigasterisk.com>
parents:
1188
diff
changeset
|
18 redeploy: build_image |
672a3d830e7f
arduinoNode: build updates, stats support, etc
drewp <drewp@bigasterisk.com>
parents:
1188
diff
changeset
|
19 ctl restart arduinoNodeBang_9059 |