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
  • password: if authentication enabled
  • timeout: (default: 3)

Methods

  • ping: return true if the Eco-Devices answer
  • global_get: return json from the API
  • get: 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


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 details)

Uploaded Source

Built Distribution

pyecodevices-1.0.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file pyecodevices-1.0.0.tar.gz.

File metadata

  • Download URL: pyecodevices-1.0.0.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.1

File hashes

Hashes for pyecodevices-1.0.0.tar.gz
Algorithm Hash digest
SHA256 0eb91e020b9b96459780d529fa00611cb914da8b6ebceaea2d211776193aa6ab
MD5 d2c2d1b7262e5704e630316149daf3d4
BLAKE2b-256 de0bc28dbe283826cf7fa7a2a34f1458b1919f30c19de2232835e1e48620f745

See more details on using hashes here.

Provenance

File details

Details for the file pyecodevices-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: pyecodevices-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.1

File hashes

Hashes for pyecodevices-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 189d190f75c1f76d7a36c5d5427499464d3234cd08fe1ff1a8fd569d357a98bd
MD5 82c1aedeba3570e2aeb3b2726c31f66f
BLAKE2b-256 78a5b3c0c5534656b389fa907ff660d0a203bbfeb8760ac4ee0ca49185ff7ebb

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