Python >= 3.4 is required.
- Install required system packages.
$ sudo apt-get update
$ sudo apt-get install build-essential python3-dev python3-pip- Clone the Adafruit Python Sensor Library repo.
$ git clone https://github.com/adafruit/Adafruit_Python_DHT
$ cd Adafruit_Python_DHT- Build and install the library.
$ sudo python3 setup.py install- Clone the ZTemp Bot repo.
$ git clone https://github.com/izeigerman/ztemp-bot
$ cd ztemp-bot- Install the dependencies.
$ pip3 install -r requirements.txt- Copy the configuration template and update it with the required values (Telegram token and ID of the trusted chat).
$ cd ztemp-bot
$ cp ./conf/ztemp_conf.json.template ./conf/ztemp_conf.json
$ vim ./conf/ztemp_conf.json- Launch the bot.
$ sudo ./bin/ztemp start