minor changes and fixes, adjusted frontend

This commit is contained in:
katsu 2025-06-26 14:14:19 +02:00
parent d00651a66c
commit acc38950e7
11 changed files with 99 additions and 121 deletions

View file

@ -5,7 +5,7 @@ import asyncio
import toml
import aiohttp
lucke_bearer_token = ""
lucke_bearer_token = "" #TODO only set types
room = ""
url = ""
roomId = 0
@ -30,14 +30,14 @@ async def task_luckeCommand(controlClient):
msgTopicArr = mesg.topic.value.split('/')
sceneNum = mesg.payload.decode()
print("Received: " + str(msgTopicArr) + " payload: [" + sceneNum + "]")
print('sending request to endpoint..')
#print('sending request to endpoint..')
await sendSceneRequest(controlClient, sceneNum)
await asyncio.sleep(0.01)
async def main():
global room, lucke_bearer_token, url, roomId
conf = toml.load('./malinaConfig.toml')
room = conf.get("global")['room']
room = conf.get("global")['room'] #TODO use brackets everywhere (also other files)
url = conf.get("lucke")['url']
roomId = conf.get("lucke")['roomId']
lucke_bearer_token = conf.get("lucke")['bearer_token']