Python 3.2 is recommended. 2.x is not supported any more. $ sudo apt-get install python3 python3-dev python3-setuptools
Calculating of sunset/sunrise in triggers,requires installation of ephem as well.
$ sudo easy_install3 pip
$ sudo pip-3.2 install ephem
At https://github.com/mknx/smarthome/releases you find the latest release.
$ cd /usr/local
$ sudo tar --owner=smarthome xvzf path-to-tgz/smarthome-X.X.tgz
Everything is extracted to /usr/local/smarthome/. It is possible to use another path.
To install the recent developer version of SmartHome.py for user smarthome:
$ sudo mkdir -p /usr/local/smarthome/
$ sudo chown -R smarthome /usr/local/smarthome/
$ cd /usr/local
$ git clone git://github.com/mknx/smarthome.git
To get the latest updates:
$ cd /usr/local/smarthome
$ git pull
Structure of the smarthome.py directory, e.g. /usr/local/smarthome/:
Arguments for running SmartHome.py
$ /usr/local/smarthome/bin/smarthome.py -h
--help show this help message and exit
-v, --verbose verbose (debug output) logging to the logfile
-d, --debug stay in the foreground with verbose output
-i, --interactive open an interactive shell with tab completion and with verbose logging to the logfile
-l, --logics reload all logics
-s, --stop stop SmartHome.py
-q, --quiet reduce logging to the logfile
-V, --version show SmartHome.py version
--start start SmartHome.py and detach from console (default)