nathanbv / smart-blinds-rpi3

Small home automation project (RPi3 side)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Setup

This is the Linux/MQTT-server/RaspberryPi setup part of the smart-blind project. Make sur you also have setup the ESP8266 part.

  • Clone the project on a Unix platform.
  • Install the following Python libraries: paho-mqtt, crontab: pip install paho-mqtt crontab.
  • Create a cron job in you user crontab: crontab -e (also see crontab file for example):
# Will trigger the opening every week day at 7:45
45 7 * * 1-5 ~/smart-blinds/signal.sh > /dev/null 2>&1
  • In alarm-blinds.py change the MQTT broker's IP address to a free address that match your network (the same as the ESP's one).
  • Launch the alarm-blinds.py deamon in the background: python alarm-blinds.py &.
  • That's it !

Requirements:

The system time shall be up to date. The system must be connected to the same network as the ESP8266.

About

Small home automation project (RPi3 side)

License:Other


Languages

Language:Python 94.8%Language:Shell 5.2%