Update 2024-02-14 07:51 OpenBSD/amd64-x13

This commit is contained in:
c0dev0id
2024-02-14 07:54:31 +01:00
parent b55e6a3616
commit 9624895938
373 changed files with 19074 additions and 3045 deletions

22
.bin/OLD/stromgedacht.sh Executable file
View File

@@ -0,0 +1,22 @@
#!/bin/sh
PLZ=$1
PLZ=${PLZ:=68766}
STATE=$(curl -s -X GET -H "accept":"application/json" \
https://api.stromgedacht.de/v1/now?zip=$PLZ | jq -rc .state)
case $STATE in
-1) echo "superGreen"
;;
1) echo "Green"
;;
3) echo "Green"
;;
4) echo "Green"
;;
*) echo "Unkown state code: $STATE"
;;
esac