mirror of
https://github.com/outbackdingo/builder.git
synced 2026-01-27 10:18:28 +00:00
update Imou IPC-C22E-S2-v2 profile
This commit is contained in:
@@ -95,6 +95,7 @@ Model names Our firmware
|
||||
|
||||
Switcam HS303 v3 => Qtech QVC-IPC-136W
|
||||
Rostelecom IPC8232SWC-WE-B => Uniview C1L-2WN-G
|
||||
Rostelecom IPC C22E-S2 v2 => Imou IPC-C22E-S2-v2
|
||||
Uniview C1L-2WN-G-RU => Uniview C1L-2WN-G
|
||||
```
|
||||
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
qrscan.sh >/dev/null 2>&1 &
|
||||
;;
|
||||
esac
|
||||
Binary file not shown.
26
devices/ssc335de_lite_imou-c22e-s2-v2/general/overlay/usr/sbin/qrscan.sh
Executable file
26
devices/ssc335de_lite_imou-c22e-s2-v2/general/overlay/usr/sbin/qrscan.sh
Executable file
@@ -0,0 +1,26 @@
|
||||
#!/bin/sh
|
||||
|
||||
gpio=47 # RED LED, BLUE = 46
|
||||
n=0
|
||||
|
||||
gpio set ${gpio} | logger -t gpio
|
||||
|
||||
while true ; do
|
||||
if [ "$n" -ge 30 ]; then
|
||||
logger -t qrscan "Recognition timeout exceeded, reboot camera and try again..."
|
||||
gpio clear ${gpio} | logger -t gpio
|
||||
exit 1
|
||||
fi
|
||||
timeout 1 wget -q -O /tmp/image.jpg http://127.0.0.1/image.jpg
|
||||
data=$(qrscan -p /tmp/image.jpg)
|
||||
if [[ -n "$data" ]] && $(echo "$data" | grep -q wlan); then
|
||||
fw_setenv $(echo $data | cut -d " " -f 1 | sed 's/=/ /')
|
||||
fw_setenv $(echo $data | cut -d " " -f 2 | sed 's/=/ /')
|
||||
logger -t qrscan "Recognition successfully, wlanssid and wlanpass is writed to env. Reboot required."
|
||||
curl --data-binary @/usr/lib/sounds/ready_48k.pcm http://localhost/play_audio
|
||||
sleep 3
|
||||
reboot -f
|
||||
fi
|
||||
sleep 1
|
||||
n=$((n + 1))
|
||||
done
|
||||
@@ -10,14 +10,17 @@ fw_setenv upgrade 'https://github.com/OpenIPC/builder/releases/download/latest/s
|
||||
#
|
||||
# Set custom majestic settings
|
||||
#
|
||||
cli -s .video0.codec h264
|
||||
cli -s .image.mirror false
|
||||
cli -s .image.flip false
|
||||
cli -s .nightMode.irCutPin1 79
|
||||
cli -s .nightMode.irCutPin2 78
|
||||
cli -s .nightMode.backlightPin 52
|
||||
cli -s .nightMode.colorToGray true
|
||||
cli -s .audio.outputEnabled true
|
||||
cli -s .audio.outputVolume 80
|
||||
cli -s .audio.speakerPin 38
|
||||
cli -s .video0.codec h264
|
||||
cli -s .audio.srate 48000
|
||||
#
|
||||
#
|
||||
# Set wlan device and credentials if need
|
||||
|
||||
Reference in New Issue
Block a user