https://github.com/hoegaarden/smartmeter-wiener-netze
A golang client to pull data from the Wiener Netze Smartmeter Portal
https://github.com/hoegaarden/smartmeter-wiener-netze
golang smartmeter wien wiener-netze wiener-stadtwerke
Last synced: 2 months ago
JSON representation
A golang client to pull data from the Wiener Netze Smartmeter Portal
- Host: GitHub
- URL: https://github.com/hoegaarden/smartmeter-wiener-netze
- Owner: hoegaarden
- Created: 2024-06-23T11:30:29.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-12-09T19:25:33.000Z (6 months ago)
- Last Synced: 2025-02-05T01:26:18.757Z (4 months ago)
- Topics: golang, smartmeter, wien, wiener-netze, wiener-stadtwerke
- Language: Go
- Homepage:
- Size: 13.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Wiener Netze Smart Meter Client
This is a module and executable to pull smartmeter data from the [Smart Meter Portal of Wiener Netze][portal].
[portal]: https://smartmeter-web.wienernetze.at/
It draws quite some inspiration from
https://github.com/platysma/vienna-smartmeter and
https://github.com/fleinze/vienna-smartmeter/ with the following differences:
- implemented in go, obviously
- ships with a example binary, to show how it can be used to collect data and stream them out as metrics in the influx line protocol
- only implements a subset of the APIs availableOther things to know:
- To my knowledge the APIs are completely undocumented. I checked, what the
above mentioned projects did, and used my browser's developer tools to figure
out what the client needs to send and receives.
Therefore, this thing might break at any point in time.
- Every request this client makes, leaves a little message for the owners of
the various APIs, asking them to please document their stuff; via the
user-agent header in the request. Will this help and get the APIs publicly
documented? Probably not. Does it hurt? Don't think so.
- The responses from the different APIs are ..... interesting. The client
should hopefully abstract most of those away.
- In case the APIs change in any way, this client might break, or might return
wrong or incomplete data. You have been warned.
- Only things I need are implemented. If you want other stuff, pull other data
from the smart meter portal, feel free to open a issue or, better yet, a PR!Images:
The [example binary][bin] is published as a container image at
`ghcr.io/hoegaarden/smartmeter-wiener-netze/wn-smartmeter-influx:latest`, you
can see details about that [here][imageDetails].[bin]: cmd/wn-smartmeter-influx/
[imageDetails]: https://github.com/hoegaarden/smartmeter-wiener-netze/pkgs/container/smartmeter-wiener-netze%2Fwn-smartmeter-influx