This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div class="form-group col-md-6"> | |
| <label class="control-label col-md-6" for="ZoneType"> … </label> | |
| <div class="input select"> | |
| <select id="ZoneType" class="form-control" name="data[Zone][Type]"> … </select> | |
| </div> | |
| </div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT COUNT(*) AS `count` FROM `zm`.`Events` AS `Event` LEFT JOIN `zm`.`Monitors` AS `Monitor` ON (`Event`.`MonitorId` = `Monitor`.`Id`) WHERE `Event`.`MonitorId` = 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| root@zoneminder:/var/www/zm# ffmpeg -encoders 2>&1|grep 264 | |
| configuration: --enable-libx264 --enable-libvpx --enable-libvorbis --enable-libtheora --enable-gpl | |
| V..... libx264 libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (codec h264) | |
| V..... libx264rgb libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 RGB (codec h264) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/perl | |
| use strict; | |
| use warnings; | |
| use ZoneMinder; | |
| my $status = zmIsAlarmed( 1 ); | |
| print $status; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Monitor State Polling // | |
| setTimeout(function() { | |
| $(".monitor").each(function () { | |
| var id = $(this).attr("id"); | |
| id = id.split("_"); | |
| id = id[1]; | |
| $.post('/Monitors/check_state/' . id, function(data) { | |
| console.log(data); | |
| }) | |
| }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| root@zm-dev:~# sudo -u www-data zmpkg.pl start | |
| Use of uninitialized value in transliteration (tr///) at /usr/local/lib/perl/5.14.2/ZoneMinder/Config.pm line 82, <CONFIG> line 50. | |
| Can't use an undefined value as a symbol reference at /usr/local/lib/perl/5.14.2/ZoneMinder/Config.pm line 83, <CONFIG> line 50. | |
| BEGIN failed--compilation aborted at /usr/local/lib/perl/5.14.2/ZoneMinder/Config.pm line 100, <CONFIG> line 50. | |
| Compilation failed in require at /usr/local/lib/perl/5.14.2/ZoneMinder.pm line 33, <CONFIG> line 50. | |
| BEGIN failed--compilation aborted at /usr/local/lib/perl/5.14.2/ZoneMinder.pm line 33, <CONFIG> line 50. | |
| Compilation failed in require at /usr/local/bin/zmpkg.pl line 37, <CONFIG> line 50. | |
| BEGIN failed--compilation aborted at /usr/local/bin/zmpkg.pl line 37, <CONFIG> line 50. | |
| root@zm-dev:~# mysql -u zm -p zm | |
| Enter password: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <VirtualHost *:80> | |
| DocumentRoot /var/www/zm | |
| ServerName zoneminder | |
| ServerAlias zoneminder.example.com | |
| ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ | |
| <Directory "/usr/lib/cgi-bin"> | |
| AllowOverride None | |
| Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch | |
| Order allow,deny | |
| Allow from all |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/perl | |
| use strict; | |
| use warnings; | |
| use ZoneMinder; | |
| use Switch; | |
| $| = 1; | |
| my @monitors; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <Hashie::Mash data=[#<Hashie::Mash apparentTemperatureMax=38.19 apparentTemperatureMaxTime=1391194800 apparentTemperatureMin=19.51 apparentTemperatureMinTime=1391144400 cloudCover=0.71 dewPoint=20.89 humidity=0.68 icon="partly-cloudy-day" moonPhase=0.04 ozone=269.72 precipIntensity=0 precipIntensityMax=0 precipProbability=0 pressure=1022.02 summary="Mostly cloudy throughout the day." sunriseTime=1391170534 sunsetTime=1391207208 temperatureMax=40.43 temperatureMaxTime=1391194800 temperatureMin=19.51 temperatureMinTime=1391144400 time=1391144400 visibility=9.95 windBearing=212 windSpeed=1.68>, #<Hashie::Mash apparentTemperatureMax=36.43 apparentTemperatureMaxTime=1391284800 apparentTemperatureMin=28.03 apparentTemperatureMinTime=1391310000 cloudCover=0.82 dewPoint=31.11 humidity=0.86 icon="partly-cloudy-day" moonPhase=0.07 ozone=273.71 precipIntensity=0.0001 precipIntensityMax=0.0008 precipIntensityMaxTime=1391313600 precipProbability=0.02 precipType="rain" pressure=1022.74 summary="Mostly cloudy throughout the |