Async client for eGauge energy monitor (https://www.egauge.net)
Project description
Egauge-Async
asyncio
APIs for communicating with eGauge meters.
Examples
Get current rates
import asyncio
from egauge_async import EgaugeClient
async def get_current_rates():
egauge = EgaugeClient("http://egaugehq.d.egauge.net")
current_readings = egauge.get_current_rates()
print(current_readings)
asyncio.run(get_current_rates())
Get weekly changes over the last 4 weeks
import asyncio
from egauge_async import EgaugeClient
async def get_weekly_changes():
egauge = EgaugeClient("http://egaugehq.d.egauge.net")
weekly_changes = egauge.get_weekly_changes(num_weeks=4)
print(weekly_changes)
asyncio.run(get_weekly_changes())
Get available registers
import asyncio
from egauge_async import EgaugeClient
async def get_registers():
egauge = EgaugeClient("http://egaugehq.d.egauge.net")
instantaneous_registers = egauge.get_instantaneous_registers()j
print(instantaneous_registers)
historical_registers = egauge.get_historical_registers()
print(historical_registers)
asyncio.run(get_historical_registers())
Implementation Details
This package uses the publically-documented XML API provided by eGauge Systems.
Disclaimer
This project is not affiliated with, endorsed by, or sponsored by eGauge Systems LLC. Any product names, logos, brands, or other trademarks are the property of their respective trademark holders.
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
egauge-async-0.1.2.tar.gz
(19.1 kB
view details)
Built Distribution
File details
Details for the file egauge-async-0.1.2.tar.gz
.
File metadata
- Download URL: egauge-async-0.1.2.tar.gz
- Upload date:
- Size: 19.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.9.10 Linux/5.11.0-1028-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e71d2e91eed3202c18c9899dfb79fd404ea035f845d5d93ce5698b07b95a6400 |
|
MD5 | 9600b386bf3d53353feab7af680d49b2 |
|
BLAKE2b-256 | 460245bc08f3e61d077ee5fcd445dd0551939cd077555c7f5717651f0296e171 |
File details
Details for the file egauge_async-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: egauge_async-0.1.2-py3-none-any.whl
- Upload date:
- Size: 19.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.9.10 Linux/5.11.0-1028-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c122547b06d99f4253237ea977db32bb8e4c97e24ca00a4dd6e6bb1d97229e2c |
|
MD5 | 8f1b99e470f6f27e7f2acd0ae777f181 |
|
BLAKE2b-256 | 1dfed100479ac8cf15da806d564957cac0dcbabacb3a7865a0e6533ff53328d1 |