Jump to content

Web Resource Activiation


rschneid

Recommended Posts

Posted

I want to trigger Blue Iris (BI) to take a snapshot on a foscam camera. I can trigger the foscam directly using a web resoure, but blue iris is much faster and speed is critical to me. Not only that but I end up with more flexibility if I get the images and recordings in BI along with everything else that its doing. So I really want to control BI.

I have set up a batch file (snapshotcam1) which when executed from the dos/win command line immediately causes BI to take the snapshot and place it in BI's repository.

I have also created a jscript which I have placed in the BI webserver, which, when I enter directly into the browser causes the "onload" function to immediately fire the batch file (and take the picture). So far so good.

Now when I create the web resource, its not doing anything (at least its not firing the pic) - probably doing other things :-) . Yes I know this is round-about and if someone has a better way to cause BI to save a snapshot from a camera I would like to hear it.

 

Why? Door opens, camera swivels to it, takes one or more pics. Doing this directly to the foscam is taking time. For some reason Foscam will not take pic until some alloted amount of time has passed (10sec?). Thats bad. By that time, what I care about has come and gone. My motion sensors are immediate and the response from the camera to the ISY program is immediate. So I can move the camera where i want right away. So everything is good, but my ability to IMMEDIATELY snap pics (which BI can do) but which I am having lots of trouble controlling from ISY.

 

Suggestions?

 

Rich S.

Posted

Hi Rich S.,

 

Can you tell me:

1. What does BI Web Server expect

2. What you are having ISY send it

3. What's the error you are getting. If no error, then you might want to use WireShark to see if there are any network errors

 

With kind regards,

Michel

Posted

Hello rschneid,

 

Please increase the timeout. Read error only means that ISY didn't get a response within the timeout period.

 

And, as you mentioned, ISY cannot handle Javascript so this method is not going to work at all because Javascript is processed by the client (in this case ISY).

 

With kind regards,

Michel

Posted

Michel, so is there any suggested way to get a batch file to execute on my local PC (yes I know lots of security issues here). So maybe the answer is just plain no.

 

Rich S.

Posted

Hi Rich,

 

I am sure you will find applications that will provide you with that functionality though I am against it for security reasons (you'll open your computer up to almost anything). I am still not clear why activating the camera directly from ISY takes more time than the batch file.

 

With kind regards,

Michel

Guest
This topic is now closed to further replies.

×
×
  • Create New...