This file contains 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
/* | |
* ESP8266_zmtrigger | |
* | |
* Date of Last Revision: Jan 16, 2015 | |
* Andrew Bauer [email protected] | |
* | |
* Upon activation of GPIO2, this sketch sends a user defined command to a ZoneMinder | |
* server running zmtrigger on port 6802. | |
* | |
* Credit goes to Alex a.k.a. tzapu for his awesome WiFiManager class! |
This file contains 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
/* | |
* ESP8266_zmtrigger | |
* | |
* Date of Last Revision: Jan 14, 2015 | |
* | |
* Upon activation of GPIO2, this sketch sends a user defined command to a ZoneMinder | |
* server running zmtrigger on port 6802. | |
* | |
*/ |
This file contains 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
#include <ESP8266WiFi.h> //https://github.com/esp8266/Arduino | |
//needed for library | |
#include <ESP8266WebServer.h> | |
#include <DNSServer.h> | |
#include <WiFiManager.h> //https://github.com/tzapu/WiFiManager | |
#define GPIO0 0 | |
#define GPIO2 2 |
This file contains 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
// The words SEND and RECEIVE were added by me to keep track of the direction | |
// SEND -> data sent to the Netcat camera | |
// RECEIVE -> data recevied from the Netcat camera | |
SEND: 9Xd'hxE-v@S"[%Pd{ "EncryptType" : "MD5", "LoginType" : "DVRIP-Web", "PassWord" : "ORsEWe7l", "UserName" : "admin" } | |
RECEIVE: 'hx9XdEg@@S"[&#PO{ "AliveInterval" : 21, "ChannelNum" : 1, "DeviceType " : "IPC", "ExtraChannel" : 0, "Ret" : 100, "SessionID" : "0x00000018" } | |
SEND: 9Xd'hxEr-w@S"[&#P6{ "Name" : "SystemInfo", "SessionID" : "0x00000018" } | |
RECEIVE: 'hx9XdEi@@S"[&mPI{ "Name" : "SystemInfo", "Ret" : 100, "SessionID" : "0x18", "SystemInfo" : { "AlarmInChannel" : 2, "AlarmOutChannel" : 1, "AudioInChannel" : 1, "BuildTime" : "2015-09-11 17:25:08", "CombineSwitch" : 0, "DeviceRunTime" : "0x00000A94", "DigChannel" : 0, "EncryptVersion" : "Unknown", "ExtraChannel" : 0, "HardWare" : "N51820L", "HardWareVersion" : "Unknown", "SerialNo" : "d4f6eef9ffc895b7", "SoftWareVersion" : "V4.02.R11.00001906.10010.230100", "TalkInChannel" : 1, " |
This file contains 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
[["1","Monitor-1","Local","None","320","240","3","0.00","0.00"],["2","Monitor-2","File","Monitor","328","208","3","1.00","1.00"],["3","Foscam9821Demo","Ffmpeg","None","1280","720","4","31.00","31.00"],["4","remote_cam","Remote","Monitor","640","360","4","0.00","0.00"]] |
This file contains 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
perl -e 'use POSIX qw(uname); my @uname = uname(); foreach (@uname) { print $_,"\n"; }' |
This file contains 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
[abauer@vFedora25 x86_64]$ rpmlint zoneminder-1.30.1-1.fc25.src.rpm | |
zoneminder.src: W: invalid-url Source0: ZoneMinder-1.30.1.tar.gz | |
1 packages and 0 specfiles checked; 0 errors, 1 warnings. | |
[abauer@vFedora25 x86_64]$ rpmlint zoneminder-1.30.1-1.fc25.x86_64.rpm | |
zoneminder.x86_64: E: non-readable /etc/zm/zm.conf 640 | |
zoneminder.x86_64: W: dangling-relative-symlink /usr/share/zoneminder/www/cambozola.jar ../../java/cambozola.jar | |
zoneminder.x86_64: E: explicit-lib-dependency libcurl | |
zoneminder.x86_64: E: explicit-lib-dependency libjpeg-turbo |
This file contains 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
%global zmuid_final apache | |
%global zmgid_final apache | |
# In some cases older distros do not have this macro defined | |
%{!?make_build: %global make_build %{__make} %{?_smp_mflags} } | |
%if "%{zmuid_final}" == "nginx" | |
%global with_nginx 1 | |
%global wwwconfdir /etc/nginx/default.d | |
%else |
This file contains 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
I just read the process on their web page: | |
https://rpmfusion.org/Contributors | |
If you would like, I could help sponsor you for *Fedora* packaging | |
because it seems it will be beneficial for RPMFusion too. They both | |
use the same set of guidelines and process/tools for the most part. | |
https://fedoraproject.org/wiki/Join_the_package_collection_maintainers |
This file contains 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
[abauer@bauerhaus ~]$ rpm -qR zoneminder | |
/bin/sh | |
/bin/sh | |
/bin/sh | |
/bin/sh | |
/usr/bin/gpasswd | |
/usr/bin/less | |
/usr/bin/perl | |
/usr/bin/pkexec | |
cambozola |
OlderNewer