Working zwave!
Open docker, go to /usr/src/balloob-python-openzwave/examples, run python3 api_demo.py --device=/zwaveusbstick --log=Debugpull/44/head
parent
bb5e8e00dd
commit
9c61c281ca
|
@ -12,11 +12,10 @@ RUN apt-get update && \
|
||||||
cd louie && \
|
cd louie && \
|
||||||
python setup.py install && \
|
python setup.py install && \
|
||||||
cd .. && \
|
cd .. && \
|
||||||
hg clone https://code.google.com/p/python-openzwave/ && \
|
hg clone https://code.google.com/r/balloob-python-openzwave/ && \
|
||||||
cd python-openzwave && \
|
cd balloob-python-openzwave && \
|
||||||
./update.sh && \
|
./update.sh && \
|
||||||
sed -i '253s/.*//' openzwave/cpp/src/value_classes/ValueID.h && \
|
sed -i '253s/.*//' openzwave/cpp/src/value_classes/ValueID.h && \
|
||||||
2to3 --no-diffs -w -n api examples && \
|
|
||||||
./compile.sh && \
|
./compile.sh && \
|
||||||
./install.sh
|
./install.sh
|
||||||
|
|
||||||
|
|
|
@ -14,8 +14,8 @@ if [ $# -gt 0 ]
|
||||||
then
|
then
|
||||||
docker run \
|
docker run \
|
||||||
--net=host \
|
--net=host \
|
||||||
|
--device=/dev/ttyUSB0:/zwaveusbstick:rwm \
|
||||||
-e "TZ=$1" \
|
-e "TZ=$1" \
|
||||||
--device=/dev/bus/usb/002:/usbstick:rwm \
|
|
||||||
-v `pwd`:/usr/src/app \
|
-v `pwd`:/usr/src/app \
|
||||||
-v `pwd`/config:/config \
|
-v `pwd`/config:/config \
|
||||||
-t -i home-assistant-dev \
|
-t -i home-assistant-dev \
|
||||||
|
|
Loading…
Reference in New Issue