Files
auracast-translator/tests/get_group_state.py
T

9 lines
236 B
Python

import requests
import time
if __name__ == '__main__':
# get the group state every 0.5s
while True:
response = requests.get('http://localhost:7999/groups/0/state')
print(response.json())
time.sleep(0.5)