Python client for Comwatt
Project description
Commwatt Gen4 Python client
This module allow you to retrieve data from your Comwatt PowerGen4 box. It connects to the Commwatt website using Selenium webdriver and firefox and reads teh data.
Installation
Prerequisites:
- Install Firefox
- Download geckodriver form https://github.com/mozilla/geckodriver/releases
Install using pip:
$ python -m pip install comwatt
Usage
import comwatt
c = comwatt.PowerGEN4(<username>, <password>)
s = c.get_devices("sun")
print(s[0].value_instant)
Available device types are:
- injection
- withdrawal
- sun
- hotwatertank
- plug
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
comwatt-0.10.0.tar.gz
(4.1 kB
view hashes)