Add Xiaomi Mi Cloud integration
Port internal/xiaomi from go2rtc with stateless adaptation: - Token passed via URL query (?token=) instead of persistent config - tester.RegisterSource replaces streams.HandleFunc - Stream handler extracts token from URL and populates in-memory cloud cache - Device list endpoint embeds url-encoded token into each camera URL - Auth flow (login/captcha/verify) unchanged from upstream
This commit is contained in:
@@ -10,6 +10,7 @@ import (
|
||||
"github.com/eduard256/strix/internal/probe"
|
||||
"github.com/eduard256/strix/internal/search"
|
||||
"github.com/eduard256/strix/internal/test"
|
||||
"github.com/eduard256/strix/internal/xiaomi"
|
||||
)
|
||||
|
||||
// version is set at build time via ldflags:
|
||||
@@ -35,6 +36,7 @@ func main() {
|
||||
{"frigate", frigate.Init},
|
||||
{"go2rtc", go2rtc.Init},
|
||||
{"homekit", homekit.Init},
|
||||
{"xiaomi", xiaomi.Init},
|
||||
}
|
||||
|
||||
for _, m := range modules {
|
||||
|
||||
Reference in New Issue
Block a user