[openwrt] camera switch to mjpg

This commit is contained in:
Nico Schottelius 2020-11-19 19:49:24 +01:00
parent 04f38ee09b
commit 7e4fe889d9

View file

@ -20,6 +20,27 @@ fi
cat <<EOF | ssh -t "root@${openwrt_ip}" cat <<EOF | ssh -t "root@${openwrt_ip}"
set -x set -x
opkg update
opkg install mjpg-streamer kmod-video-uvc
uci set mjpg-streamer.core.enabled=1
uci set mjpg-streamer.core.resolution="1920x1080"
uci delete mjpg-streamer.core.username
uci delete mjpg-streamer.core.password
uci commit
/etc/init.d/mjpg-streamer restart
EOF
exit 0
# This is old code / when we used motion
cat <<EOF | ssh -t "root@${openwrt_ip}"
set -x
opkg update opkg update
opkg install motion kmod-video-uvc opkg install motion kmod-video-uvc