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:
TC
2023-11-01 15:13:38 +01:00
parent 1c76b80248
commit 5a1ce80331
7 changed files with 65 additions and 91 deletions

26
src.dev/rund.sh Normal file
View 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