Environmental Monitoring Toolkit for HARDWARIO Bridge Module
This project is a Python CLI tool providing access to HARDWARIO Bridge Module - an USB to I2C adapter. In connection with HARDWARIO Climate Module, this tool can provide useful environmental data - temperature, relative air humidity, atmospheric pressure, altitude above the sea level, and illuminance. The data can be output to console stdout or published via MQTT message in JSON format.
- macOS or Linux machine (e.g. Raspberry Pi)
- MicroUSB cable
- HARDWARIO Bridge Module
- HARDWARIO Climate Module
Only the official Raspbian distribution is supported. The following procedure has been tested with Raspbian Buster Lite.
-
Install the build tools:
sudo apt install -y autotools-dev autoconf automake libtool
-
Install the library dependencies:
sudo apt install -y libudev-dev libusb-1.0-0-dev
-
Downloaded the sources:
$ wget https://github.com/libusb/hidapi/archive/hidapi-0.9.0.tar.gz
-
Extract the downloaded sources:
$ tar xzf hidapi-0.9.0.tar.gz
-
Go to the sources directory:
$ cd hidapi-hidapi-0.9.0
-
Build the library:
$ ./bootstrap $ ./configure $ make
-
Install the library:
$ sudo make install
Alternatively, install the hidapi
library as a package:
$ sudo apt install -y libhidapi-libusb0
Install the Python tool from PyPI:
$ sudo pip3 install enmon
-
Downloaded the sources:
$ git clone https://github.com/libusb/hidapi.git
-
Go to the sources directory:
$ cd hidapi
-
Build the library:
$ ./bootstrap $ ./configure $ make
-
Install the library:
$ sudo make install
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
We use SemVer for versioning. For the versions available, see the tags on this repository.
- Pavel Hübner - Initial work
This project is licensed under the MIT License - see the LICENSE file for details.