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
#!/bin/sh | |
server="ipcam.octonix.net" | |
login="mylogin" | |
password="mypass" | |
devid="$(ifconfig eth0 | awk '/HWaddr/ {print $5}' | tr -d ':')" | |
snapshot="http://127.0.0.1/webcapture.jpg?command=snap&channel=1" | |
upload="http://${server}/~${login}/${devid}/$(TZ=':GMT-3' date +%Y/%m/%d/%H.%M'.jpg')" | |
timeout="12" | |
tmp="/var/tmp" |
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
#!/bin/sh | |
mkdir small; for f in *.jpg ; do echo "Convering $f ..." ; convert -quality 100 -resize 640x640 "$f" "small/${f%.jpg}-lite.jpg" ; done |
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
{ | |
:global lat | |
:global lon | |
/system gps monitor once do={ | |
:set $lat $("latitude") | |
:set $lon $("longitude") | |
} | |
tool fetch mode=http url="http://sight.octonix.net/index.php" port=80 http-method=post \ | |
http-data=("{\"lat\":\"" . $lat . "\",\"lon\":\"" . $lon . "\"}") http-content-type="application/json" | |
:put ("{\"lat\":\"" . $lat . "\",\"lon\":\"" . $lon . "\"}") |
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
#/bin/sh | |
# | |
# Stream RTSP to YouTube | |
#INPUT="rtsp://172.17.32.103:554/av0_1" | |
INPUT="rtsp://172.28.159.102/user=admin&password=bzz&channel=1&stream=0.sdp?real_stream" | |
TOKEN="dk5m-8qej-8ebf-9q58" | |
ffmpeg -f lavfi \ |
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
#!/bin/sh | |
# | |
# (while sleep 5; do /usr/bin/troller >/dev/null 2>&1 ; done) &. | |
HOST1="192.168.213.251" | |
HOST2="192.168.213.252" | |
if ! ping -q -c 5 ${HOST1} ; then | |
echo "Host ${HOST1} not response, check secondary" | logger; | |
if ! ping -q -c 5 ${HOST2} ; then |
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
/var/tmp # cat /proc/umap/vpss | |
[VPSS] Version: [Hi3518EV200_MPP_V1.0.4.0 B050 Release], Build Time[Nov 25 2016, 21:56:16] | |
VI-VPSS is online. | |
-------------------------------MODULE PARAM----------------------------------------------------------------- | |
rfr_frame_comp bOneBufferforLowDelay | |
Y N |
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
/var/tmp # cat /proc/umap/venc | |
[VENC] Version: [Hi3518EV200_MPP_V1.0.4.0 B050 Release], Build Time[Nov 25 2016, 21:56:23] | |
-----MODULE PARAM-------------------------------------------------------------- | |
VencBufferCache | |
0 | |
-----VENC CHN ATTR 1------------------------------------------------------------- | |
ID Width Height Type ByFrame Timeout Sequence LeftBytes LeftFrm CurPacks prio |