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 enabled on Eco-Devicespassword
: if authentication enabled on Eco-Devicestimeout
: (default: 3)
Properties
host
: return the hostfirmware
: return the firmware versionmac_address
: return the mac address
Methods
ping
: return true if the Eco-Devices answerglobal_get
: return json from the APIget_t1
: return values of input T1get_t2
: return values of input T2get_c1
: return values of input C1get_c2
: return values of input C2
Example
from pyecodevices import EcoDevices
ecodevices = EcoDevices('192.168.1.239','80',"username","password")
print("# ping")
print(ecodevices.ping())
print("# firmware version")
print(ecodevices.firmware)
print("# all values")
print(ecodevices.global_get())
print("# inputs values")
print(ecodevices.get_t1())
print(ecodevices.get_t2())
print(ecodevices.get_c1())
print(ecodevices.get_c2())
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.1.0.tar.gz
(2.5 kB
view hashes)
Built Distribution
Close
Hashes for pyecodevices-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 897dda89337f89bb1f29be3a7d01ac88e13b19fb3c0bbf5d260d8a5c6e3d8fda |
|
MD5 | fb9fcd2d0cbcfd5a51bdc93f631e0b9a |
|
BLAKE2b-256 | f37eaa2fb9aca9bc39f34bf8e25b016e9b9cdda25ce0241c975a1ebd28bb202e |