programming with camera

Forum All about Webcams, IP Camera's & Camera's (hardware, software, pan tilt zoom etc).

Moderator: Esteban

Post Reply
drmacchi
Advanced Member
Advanced Member
Posts: 827
Joined: Wed Aug 08, 2007 5:48 pm
Location: Italy

programming with camera

Post 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 9117 times
cam2.jpg
cam2.jpg (108.2 KiB) Viewed 9117 times
johnz
Member
Member
Posts: 144
Joined: Wed May 06, 2009 10:12 pm
Location: Netherlands

Re: programming with camera

Post 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
drmacchi
Advanced Member
Advanced Member
Posts: 827
Joined: Wed Aug 08, 2007 5:48 pm
Location: Italy

Re: programming with camera

Post 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
drmacchi
Advanced Member
Advanced Member
Posts: 827
Joined: Wed Aug 08, 2007 5:48 pm
Location: Italy

Re: programming with camera

Post 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
johnz
Member
Member
Posts: 144
Joined: Wed May 06, 2009 10:12 pm
Location: Netherlands

Re: programming with camera

Post 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.
drmacchi
Advanced Member
Advanced Member
Posts: 827
Joined: Wed Aug 08, 2007 5:48 pm
Location: Italy

Re: programming with camera

Post 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 !
johnz
Member
Member
Posts: 144
Joined: Wed May 06, 2009 10:12 pm
Location: Netherlands

Re: programming with camera

Post 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:
Esteban
Forum Moderator
Forum Moderator
Posts: 677
Joined: Sun Jan 13, 2008 6:39 pm
Location: Netherlands

Re: programming with camera

Post by Esteban »

drmacchi
Advanced Member
Advanced Member
Posts: 827
Joined: Wed Aug 08, 2007 5:48 pm
Location: Italy

Re: programming with camera

Post by drmacchi »

Thanks ! Now i must place it on the wall and then i'll try these settings. Stay tuned :D
drmacchi
Advanced Member
Advanced Member
Posts: 827
Joined: Wed Aug 08, 2007 5:48 pm
Location: Italy

Re: programming with camera

Post 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
Attachments
domo.jpg
domo.jpg (21.74 KiB) Viewed 9013 times
Post Reply

Return to “Webcams & Camera Stuff Forum”