This program initializes the ZWave Network, logging any and all value refreshes received to the file output.csv -- this includes sensor readings and other updates.
Note: if you do not already have Windows Subsystem for Linux, follow the installation guide provided by Microsoft
- ./setup_ubuntu.sh
- ./allow_port_access_forever_ubuntu.sh
- ./setup_os_x.sh
- ./run.sh <optional port name, defaults to /dev/ttyACM0 for Linux>
- Just do ctrl+C once, it will stop itself.
Let # as used below be the port number of the ZWave Stick.
It should be COM# in Windows and /dev/ttyS# in Ubuntu. You can try figure out what # is by opening Device Manager and looking at the USB devices list, then trying each with ./run.sh /dev/ttyS#
until it works. If you get an error message that permission is denied, run ./allow_port_access_once.sh /dev/tty/S#
.
It should be /dev/ttyUSB#, you can also try each one until you get it right.
It should be /dev/ttyACM#, you may need permission to read/write to the port. In that case, run ./allow_port_access_once.sh /dev/ttyACM#
or use the indefinite version.
Is it relatively safe to delete all the files that seem to be generated (i.e. pyozw.sqlite) when I run the sniffer?
Yes, just make sure you stop the sniffer first. Use clean.sh
If you're seeing this, there was an error in configuring the network properly. It's best to re-download/re-clone this repo and run it from there, or alternatively delete all the new files.
This has happened to me several times -- usually, the issue is that you're running the network for the first time and the stick is waiting for something (not sure what). The solution tends to be to press the button on each of the sensors once.