deleted: .idea/workspace.xml
modified: repository.yaml modified: src.dev/CHANGELOG.md new file: src.dev/README.md new file: src.dev/icon.png new file: src.dev/logo.png new file: src.dev/rund.sh
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
# EnergaMeter (dev)
|
||||
## v0.1.3 [2023-10-31]
|
||||
- Dodano obsługę liczników wytwórcy (Uwaga: zmiana struktury JSON)
|
||||
## v0.1.2 [2023-10-23]
|
||||
|
||||
35
src.dev/README.md
Normal file
35
src.dev/README.md
Normal file
@@ -0,0 +1,35 @@
|
||||
[](https://www.home-assistant.io/)
|
||||
# [Energa meter](https://github.com/tcich/ha-addon-energa-meter) Home Assistant add-on
|
||||
|
||||
[aarch64-shield]: https://img.shields.io/badge/aarch64-yes-green.svg
|
||||
[amd64-shield]: https://img.shields.io/badge/amd64-yes-green.svg
|
||||
[armv6-shield]: https://img.shields.io/badge/armv6-yes-green.svg
|
||||
[armv7-shield]: https://img.shields.io/badge/armv7-yes-green.svg
|
||||
[i386-shield]: https://img.shields.io/badge/i386-yes-green.svg
|
||||
![aarch64-shield]
|
||||
![amd64-shield]
|
||||
![armv6-shield]
|
||||
![armv7-shield]
|
||||
![i386-shield]
|
||||
|
||||
**Podoba Ci się?** [Postaw kawę.](https://buycoffee.to/tcich)
|
||||
|
||||
|
||||
|
||||
## O dodatku
|
||||
|
||||
To jest dodatek dla [Home Assistant](https://www.home-assistant.io/). Instalacja dodatku [Energa meter](https://github.com/tcich/ha-addon-energa-meter) umożliwia cykliczne pobieranie danych z aplikacji [Mój Licznik - Energa](https://mojlicznik.energa-operator.pl) udostępnianej klientom Operatora energetycznego Energa, pobierane są zarówno aktualne stany liczników jak i dane historyczne. Dzieki temu możliwe jest generowanie wykresów oraz analiza danych z użyciem zaawansowanych narzędzi, np. Grafana
|
||||
|
||||
## Możliwości:
|
||||
* Obsługa liczników jako sensory
|
||||
* Wykresy w Grafana
|
||||
|
||||
## Instalacja
|
||||
|
||||
Instrukcja instalacji jest dostępna pod adresem: [Instrukcja konfiguracji](https://github.com/tcich/ha-addon-energa-meter/blob/main/README.md)
|
||||
|
||||
## Motywacja
|
||||
|
||||
**Podoba Ci się?** [Postaw kawę.](https://buycoffee.to/tcich)
|
||||
|
||||
|
||||
BIN
src.dev/icon.png
Normal file
BIN
src.dev/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 17 KiB |
BIN
src.dev/logo.png
Normal file
BIN
src.dev/logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 17 KiB |
26
src.dev/rund.sh
Normal file
26
src.dev/rund.sh
Normal file
@@ -0,0 +1,26 @@
|
||||
#!/bin/bash
|
||||
|
||||
USERNAME="$ENERGA_USERNAME"
|
||||
PASSWORD="$ENERGA_PASSWORD"
|
||||
|
||||
if [ -z "$USERNAME" ]; then
|
||||
echo "Błąd: Zmienna ENERGA_USERNAME jest pusta. Proszę podać wartość."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -z "$PASSWORD" ]; then
|
||||
echo "Błąd: Zmienna ENERGA_PASSWORD jest pusta. Proszę podać wartość."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Uruchamiam API"
|
||||
python api.py &
|
||||
echo "Uruchamiam MAIN"
|
||||
python main.py
|
||||
echo "Uruchamiam CRON"
|
||||
|
||||
while true; do
|
||||
python cron.py
|
||||
echo "Czekam..."
|
||||
sleep 1800
|
||||
done
|
||||
Reference in New Issue
Block a user