Skip to main content

Get information from GCE Eco-Devices.

Project description

pyecodevices - Python GCE Eco-Devices

Get information from GCE Eco-Devices

Parameters

  • host: ip or hostname
  • port: (default: 80)
  • username: if authentication enabled on Eco-Devices
  • password: if authentication enabled on Eco-Devices
  • timeout: (default: 3)

Properties

  • host: return the host
  • firmware: return the firmware version
  • mac_address: return the mac address

Methods

  • ping: return true if the Eco-Devices answer
  • global_get: return json from the API
  • get_t1: return values of input T1
  • get_t2: return values of input T2
  • get_c1: return values of input C1
  • get_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


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)

Uploaded Source

Built Distribution

pyecodevices-1.1.0-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

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

Hashes for pyecodevices-1.1.0.tar.gz
Algorithm Hash digest
SHA256 80f5afeb5d82ee85aace10181c91beb939006ffdc4b23d731d6a6ee7f5baca87
MD5 e9110356f26cb15184c983840369671c
BLAKE2b-256 3b47d0cdc1e0771e50cc260654e5be954491ae47ffcfdaf43230472320672d33

See more details on using hashes here.

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

Hashes for pyecodevices-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 897dda89337f89bb1f29be3a7d01ac88e13b19fb3c0bbf5d260d8a5c6e3d8fda
MD5 fb9fcd2d0cbcfd5a51bdc93f631e0b9a
BLAKE2b-256 f37eaa2fb9aca9bc39f34bf8e25b016e9b9cdda25ce0241c975a1ebd28bb202e

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page