Camera live motion detection recording with ubuntu linux..

oktober 28th, 2006 by ltz

This is rather old news, however since I found guides from people explaining how they have spend 10 hours to get this working, I just might have an ubuntu-related guide that does this faster..

Given my local dev-server (1000mhz, 400mb ram) running the latest ubuntu server installation together with my cheap usb1.1 webcam.

Since I’m using the server version, this is the text-based install guide.

  • Given that you have ubuntu installed.
  • Make sure the /etc/apt/sources.list have both universe and backports enabled. (also run “apt-get update” after any change)
  • Run “apt-get -s install motion” and have a quick lock so that any unwanted parts your system installation won’t be removed.
  • run “apt-get install motion”
  • run “apt-get install ffmpeg” (add -s if you which to look over the changes..)
  • plug-in your usb-webcam.
  • run “dmesg” and check if the plug and play detection went ok. It should probably be in any of the later rows if you just recently plugged it in.
  • open /etc/motion/motion.conf (for instance: “pico /etc/motion/motion.conf”)
  • change the settings of your choosing (also check the video-device link).. check the motion website for a good explanation of the settings.. http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
  • after completing the config, run “motion”.. Any errors will display.
  • Check the given directory for image/video-files. given that the camera install went fine.
  • Your installation is complete. Run motion in deamon mode next time (”motion -d”)

Posted in *NIX, Comp | Kommentering avstängd

Implementing updating stock chart

oktober 28th, 2006 by ltz

Trying to update a html-page without having a) annoying refreshes of the entire page, b) a third party framework implementation (ie: Java/Flash/etc..). My experience is that a “third party” implementation more or less makes the best solution however there are alternatives. For instance a simple AJAX-based implementation of such a function would be possible. This also does have its drawbacks, but for now we could look at the possibilities.

Attached is one solution involving PHP and a standard OSI-certified AJAX-framework called Agent AJAX. Please note the drawbacks of this solution. If the client/server connection is poor, the transfers in AJAX might create problems for the Client. You can of course overcome this problem by simply thinking your solution through and for instance creating feedback to the user at any transaction that might fail.

Posted in Programming | Kommentering avstängd