Diskussion:Backfire
Aus Freifunk Leipzig
Version vom 6. Mai 2011, 18:17 Uhr von Uci (Diskussion | Beiträge)
Inhaltsverzeichnis |
Asus WL-HDD
LAN vom Laptop auf 192.168.1.2, Kabel anschliessen, Reset Taste druekcen, gedrueckt halten, Asus-Gerät einschalten, Reset Taste erst loslassen, wenn lampe rechts oben im sekundenabstand blinkt....
ping 192.168.1.1
sollte nun funktionieren
Mac:_freifunk-rsl ufo$ tftp tftp> bin tftp> c (to) 192.168.1.1. ^C tftp> o ?Invalid command tftp> c (to) 192.168.1.1 tftp> bin tftp> get ASUSSPACELINK\x01\x01\xa8\xc0 /dev/null tftp> put 234-2b-openwrt-brcm47xx-squashfs.trx ASUSSPACELINK Sent 2887680 bytes in 10.0 seconds tftp> quit Mac:_freifunk-rsl ufo$
probleme nach dem flashen, scheint endlos-reboot. firmware via Firmware-Builder OHNE WIFI funktioniert allerdings problemlos.
Firmware-Builder
Stat im AP Modus
root@OpenWrt:~# iwinfo ath0 assoclist
quickcam pro 5000
opkg list | grep uvc
quickcam silver
so wie http://wiki.leipzig.freifunk.net/Asus_WL-500GP und http://wireless.subsignal.org/index.php?title=Webcam-Howto
opkg update opkg install kmod-usb-core kmod-usb-uhci kmod-usb2 libpthread opkg install kmod-video-pwc opkg install motion
config /etc/motion.conf
vi /etc/motion.conf #motion.conf daemon on quiet on # You may very well need to change this (check with 'dmesg' # after plugging in your webcam) videodevice /dev/video0 # Image size in pixels (valid range is camera dependent) width 320 height 240 quality 70 framerate 2 auto_brightness off # Initial brightness, contrast, hue (NTSC), and saturation # 0 = disabled (valid range 0-255) brightness 0 contrast 0 saturation 0 hue 0 # ploetzlichen Lichteinfall daempfen lightswitch 30 # Target base directory for pictures and films # You should probably change this (create dir beforehand) target_dir /tmp jpeg_filename SpcaPict # Speicherpause um das Geraet zu schonen minimum_gap 30 low_cpu 1 # Define a port number (e.g. 8000) to enable the mini-http server # 0 = disabled webcam_port 8000 # Set to 'off' to allow anybody (not just localhost) to view the # webcam via the mini-http server (http://hostname:port) webcam_localhost off webcam_quality 40 webcam_maxrate 1 # User defined text overlayed on each in the lower left corner text_left "Dave TV"
webcam
falls /opt verzeichnis existiert, siehe usb-stick
ln -s /opt/cam.jpg /www/luci-static/resources/cam.jpg
zum ausführen vom einem bild jede minute:
fswebcam -F 10 -S 10 -r 640x480 --jpeg 95 --save /opt/cam.jpg cd /opt mkdir `date +%Y-%m-%d` cp cam.jpg `date +%Y-%m-%d`/sublab-verschwommen-`date +%Y-%m-%d--%H-%M`.png
in /etc/crontabs/root ergänzen:
* * * * * /opt/webcam
und die startseite (via web) umstellen, hier ergänzen:
<img src="/luci-static/resources/cam.jpg" />