How to control your Domoticz SmartVirtualThermostat (SVT) from your linux desktop or your Raspberry Pi with python and pygame
Smart Virtual Thermostat Plugin for domoticz is provided by Logread 999LV (SVT Domoticz repository : https://github.com/999LV/SmartVirtualThermostat.git ). Many thanks to him!
This utility will help you to control from internet your domoticz virtual thermostat from a Raspberry Pi equipped with a TFT screen or from any linux PC.
Install libraries:
$ git clone https://github.com/onlinux/thermostat-domoticz.git
run:
$ cd thermostat-domoticz
$ sh setup.sh
Configuration
Modify config.ini
[secret] server= # Enter your domoticz server name ip_domoticz= port= username= # Enter username if exists password= # Enter password to access your domoticz server
Start Thermostat Domoticz
$ source venv/bin/activate
Start linux desktop script:
$ python z.py
Or start raspberryPi with TFT script
$ python z-pi.py
‘Alt-PageDown’ key or ‘n’ key to roll over the 4 available displays Click to change Meteo Station when displaying forecasts. Meteo Stations are defined within z.py
tlocations = ( {'code': 'FRXX0099' , 'color': BLACK}, {'code': 'FRXX4269' , 'color': BLACK}, {'code': 'FRXX3651' , 'color': BLACK}, {'code': 'BRXX3505' , 'color': DARKGREEN} )