diff --git a/barco_telnet/barco_telnet_control.py b/barco_telnet/barco_telnet_control.py
index 3e4dd67..b6e196f 100644
--- a/barco_telnet/barco_telnet_control.py
+++ b/barco_telnet/barco_telnet_control.py
@@ -70,9 +70,9 @@ async def barco_telnet_query_status(writer, select: str):
for val in cmdMap.values():
print(f"Querying Barco {select} with: [{val}?]")
writer.write(f"[{val}?]" + '\r\n') # TODO test if funny CRLF necessary (it probably gets ignored)
- await asyncio.sleep(1) # sleep between writes necessary, otherwise it gets confused.
+ await asyncio.sleep(0.2) # sleep between writes necessary, otherwise it gets confused.
# simultaneous commands from control could break this? TODO fix later
- await asyncio.sleep(10) # TODO find appropriate period
+ await asyncio.sleep(30) # TODO find appropriate period
# async def shell(reader, writer):
@@ -85,10 +85,10 @@ async def barco_telnet_query_status(writer, select: str):
async def main():
#conf = toml.load('config.toml')
- mainBarcoIP = conf[gethostname()]['projektor_glavni']
- sideBarcoIP = conf[gethostname()]['projektor_stranski']
- mainReader, mainWriter = await telnetlib3.open_connection(mainBarcoIP, 3023)
- sideReader, sideWriter = await telnetlib3.open_connection(sideBarcoIP, 3023)
+ # mainBarcoIP = conf[gethostname()]['projektor_glavni']
+ # sideBarcoIP = conf[gethostname()]['projektor_stranski']
+ mainReader, mainWriter = await telnetlib3.open_connection('localhost', 3023)
+ sideReader, sideWriter = await telnetlib3.open_connection('localhost', 3024)
async with aiomqtt.Client('localhost', 1883) as client:
task_status_query_main = asyncio.create_task(barco_telnet_query_status(mainWriter, 'glavni'))
task_status_reader_main = asyncio.create_task(barco_telnet_read_status(client, mainReader, 'glavni'))
@@ -103,13 +103,13 @@ async def main():
### fuj to, ne tk delat
-if __name__ == '__main__':
+# if __name__ == '__main__':
- loop = asyncio.get_event_loop()
- coro = telnetlib3.open_connection(mainBarcoIP, 3023, shell=shell)
- coro = telnetlib3.open_connection(mainBarcoIP, 3023, shell=shell)
- # coro = telnetlib3.open_connection('localhost', 1234, shell=shell)
- reader, writer = loop.run_until_complete(coro)
- loop.run_until_complete(writer.protocol.waiter_closed)
+# loop = asyncio.get_event_loop()
+# coro = telnetlib3.open_connection(mainBarcoIP, 3023, shell=shell)
+# coro = telnetlib3.open_connection(mainBarcoIP, 3023, shell=shell)
+# # coro = telnetlib3.open_connection('localhost', 1234, shell=shell)
+# reader, writer = loop.run_until_complete(coro)
+# loop.run_until_complete(writer.protocol.waiter_closed)
asyncio.run(main())
\ No newline at end of file
diff --git a/frontend/vju_display/.env.development b/frontend/vju_display/.env.development
index 5f41f48..ae7ec29 100644
--- a/frontend/vju_display/.env.development
+++ b/frontend/vju_display/.env.development
@@ -1,3 +1,3 @@
-VITE_MQTT_HOST=p01malina.local
+VITE_MQTT_HOST=localhost #p01malina.local
VITE_MQTT_PORT=8080
VITE_MQTT_SSL=false
\ No newline at end of file
diff --git a/frontend/vju_display/src/App.vue b/frontend/vju_display/src/App.vue
index fd2c0bf..d5fb340 100644
--- a/frontend/vju_display/src/App.vue
+++ b/frontend/vju_display/src/App.vue
@@ -1,7 +1,7 @@
-
+
+
Incorrect or missing room parameter!
+
+
{{ currentRoom.toUpperCase() }}
- Priprava
- Video
- Zvok
- Lučke
- Servis
+ Priprava
+ Video
+ Audio
+ Lučke
+ Servis
- turbo odličen super mega kontrol panel
+ turbo odličen super mega kontrol panel
-
-
+
+
-
+