Gateway Pi is a python program that acts as a gateway between the Smart Home Assistant and the sensors and actuators connected to the Pi.
Run the script
source setup.sh
to install the virtual environment necessary for the application to run.
To run as a standalone program enter the virtual environment with
source ./virtual/bin/activate
and then run the main.py script
python main.py
To run the program as a service on the raspberry pi you need to:
cp gateway-pi.service /lib/systemd/system
sudo systemctl daemon-reload
sudo systemctl enable gateway-pi.service
sudo systemctl start gateway-pi.service
You can then check if the service is running by typing
systemctl status gateway-pi.service