Monthly Archives: June 2019

How to set your Domoticz Smart Virtual Thermostat from your linux desktop or raspberrypi with python and pygame

Smart Virtual Thermostat Plugin for domoticz is provided by Logread. Many thanks to him!

SVT Domoticz repository : https://github.com/999LV/SmartVirtualThermostat.git

Screenshot_20181229_155406
Screenshot_20181229_155153

Screenshot_20181229_155611

Screenshot_20181229_155515

 

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}
)