Page 1 of 1

programming with camera

Posted: Wed Aug 04, 2010 10:52 pm
by drmacchi
Hi All, i bought a new camera with pan/tilt http://www.mwr.com.tw/ip-camera/c1062r.htm

here a manual http://www.solwise.co.uk/downloads/files/c1002qig.pdf

I need some help because i'm not a programmer: in camera cdrom there's a document
called programming guide with HTTP-API that make me think i can automatize some jobs with explorer.
i have Homeseer, and by conditions i could force camera to move to a desired position automatically , or i think so..
i can not UPLOAD the pdf because is bigger than 300k
see the screenshot.
i can send the pdf to who could help me :D
thanks for support
lorenzo
cam1.jpg
cam1.jpg (126.36 KiB) Viewed 9229 times
cam2.jpg
cam2.jpg (108.2 KiB) Viewed 9229 times

Re: programming with camera

Posted: Thu Aug 05, 2010 12:09 am
by johnz
Hi Lorenzo,

Let's see if the easy way works. Have you tried the HSTouch xml file that Homeseer provides for the foscam pan/tilt camera they sell?

ftp://ftp.homeseer.com/pub/HomeSeer%20P ... Camera.zip

It may set you on the right track for the events you want to create.

Regards,
John

Re: programming with camera

Posted: Thu Aug 05, 2010 12:04 pm
by drmacchi
Hi John, i'll try but i see this is used for live feed into HSTOUCH. I would like to do this :

cam has pan tilt so can move to preset positions
i set some positions in it
ms13 can detect movements and send info to HS
i create an event about it , with action : launch program - my program is IE with some code of the API
camera moves to preset corresponding and because it has screenshooting camera takes the picture of the movement .... along 360 degrees , by itself 8) . That's my idea

Re: programming with camera

Posted: Thu Aug 05, 2010 9:25 pm
by drmacchi
Ok camera works, with simple code in the address bar of explorer.
now i need a little help.
what is the code to make homeseer start explorer and navigate to a web address?

hs.launch...... DON'T KNOW , please help

Re: programming with camera

Posted: Thu Aug 05, 2010 11:37 pm
by johnz
I would say hs.GetURL

hs.GetURL("your_camera_ip\your_cgi_command","/",TRUE,80)

I do not think it will open explorer though, but you probably don't need that.

Re: programming with camera

Posted: Fri Aug 06, 2010 9:05 am
by drmacchi
johnz wrote:I would say hs.GetURL

hs.GetURL("your_camera_ip\your_cgi_command","/",TRUE,80)

I do not think it will open explorer though, but you probably don't need that.
Hi John what ----,"/",TRUE,80.... stands for?
thanks !

Re: programming with camera

Posted: Fri Aug 06, 2010 1:45 pm
by johnz
Hi Lorenzo,

I have no idea to be honest. I just copied this from an example in the Homeseer helpfile. I assume 80 is the portnumber, but the rest :roll:

Re: programming with camera

Posted: Sat Aug 07, 2010 6:39 pm
by Esteban

Re: programming with camera

Posted: Sat Aug 07, 2010 10:47 pm
by drmacchi
Thanks ! Now i must place it on the wall and then i'll try these settings. Stay tuned :D

Re: programming with camera

Posted: Sun Sep 12, 2010 8:48 pm
by drmacchi
Strange, with GetURL i see a GRAYBOX without html-formatting

example this point to CNN.COM

sub main()

dim page

page = hs.GetURL("cnn.com","/",TRUE,80)
msgbox page
end sub
and this is the result