print response

Signed-off-by: Ebbe Baß <ebbe.bass>
main
Ebbe Baß 2024-02-17 00:49:04 +01:00
parent cdb91565cb
commit b180d15b1b
1 changed files with 1 additions and 1 deletions

View File

@ -30,6 +30,7 @@ def register_tube():
# Register or reauthenticate the tube with the server
try:
response = requests.post(f'http://{SERVER_IP}:{SERVER_PORT}/register_tube', data={'mac_address': wlan_mac_address})
print(response)
data = response.json()
if data.get('success'):
print('Tube registered successfully.')
@ -53,7 +54,6 @@ def get_assigned_params():
def is_connected_to_wifi():
output = subprocess.check_output(['iwgetid']).decode()
print(output)
return output.split('"')[1]
# def update_led_strip(rgb_values, pixel, strip):