commit 23/10/2025
This commit is contained in:
11
src/Main.kt
11
src/Main.kt
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user