Files
zoneminder/db/zm_update-1.39.41.sql
T
Nic BoetandClaude Opus 5.5 bb7e18187c fix: add a Controls row for the Reolink_HTTP control module
ZoneMinder::Control::Reolink_HTTP has shipped without a Controls entry,
so it could not be picked for a monitor unless someone added one by
hand on the Control Capabilities page.

Add 'Reolink HTTP API' to db/controls.sql for new installs and to
zm_update-1.39.41.sql for existing ones (INSERT ... WHERE NOT EXISTS on
the protocol, so a hand-made row is kept and the file can be re-run).
The flags follow what the module implements: reboot, continuous
pan/tilt/diagonal moves, continuous zoom and focus, autofocus, presets
with home, speeds 1-64 as the Reolink API takes them.

fixes #5246

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 11:43:01 -05:00

15 lines
907 B
SQL

--
-- This updates a 1.39.40 database to 1.39.41
--
--
-- Add a Controls entry for ZoneMinder::Control::Reolink_HTTP.
--
-- The module has shipped without a Controls row, so it could not be chosen
-- for a monitor unless one was added by hand. Same flags as db/controls.sql.
-- Skipped when a row with this protocol already exists (one added by hand).
--
INSERT INTO `Controls` (`Name`,`Protocol`,`CanReboot`,`CanZoom`,`CanZoomCon`,`HasZoomSpeed`,`MinZoomSpeed`,`MaxZoomSpeed`,`CanFocus`,`CanAutoFocus`,`CanFocusCon`,`HasPresets`,`NumPresets`,`HasHomePreset`,`CanSetPresets`,`CanMove`,`CanMoveDiag`,`CanMoveCon`,`CanPan`,`HasPanSpeed`,`MinPanSpeed`,`MaxPanSpeed`,`CanTilt`,`HasTiltSpeed`,`MinTiltSpeed`,`MaxTiltSpeed`)
SELECT 'Reolink HTTP API','Reolink_HTTP',1,1,1,1,1,64,1,1,1,1,64,1,1,1,1,1,1,1,1,64,1,1,1,64 FROM DUAL
WHERE NOT EXISTS (SELECT 1 FROM `Controls` WHERE `Protocol` = 'Reolink_HTTP');