Access your zibase thermostat from your linux desktop or raspberrypi
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Images
VClouds Weather Icons
fonts
icons
snipshelpers
.gitignore
LICENSE
README.md
config.ini.default
icon.py
requirements.txt
setup.sh
thermostat.py
weather.py
z.py

README.md

zibase-thermostat with Python and pygame

 Zibase Thermostat

 Zibase Thermostat Action screen

 Zibase Thermostat Forcast screen

 Zibase Thermostat Probe screen

Installation libraries:

git clone https://github.com/onlinux/zibase-thermostat.git cd zibase-thermostat

Install python-pip if not installed yet: sudo apt-get install python-pip

Install pywapi from source Download the latest pywapi library from: https://launchpad.net/python-weather-api/trunk/0.3.8/+download/pywapi-0.3.8.tar.gz

Untar the source distribution and run:

$ tar xvfz pywapi-0.3.8.tar.gz

$ cd pywapi-0.3.8

$ python setup.py build

$ sudo python setup.py install

$ cd ../zibase-thermostat/

Install pygame

$ sudo apt-get install python-pygame

Configuration

 Zibase Thermostat variables

Set [global] thermostat variables as specified within zibase interface

Modify config.ini

Referring to the screenshot, config.ini should look like this

 [secret]
 zibaseid = ZiBASE00xxxx
 tokenid  = 00xxxxxx
 [global]
 tempvariable= 28
 setpointdayvariable= 29
 setpointnightvariable= 30
 modevariable= 31
 statevariable= 13
 thermostatscenario= 32


# Start Thermostat Zibase

`python z.py`

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