Get information from GCE Eco-Devices.
Project description
pyecodevices - Python GCE Eco-Devices
Get information from GCE Eco-Devices
Parameters
host
: ip or hostnameport
: (default: 80)username
: if authentication enabledpassword
: if authentication enabledtimeout
: (default: 3)
Methods
ping
: return true if the Eco-Devices answerglobal_get
: return json from the APIget
: return value of key parameter in:current_t1
,current_t2
,daily_c1
,daily_c2
,total_c1
,total_c2
Example
from pyecodevices import EcoDevices
ecodevices = EcoDevices('192.168.1.239','80',"username","password")
print (ecodevices.ping())
print (ecodevices.global_get())
print (ecodevices.get("current_t1"))
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
pyecodevices-1.0.0.tar.gz
(2.2 kB
view hashes)
Built Distribution
Close
Hashes for pyecodevices-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 189d190f75c1f76d7a36c5d5427499464d3234cd08fe1ff1a8fd569d357a98bd |
|
MD5 | 82c1aedeba3570e2aeb3b2726c31f66f |
|
BLAKE2b-256 | 78a5b3c0c5534656b389fa907ff660d0a203bbfeb8760ac4ee0ca49185ff7ebb |