Author Topic: HOW TO: Foscam Control Through Elve  (Read 3402 times)

iostream212

  • Sr. Member
  • ****
  • Posts: 459
    • View Profile
HOW TO: Foscam Control Through Elve
« on: May 12, 2012, 08:56:49 am »
I have been adding functionality to my android interface and decided it was time to take control of my Foscam camera.  Here is a HOW TO on controlling this popular device from Elve. Enjoy!

1.) Use attached Foscam SDK to find the items you wish to control. In this example I will toggle control the camera nightvision (Ir).  From the SDK we read we need to toggle the values between 94/95 for this feature.

2.) Create a variable to track control item status. My variable is a boolean named 'blnGarageFoscamIrOn'.

3.) Create a button in your touchscreen with the press event as follows:
Code: [Select]

if (vars.blnGarageFoscamIrOn == true)
{
http.RetrieveWebPage( "http://ip of camera:port of camera/decoder_control.cgi?command=95", "user name", "password");
vars.blnGarageFoscamIrOn= false;
}
else
{
http.RetrieveWebPage( "http://ip of camera:port of camera/decoder_control.cgi?command=94", "user name", "password");
vars.blnGarageFoscamIrOn= true;
}

Happy Foscam-ing!
« Last Edit: May 12, 2012, 11:30:16 am by iostream212 »
I always wanted to be somebody. In retrospect, I think I should have been more specific.

kova4

  • Jr. Member
  • **
  • Posts: 16
    • View Profile
Re: HOW TO: Foscam Control Through Elve
« Reply #1 on: February 08, 2013, 03:15:17 am »
Im messing with the IPCamera device and I was wondering if I could change the IP address of the object programatically - I want a button to change the IP so that I can cycle thru cameras using 1 IPCamera device - I didnt see it in the available objects list or in the documentation - my only other option is to create multiple IPcameras and hide/visible them or load different pages - any help on this?

iostream212

  • Sr. Member
  • ****
  • Posts: 459
    • View Profile
Re: HOW TO: Foscam Control Through Elve
« Reply #2 on: February 08, 2013, 11:50:53 am »
I didn't see an option either in the object list so I am going to say cannot. When I did this I ended up creating serveral ip camera controls as you have suggested, and changed visibility as needed. Looking back you may try to use a web browser control instead and point it the camera feeds. I haven't tried this, yet, but you can set the browser url via scripts. Let me know if you try it.
I always wanted to be somebody. In retrospect, I think I should have been more specific.