commit 23/10/2025

This commit is contained in:
2025-10-23 16:50:02 +07:00
parent c6aa70773f
commit fe4e73ff98
9 changed files with 312 additions and 18 deletions

View File

@@ -97,7 +97,7 @@ fun files_preparation(){
}
lateinit var config : configFile;
lateinit var config : configFile
// Application start here
fun main() {
@@ -135,6 +135,7 @@ fun main() {
subcode01.Read_Queue_Soundbank()
}
}
// Coroutine untuk cek Schedulebank tiap menit saat detik 00
CoroutineScope(Dispatchers.Default).launch {
while (isActive) {
@@ -144,11 +145,11 @@ fun main() {
}
val web = WebApp(
3030,
config.Get(configKeys.WEBAPP_PORT.key).toInt(),
listOf(
Pair("admin", "password"),
Pair("user", "password")
))
Pair(config.Get(configKeys.WEBAPP_ADMIN_USERNAME.key), config.Get(configKeys.WEBAPP_ADMIN_PASSWORD.key)),
Pair(config.Get(configKeys.WEBAPP_VIEWER_USERNAME.key), config.Get(configKeys.WEBAPP_VIEWER_PASSWORD.key))
), config)
web.Start()
udpreceiver = UDPReceiver()