Python client library for Stromnetz Graz API
Project description
Python client library for Stromnetz Graz API
This is a simple client library for the (unofficial) Stromnetz Graz Smart Meter Web API.
Please note that you must be able to login and view data on the portal before this library will work. Please refer to Stromnetz Graz how to set up access to the smart meter statistics. Best results are achieved in the IME
mode (15 minute reading intervals), however the library can also fall back to IMS
(daily reading interval). The most recent data available will be the one for the previous day (see also their FAQ).
Example usage:
from sngraz import StromNetzGraz
sn = StromNetzGraz(mail, password)
await sn.authenticate()
await sn.update_info()
for installation in conn.get_installations():
print("Installation ID", installation.id)
print("Installation is installed at", installation._address)
for meter in installation.get_meters():
print("Meter ID", meter.id)
print("Meter Name", meter._short_name)
await meter.fetch_consumption_data()
# meter._data now contains the meter readings of the last 30 days
print(meter._data)
await sn.close_connection()
An installation
is usually an house or apartment with an individual address and may contain multiple meters (for example a second meter for a hot water boiler). A meter
is the actual single meter.
Stromnetz Graz assigns individual numerical IDs to both installation
s and meter
s. The usually used meter number (33 characters usually starting with AT00
) is available as attributes (meter._name
& meter._short_name
).
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
Built Distribution
File details
Details for the file stromnetzgraz-0.1.2.tar.gz
.
File metadata
- Download URL: stromnetzgraz-0.1.2.tar.gz
- Upload date:
- Size: 8.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4a1531b20f30abd9daffed8e30ec9ee58d270df08780ece3a72a1a92082dc77 |
|
MD5 | bca912ebaae60faadf892a986cc86b50 |
|
BLAKE2b-256 | d2ce12310af8425cceeef996673bbf0ff93c1b09375d84d999019b3a44934438 |
File details
Details for the file stromnetzgraz-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: stromnetzgraz-0.1.2-py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 859e555bf4408e1a9ed7abfe1418f1c206261e4a44cdc4da16b97c4c496e5856 |
|
MD5 | 8fcff959e57b1757ba87d130a19e33a3 |
|
BLAKE2b-256 | 4c89b02dc08c5adde3402f4e4da33a291e89bbf07595f02342e4a3c5ac9e76de |