fix(lampion): update

This commit is contained in:
hackens-bot 2024-12-29 13:58:29 +01:00
parent 9f06b15675
commit fee4cfd7d1

View file

@ -4,6 +4,7 @@ import os
import asyncio
import websockets
import json
from multiprocessing import Process, Value
import requests
status = Value('i', 2)
@ -13,7 +14,7 @@ status = Value('i', 2)
# L'interface est ACTIVE LOW
def changecolor(color):
if color=="ROSE":
requests.post("http://192.168.51.249/0", data=b'1')
requests.post("http://192.168.51.249/0", data=b'0')
requests.post("http://192.168.51.249/1", data=b'0')
elif color=="BLANC":
requests.post("http://192.168.51.249/0", data=b'0')