Announcement

Collapse
No announcement yet.

Webcam script

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Webcam script

    I'm currently working on a WebCam script. Script, so readable code and no DLL's. It does require IIS so it's not running in the HS webserver. As my Win2k server has both IIS and HS this is not a problem. What it does. You can call the script using a few parameters:
    • URL ("http://usernamewd@<webcamIP>/etcetc/jpg.cgi")
    • HomeSeer Device ("W1")
    • Filename ("Webcam.jpg")
    • Filename append ("Frontdoor" --> WebcamFrontdoor.jpg)
    • Directory ("FrontdoorMotion" or "FrontdoorOpen")
    • Overwrite ("yes" or "no" --> overwrites existing file or not)
    • Numbered ("yes" or "no" --> adds a number for storing images

    So the script grabs a webcam image (that must be available as a picture using a single URL) and saves it to a directory/filename that you configure.

    It also updates the devicestring of the configured device ("W1" in this example) with the last picture taken.

    Also working on a script that shows the images (as a result of the captures) where you can select if you want to see today's pictures, this weeks pictures, etc.etc.

    Will have to clean up the code is it's a bit messy and I want to move the basic config to an .ini file. Will post it as soon as it is updated and documented. It might take another week before it's posted to:
    http://www.domoticaworld.com

    Cheers!
    DJ
    Last edited by DJF3; February 8, 2012, 06:35 AM.
Working...
X