Yun & Compatible
- Details
- Written by Sonny Yu
mkdir /mnt/sda1/pic
nano /etc/init.d/mjpg-streamer
... --output "output_http.so --www $www --port $port" \ --output "output_file.so -f /mnt/sda1/pic -d 10000" } ...
/etc/init.d/mjpg-streamer restart
"-d 10000" means every 10 seconds save file.
access video via browser from http://arduino.local:8080
root@Arduino:/mnt/sda1/pic# ls /mnt/sda1/pic/* /mnt/sda1/pic/2015_06_13_06_48_25_picture_000000000.jpg /mnt/sda1/pic/2015_06_13_06_48_35_picture_000000001.jpg /mnt/sda1/pic/2015_06_13_06_48_45_picture_000000002.jpg ...
Write comment (0 Comments)
- Details
- Written by Sonny Yu
nano /etc/config/mjpg-streamer
... option port "8080" option password "admin:password"
nano /etc/init.d/mjpg-streamer
... config_get port "$s" 'port' config_get password "$s" 'password' [ -c "$device" ] || { ... --device $device --fps $fps --resolution $resolution" \ --output "output_http.so -c $password --www $www --port $port" } ...
/etc/init.d/mjpg-streamer stop /etc/init.d/mjpg-streamer start
login http://arduino.local:8080/ with admin/password.
Write comment (0 Comments)
- Details
- Written by Sonny Yu
Install Webcam driver:
Install mjpg-streamer:
opkg update opkg install mjpg-streamer
nano /etc/config/mjpg-streamer
config mjpg-streamer core option enabled "1" option device "/dev/video0" option resolution "640x480" option fps "30" option www "/www/webcam" option port "8080"
/etc/init.d/mjpg-streamer enable /etc/init.d/mjpg-streamer restart
access video via browser from http://arduino.local:8080
Write comment (0 Comments)
- Details
- Written by Sonny Yu
Remove old version:
opkg remove imagemagick-jpeg opkg remove imagemagick-png opkg remove imagemagick-tiff opkg remove imagemagick-tools opkg remove imagemagick
Install new version:
cd /mnt/sda1 wget -O ipk.tar.gz https://www.dropbox.com/s/kxd6072milgtk37/ipk.tar.gz?dl=0 --no-check-certificate tar -zxvf ipk.tar.gz rm ipk.tar.gz cd ipk opkg install imagemagick_6.7.8-3_ar71xx.ipk opkg install imagemagick-tiff_6.7.8-3_ar71xx.ipk opkg install imagemagick-png_6.7.8-3_ar71xx.ipk opkg install imagemagick-jpeg_6.7.8-3_ar71xx.ipk opkg install imagemagick-tools_6.7.8-3_ar71xx.ipk
Install font:
opkg update opkg install librrd opkg files librrd |grep ttf /usr/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf
Download test image:
wget -O yun.png https://www.dropbox.com/s/sjmhrcd7a7gcxf6/yun.png?dl=0 --no-check-certificate
Impress text to image:
convert yun.png -fill white -box '#00770080' -gravity \ South -font /usr/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf -pointsize \ 28 -annotate +0+5 ' Arduino Yún ' /www/yunlabel.png
View image from browser:
http://arduino.local/yunlabel.png
Write comment (0 Comments)
Subcategories
Expand the Storage at Yun
Expand the Storage at Yun
Languages Supported by Yun
Languages Supported by Yun
Backup and Recover
Backup and Recover
Network and Yun
Network and Yun
Hardware & Yun
Hardware & Yun
OpenWrt-SDK & Yun
OpenWrt-SDK & Yun
Page 28 of 34