CREATE TABLE `WebCams` ( `ID` INT(11) NOT NULL AUTO_INCREMENT, `Name` VARCHAR(50) NULL DEFAULT NULL, `URL` VARCHAR(200) NULL DEFAULT NULL, `Start` TIME NULL DEFAULT NULL, `Stop` TIME NULL DEFAULT NULL, `Refresh` INT(5) NULL DEFAULT NULL, `Monitor` VARCHAR(1) NULL DEFAULT NULL, `Enabled` INT(1) NULL DEFAULT NULL, PRIMARY KEY (`ID`) ) )I place this under the zoneminder database itself, that way it's all kept together.
INSERT INTO `WebCams` (`ID`, `Name`, `URL`, `Start`, `Stop`, `Refresh`, `Monitor`, `Enabled`) VALUES (1, 'Aberystwyth Pier', 'http://www.ceredigion.gov.uk/english/visiting/aber_webcam/img/994.jpg', '00:00:00', '23:59:59', 900, 'A', 1);Pretty straight forward descriptions for Name, URL, Start & Stop. One thing to note is I made the script to interpret the start and stop so you can start at 10pm and finish at 2am and it will happily work (took a bit for my head to get around it though).
Labels: Webcams, Zoneminder