-
Notifications
You must be signed in to change notification settings - Fork 23
Installation & Autostart
spacemanspiff2007 edited this page Jan 23, 2019
·
4 revisions
- Install required dependencies
sudo apt install python3-dev python3-venv
and navigate to folder where HABApp shall be installed (e.g. /opt/)
cd /opt
- Create virtual environment (this will create a new folder "habapp")
python3 -m venv habapp
- Go into folder of virtual environment
cd habapp
- Activate the virtual environment:
source bin/activate
- Upgrade pip
python3 -m pip install habapp
- Install HABApp
python3 -m pip install habapp
- Run (or configure it to autostart) PATH_TO_CONFIGURATION_FOLDER
habapp -c PATH_TO_CONFIGURATION_FOLDER
- Autostart
[Unit]
Description=HABApp
After=network-online.target
[Service]
Type=simple
User=%i
ExecStart=/opt/habapp/bin/habapp -c PATH_TO_CONFIGURATION_FOLDER
[Install]
WantedBy=multi-user.target