Merge branch 'master' of github2:OpenIPC/builder

This commit is contained in:
Signor Pellegrino (from Citadel PC)
2025-01-18 23:17:21 +03:00
5 changed files with 41 additions and 2 deletions

View File

@@ -50,7 +50,7 @@ Smartwares CIP-37210 HI3518EV200 OV9732 RTL8188FU_USB NOR_16M in pr
Smartwares CIP-37210AT T21N JXF37 RTL8188FU_USB NOR_16M done
Switcam HS303 (v1) HI3518EV200 JXF22 RTL8188FU_USB NOR_16M testing now
Switcam HS303 v2 HI3518EV200 OV9732 RTL8188EU_USB NOR_16M done
Tiandy TC-C32QN GK7205V210 OS02G10 - NOR_8M in progress
Tiandy TC-C32QN GK7205V210 OS02G10 - NOR_8M done
TP-Link Tapo C110 v1 SSC335 SC3335 ATBM6032i_USB NOR_8M done
TP-Link Tapo C110 v1 SSC337 SC3335 SSW101B_USB NOR_8M done
TP-Link Tapo C110 v2 SSC333 SC3338 SSW101B_USB NOR_8M done

View File

@@ -0,0 +1,7 @@
#!/bin/sh
case "$1" in
start)
qrscan.sh >/dev/null 2>&1 &
;;
esac

View File

@@ -0,0 +1,29 @@
#!/bin/sh
gpio=64 # RED COLOR LED, BLUE = 65
n=0
gpio set 64
gpio set 65
gpio clear ${gpio} | logger -t gpio
while true ; do
if [ "$n" -ge 30 ]; then
logger -t qrscan "Recognition timeout exceeded, reboot camera and try again..."
gpio set ${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

View File

@@ -10,13 +10,16 @@ fw_setenv upgrade 'https://github.com/OpenIPC/builder/releases/download/latest/s
#
# Set custom majestic settings
#
cli -s .system.staticDir /var/www/majestic
cli -s .image.mirror true
cli -s .image.flip true
cli -s .nightMode.irCutPin1 61
cli -s .nightMode.irCutPin2 79
cli -s .nightMode.backlightPin 4
cli -s .nightMode.colorToGray true
cli -s .video0.fps 25
cli -s .audio.enabled true
cli -s .audio.outputEnabled true
cli -s .audio.outputVolume 80
cli -s .audio.speakerPin 0
cli -s .video0.codec h264
#