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
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.9.0.tar.gz
(4.1 kB
view details)
Built Distribution
File details
Details for the file comwatt-0.9.0.tar.gz
.
File metadata
- Download URL: comwatt-0.9.0.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 668fd8cb1e6bbafa756da8cfbc590a440b5c1f96c4fce2b83d6bc1c64f5d96e0 |
|
MD5 | 85d3343346dd5a333ed53e250fabc8c4 |
|
BLAKE2b-256 | 929ff29bde36484b1744803a4a6aee413c3d397955820af3d3cb709ccf70740b |
File details
Details for the file comwatt-0.9.0-py3-none-any.whl
.
File metadata
- Download URL: comwatt-0.9.0-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ce5587d4fc2613e7c18bd916c5b9e05a96b8b6debce01024e1cd3d1b801e301 |
|
MD5 | f056c7c1a025959bb73ce61d4f135039 |
|
BLAKE2b-256 | 719d88d5c7bd5a5232a84d773cb8ae02aa75a8ad07d5feb59a0a6fa85ae6a001 |