Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rubiojr/go-edistribucion
e-distribucion (Endesa) API para la lectura remota de contadores inteligentes
https://github.com/rubiojr/go-edistribucion
endesa smart-meters spain
Last synced: 25 days ago
JSON representation
e-distribucion (Endesa) API para la lectura remota de contadores inteligentes
- Host: GitHub
- URL: https://github.com/rubiojr/go-edistribucion
- Owner: rubiojr
- Created: 2021-12-02T19:02:49.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-12-04T10:55:13.000Z (about 3 years ago)
- Last Synced: 2024-06-20T17:42:10.527Z (6 months ago)
- Topics: endesa, smart-meters, spain
- Language: Go
- Homepage:
- Size: 17.6 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# e-Distribucion API
Go API to read Endesa energy meters info.
Ported from Python to Go using https://github.com/trocotronic/edistribucion.
You'll need an account in https://www.edistribucion.com to use this module.
## Building the command line client
```
make
```## Using the client
Export the edistribicion.com username and password as environment variables:
```
export EDISTRIBUCION_USERNAME="username here"
export EDISTRIBUCION_PASSWORD="password here"
```Run the client without arguments:
```
./bin/contadoresPotencia actual: 0.2
Potencia contratada: 5.75
Porcentage: 3,48%
Estado ICP: Abierto
Totalizador: 14.811
```## Database store
There's a sample client that stores received metrics in a sqlite database.
```
export EDISTRIBUCION_USERNAME="username here"
export EDISTRIBUCION_PASSWORD="password here"
``````
make
./bin/edistribucion-store -db edistribucion.sqlite
```## Related
* https://github.com/azogue/aiopvpc
* https://github.com/trocotronic/edistribucion
* https://github.com/uvejota/edistribucion
* https://github.com/uvejota/homeassistant-edata