Files
zoneminder/db/zm_update-1.39.15.sql
T
Isaac ConnorandClaude Opus 4.8 85abc4b9a6 feat: add HiSilicon Hi3510 CGI PTZ control module
Adds a control protocol module for cameras built on the HiSilicon
Hi3510 SoC which expose cgi-bin/hi3510/ptzctrl.cgi rather than the
older Foscam decoder_control.cgi interface. Contributed by Turgut
Kalfaoglu on the forums, tested on a Tenvis TH661.

Supports continuous pan/tilt with auto-stop, emulated diagonals,
presets 1-8, and horizontal/vertical patrol via presets 9/10.
Credential and host parsing uses the Control.pm guess_credentials
helper; the camera-tested wire format (usr/pwd query parameters)
is preserved.

Adds the Controls table row to zm_create.sql.in and an idempotent
zm_update-1.39.15.sql migration, and bumps version to 1.39.15.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-03 18:34:56 -04:00

14 lines
545 B
SQL

--
-- This updates a 1.39.14 database to 1.39.15
--
-- Add a control entry for the HiSilicon Hi3510 CGI PTZ protocol used by
-- many inexpensive IP cameras (e.g. Tenvis TH661).
--
INSERT INTO `Controls`
(`Name`, `Type`, `Protocol`, `CanReset`, `HasPresets`, `NumPresets`, `CanSetPresets`,
`CanMove`, `CanMoveDiag`, `CanMoveCon`, `CanPan`, `CanTilt`)
SELECT 'HiSilicon Hi3510 CGI', 'Ffmpeg', 'HiSilicon_Hi3510_CGI', 1, 1, 10, 1, 1, 1, 1, 1, 1
FROM DUAL
WHERE NOT EXISTS (SELECT 1 FROM `Controls` WHERE `Protocol` = 'HiSilicon_Hi3510_CGI');