This guide provides instructions for deploying the Smart-Watch application on a Raspberry Pi.
- A Raspberry Pi with Raspberry Pi OS (or any other Debian-based Linux distribution).
gitandpython3installed.
-
Clone the repository:
git clone https://github.com/kalikaruto/smart-watch.git smart-watch cd smart-watch -
Make the installation script executable:
chmod +x v2/deployment/install.sh
-
Run the installation script:
./v2/deployment/install.sh
-
Follow the on-screen instructions:
- The script will create a Python virtual environment, install dependencies, and set up the
.envfile. - You will be prompted to edit the
.envfile to add your Telegram API credentials. - The script will then set up a
systemdservice to run the application automatically on boot. - Finally, it will launch the Camera Manager for you to add your cameras.
- The script will create a Python virtual environment, install dependencies, and set up the
Once installed, you can manage the Smart-Watch service using the following commands:
-
Start the service:
sudo systemctl start smart-watch
-
Stop the service:
sudo systemctl stop smart-watch
-
Check the status and view logs:
sudo systemctl status smart-watch
-
View live logs:
journalctl -fu smart-watch