CLI tool for reading Nokeval MTR wireless receivers and forwarding readings as json objects to mqtt topic
- Ensure
pip
andpipenv
are installed. - Clone repository
git clone git @github.com:tvallas/mtr2mqtt
cd
into the repository.- Fetch development dependencies
make install
- Activate virtualenv:
pipenv shell
Pass in serial port settings and mqtt server address, if not provided serial port autodetection is used and localhost for mqtt.
example
$ mtr2mqtt --serial-port /dev/ttyUSB12345 --mqtt 192.168.1.2
Run tests locally using make
if virtualenv is active:
$ make test
If virtualenv isn't active then use:
$ pipenv run make