States API cache

This commit is contained in:
Devmel Apps
2023-10-02 11:49:59 +02:00
parent 4f765b6109
commit 827a1fcdb8
4 changed files with 66 additions and 29 deletions
+5
View File
@@ -0,0 +1,5 @@
#!/usr/bin/with-contenv bashio
payload=`echo $2 | base64 -d`
echo -en $payload | curl -s --data-binary @- -X POST -H "Authorization: Bearer ${SUPERVISOR_TOKEN}" -H "Content-Type: application/json" http://supervisor/core/api/states/$1