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

Uploaded Source

Built Distribution

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

Uploaded Python 3

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