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 details)
Built Distribution
File details
Details for the file pyecodevices-1.1.0.tar.gz
.
File metadata
- Download URL: pyecodevices-1.1.0.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80f5afeb5d82ee85aace10181c91beb939006ffdc4b23d731d6a6ee7f5baca87 |
|
MD5 | e9110356f26cb15184c983840369671c |
|
BLAKE2b-256 | 3b47d0cdc1e0771e50cc260654e5be954491ae47ffcfdaf43230472320672d33 |
Provenance
File details
Details for the file pyecodevices-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: pyecodevices-1.1.0-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 897dda89337f89bb1f29be3a7d01ac88e13b19fb3c0bbf5d260d8a5c6e3d8fda |
|
MD5 | fb9fcd2d0cbcfd5a51bdc93f631e0b9a |
|
BLAKE2b-256 | f37eaa2fb9aca9bc39f34bf8e25b016e9b9cdda25ce0241c975a1ebd28bb202e |