Add Frigate config merging and camera database updates

- Refactor Frigate generator to support adding cameras to existing configs
- Add text-based YAML parsing to preserve formatting and comments
- Implement duplicate camera/stream name detection and auto-numbering
- Add support for inserting cameras into existing go2rtc and cameras sections
- Update UI: add textarea for existing config input and generate button
- Preserve user's existing configuration when adding new cameras
- Add example config template for new users
- Update ConfigPanel to initialize Frigate tab instead of auto-generating
- Add FrigateGenerator import to main.js
- Add custom styles for Frigate config input and output sections
- Support both empty config (create from scratch) and existing config (merge) modes

Camera database updates:
- Add OpenIPC firmware camera support (257 models)
- Add Yi-Hack firmware variants (v4, v5, Allwinner, MStar)
- Add Fang-Hacks firmware support
- Add OpenMiko firmware support
- Update Sonoff camera models
- Update Thingino firmware camera models
This commit is contained in:
eduard256
2025-11-11 22:32:59 +03:00
parent 5d0b3e6527
commit 627409cf56
14 changed files with 1660 additions and 132 deletions
+81
View File
@@ -0,0 +1,81 @@
{
"brand": "yi-hack-v5",
"brand_id": "yi-hack-v5",
"last_updated": "2025-11-11",
"source": "github.com/alienatedsec/yi-hack-v5",
"website": "https://github.com/alienatedsec/yi-hack-v5",
"entries": [
{
"models": [
"HI3518EV200 CHIPSET",
"Yi Home",
"Yi Dome",
"Generic Hi3518ev200"
],
"type": "FFMPEG",
"protocol": "rtsp",
"port": 554,
"url": "/ch0_0.h264",
"notes": "Hi3518ev200 chipset - HD video stream"
},
{
"models": [
"HI3518EV200 CHIPSET",
"Yi Home",
"Yi Dome",
"Generic Hi3518ev200"
],
"type": "FFMPEG",
"protocol": "rtsp",
"port": 554,
"url": "/ch0_1.h264",
"notes": "Hi3518ev200 chipset - SD video stream"
},
{
"models": [
"HI3518EV200 CHIPSET",
"Yi Home",
"Yi Dome",
"Generic Hi3518ev200"
],
"type": "FFMPEG",
"protocol": "rtsp",
"port": 554,
"url": "/ch0_2.h264",
"notes": "Hi3518ev200 chipset - Audio only stream"
},
{
"models": [
"HI3518EV200 CHIPSET",
"Yi Home",
"Yi Dome",
"Generic Hi3518ev200"
],
"type": "FFMPEG",
"protocol": "rtsp",
"port": 554,
"url": "/ch0_3.h264",
"notes": "Hi3518ev200 chipset - Audio only stream (alternative)"
},
{
"models": [
"Other"
],
"type": "FFMPEG",
"protocol": "rtsp",
"port": 554,
"url": "/ch0_0.h264",
"notes": "Generic - HD video stream"
},
{
"models": [
"Other"
],
"type": "FFMPEG",
"protocol": "rtsp",
"port": 554,
"url": "/ch0_1.h264",
"notes": "Generic - SD video stream"
}
]
}