updates from korner #7

Merged
axdzitte merged 2 commits from axdzitte/cammiechat:master into master 2024-10-10 13:11:41 +02:00
Showing only changes of commit c17fa92ec1 - Show all commits

8
cammiewatcher.py Normal file
View file

@ -0,0 +1,8 @@
import requests
import time
while True:
data = requests.get("https://kelder.zeus.ugent.be/camera/api/info").json()
cammie_watchers = data['connections']['/']
r = requests.put('http://10.0.0.10/api/mailbox.json', json={'message':str(cammie_watchers), 'topic': 'cammie'})
time.sleep(1)