Publish Muninn startup respect to Odin

This commit is contained in:
Meta Vens 2026-06-23 22:45:39 +01:00
commit fcbed2aeab
5 changed files with 281 additions and 4 deletions

View file

@ -18,6 +18,7 @@ param(
[string] $IdunnRudpHealth = "10.77.0.2:17870",
[string] $IdunnDaemon = "muninn",
[string] $IdunnHealthContract = "muninn.cultnet-rudp-remote-telemetry-health",
[string] $OdinCultMeshRudp = "10.77.0.2:17871",
[string] $CaptureCommandRudpBind = "0.0.0.0:17883",
[string] $CaptureCommandRudpTarget = "127.0.0.1:17883",
[string] $ObsCatalogRudpTarget = "10.77.0.2:17874",
@ -373,6 +374,9 @@ $serveArguments = @(
"--port", $Port.ToString(),
"--media-transport", $MediaTransport
)
if (-not [string]::IsNullOrWhiteSpace($OdinCultMeshRudp)) {
$serveArguments += @("--odin-cultmesh-rudp", $OdinCultMeshRudp)
}
foreach ($videoSource in $VideoSources) {
$serveArguments += @("--video-source", $videoSource)
}

View file

@ -10,7 +10,8 @@ param(
[int] $IntervalSeconds = 15,
[string] $IdunnRudpHealth = "10.77.0.2:17870",
[string] $IdunnDaemon = "nightwing-muninn",
[string] $IdunnHealthContract = "muninn.cultnet-rudp-remote-telemetry-and-move-hid"
[string] $IdunnHealthContract = "muninn.cultnet-rudp-remote-telemetry-and-move-hid",
[string] $OdinCultMeshRudp = "10.77.0.2:17871"
)
$ErrorActionPreference = "Stop"
@ -84,6 +85,10 @@ if ($moveStateSpecs.Count -gt 0) {
$moveRuntimeSetLines += "set -- ""`$@"" --move-evidence-stream $(Quote-ShSingle $MoveEvidenceStream)"
}
$moveRuntimeSetBlock = ($moveRuntimeSetLines -join "`n")
$odinCultMeshRudpSetBlock = ""
if (-not [string]::IsNullOrWhiteSpace($OdinCultMeshRudp)) {
$odinCultMeshRudpSetBlock = "set -- ""`$@"" --odin-cultmesh-rudp $(Quote-ShSingle $OdinCultMeshRudp)"
}
$remoteScript = @"
set -eu
@ -109,6 +114,7 @@ set -- "`$@" \
--idunn-rudp-health '$IdunnRudpHealth' \
--idunn-daemon '$IdunnDaemon' \
--idunn-health-contract '$IdunnHealthContract'
$odinCultMeshRudpSetBlock
nohup '$MuninnExe' "`$@" \
> '$LogRoot/muninn-serve.out.log' \
2> '$LogRoot/muninn-serve.err.log' \

View file

@ -8,7 +8,8 @@ param(
[switch] $EnableUsbMoveState,
[string] $IdunnRudpHealth = "127.0.0.1:17870",
[string] $IdunnDaemon = "starfire-muninn",
[string] $IdunnHealthContract = "muninn.cultnet-rudp-local-telemetry-and-quest-access"
[string] $IdunnHealthContract = "muninn.cultnet-rudp-local-telemetry-and-quest-access",
[string] $OdinCultMeshRudp = "127.0.0.1:17871"
)
$ErrorActionPreference = "Stop"
@ -49,6 +50,9 @@ $arguments = @(
"--idunn-daemon", $IdunnDaemon,
"--idunn-health-contract", $IdunnHealthContract
)
if (-not [string]::IsNullOrWhiteSpace($OdinCultMeshRudp)) {
$arguments += @("--odin-cultmesh-rudp", $OdinCultMeshRudp)
}
if (-not [string]::IsNullOrWhiteSpace($MoveBluetoothHost)) {
$arguments += @("--move-host", $MoveBluetoothHost)
}