Skip to content
This repository has been archived by the owner on Feb 16, 2024. It is now read-only.

1. Installation

DewGew edited this page May 12, 2020 · 18 revisions

RPI/Ubuntu Installation with autostart

This installs the dzga in a virtual enviroment.

Just open a terminal window and execute this command. Thats it!

bash <(curl -s https://raw.githubusercontent.com/DewGew/dzga-installer/master/install.sh)

Start/stop Domoticz-Google-Assistant server:

sudo systemctl start dzga
sudo systemctl stop dzga

Check if service is running:

sudo systemctl status dzga

To update run installer again:

bash <(curl -s https://raw.githubusercontent.com/DewGew/dzga-installer/master/install.sh)

To run manually:

cd /home/${USER}/
sudo systemctl stop dzga #If service is running
source Domoticz-Google-Assistant/env/bin/activate
python3 Domoticz-Google-Assistant

Uninstall:

cd /home/${USER/
sudo systemctl stop dzga
sudo systemctl disable dzga
sudo rm /etc/systemd/system/dzga.service
sudo rm -r Domoticz-Google-Assistant

Installation Synology

This installs the dzga in a virtual enviroment.

Install python3 using the Synology Package Center.

SSH onto your synology & login as user

cd /volume1/${USER}/
git clone https://github.com/DewGew/Domoticz-Google-Assistant

Run install script

sudo bash Domoticz-Google-Assistant/scripts/install_synology.sh

Usefull commands

Start Dzga

sudo /volume1/${USER}/dzga-daemon start

Stop Dzga

sudo /volume1/${USER}/dzga-daemon stop

Restart Dzga

sudo /volume1/${USER}/dzga-daemon restart

Check Dzga status

sudo /volume1/${USER}/dzga-daemon status

Manual Installation

Open a terminal window and execute those commands. NOTE: "${USER}" will automatically take your username. No need to change that. Just copy and paste.

cd /home/${USER}/
git clone https://github.com/DewGew/Domoticz-Google-Assistant
pip install -r Domoticz-Google-Assistant/requirements/pip-requirements.txt

Manual start (stop with 'ctrl-c'):

cd /home/${USER}/
python3 Domoticz-Google-Assistant

Update:

cd /home/${USER}/Domoticz-Google-Assistant/
git pull
pip install -r requirements/pip-requirements.txt

Uninstall:

cd /home/${USER/
sudo rm -r /home/${USER/Domoticz-Google-Assistant

Next Configuration