Skip to content

Installation & Autostart

spacemanspiff2007 edited this page Jan 23, 2019 · 4 revisions

Installation

  1. Install required dependencies
sudo apt install python3-dev python3-venv

and navigate to folder where HABApp shall be installed (e.g. /opt/)

cd /opt
  1. Create virtual environment (this will create a new folder "habapp")
python3 -m venv habapp
  1. Go into folder of virtual environment
cd habapp
  1. Activate the virtual environment:
source bin/activate
  1. Upgrade pip
python3 -m pip install habapp
  1. Install HABApp
python3 -m pip install habapp
  1. Run (or configure it to autostart) PATH_TO_CONFIGURATION_FOLDER
habapp -c PATH_TO_CONFIGURATION_FOLDER
  1. Autostart
[Unit]
Description=HABApp
After=network-online.target

[Service]
Type=simple
User=openhab
Group=openhab
ExecStart=/opt/habapp/bin/habapp -c PATH_TO_CONFIGURATION_FOLDER

[Install]
WantedBy=multi-user.target
Clone this wiki locally