This software is a gateway for smart home devices. It is currently in beta and it's still being actively developed.
- Python ^3.7
- Raspberry PI 3 Model B or newer (with the latest updates).
- Firebase
serviceAccountCreds
(for authenticating to Firebase Admin).
-
Update your Linux repositories by running.
sudo apt update
-
In terminal run this command to install Python and necessary tools.
sudo apt install python-dev python3 python3-pip python3-numpy
-
Install necessary libraries with this command.
sudo pip3 install -r requirements.txt
-
Configure environment variables in
.env.default
file and rename it to.env
-
Run the program with sudo privileges (sudo is required for GPIO pins to be controlled).
sudo python3 app.py
-
To run the program at startup, create a cronjob for
root
user by runningsudo crontab -e
and add this line (change the paths accordingly).@reboot sh /home/pi/smart-home-python/smart_home_launcher.sh >/home/pi/smart-home-python/smart_home.log 2>&1