[openwrt] ++scripts
This commit is contained in:
parent
238f171fc3
commit
76ff02656d
2 changed files with 35 additions and 1 deletions
28
openwrt-add-camera.sh
Normal file
28
openwrt-add-camera.sh
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
#!/bin/sh
|
||||
|
||||
opkg install motion kmod-video-uvc
|
||||
|
||||
uci set motion.general.enabled=1
|
||||
|
||||
cat > /etc/motion.conf <<EOF
|
||||
|
||||
daemon off
|
||||
process_id_file /var/run/motion/motion.pid
|
||||
setup_mode off
|
||||
|
||||
webcontrol_port 8080
|
||||
webcontrol_localhost on
|
||||
|
||||
videodevice /dev/video0
|
||||
v4l2_palette 8
|
||||
|
||||
width 1280
|
||||
height 720
|
||||
|
||||
videodevice /dev/video0
|
||||
input -1
|
||||
text_left place7, Luchsingen
|
||||
stream_port 8081
|
||||
framerate 1
|
||||
|
||||
EOF
|
||||
|
|
@ -1,8 +1,14 @@
|
|||
#!/bin/sh
|
||||
|
||||
opkg install kmod-usb-hid usbtemper
|
||||
opkg install kmod-usb-hid
|
||||
opkg install python3-pyserial
|
||||
|
||||
wget -O - https://files.pythonhosted.org/packages/cc/bb/2f676fdf64be88de068938be2193f091e76c53d277277e07f6153223cdda/temper-py-0.0.1.tar.gz | tar xz temper-py-0.0.1/temper.py
|
||||
|
||||
exit 0
|
||||
|
||||
[ 2089.624343] hid-generic 0003:413D:2107.0001: input,hidraw0: USB HID v1.11 Keyboard [HID 413d:2107] on usb-101c0000.ehci-1.2/input0
|
||||
[ 2089.826684] hid-generic 0003:413D:2107.0002: hiddev96,hidraw1: USB HID v1.10 Device [HID 413d:2107] on usb-101c0000.ehci-1.2/input1
|
||||
|
||||
root@viirb1:~/temper-py-0.0.1# python3 temper.py
|
||||
Bus 002 Dev 023 413d:2107 TEMPerGold_V3.1 28.5C 83.3F - - - -
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue