Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


  • 0

HC2/Foscam exchanges


Guest jpr105

Question

Guest jpr105

Hello,

I found a really interesting post here:

Please login or register to see this link.

So I tried to arm or disarm the sound alarm of my Foscam from my HC2. This works perfectly using a first virtual device.

This virtual device set Foscam parameters as follow : "sounddetect_armed" to 1, "http" to 1 and "http_url" to the HTTP command to be send by the Foscam in case of sound detection. It also set a HC2 global variable "FI8910_SoundArmed" to 1.

The goal of the "http_url" is to send back a warning to the HC2 in case of sound detection. So, to get this alert I use a second virtual device who is planned to set a global variable "FI8910_SoundDetect" to 1.

Finally I can use a scene with this scenario : if "FI8910_SoundArmed" equal 1 and "FI8910_SoundDetect" equal 1 then send a push to my iPhone and set "FI8910_SoundDetect" value back to 0.

So let's try it :

  • - If I arm the sound alarm and set "http_url" to activate a Pushing Box scenario, it works perfectly ... but this is not what I want.
    - If I arm the alarm sound and send the following command manually thru Safari, it works perfectly ... I got a push on my iPhone directly from my HC2 through the scene described above. Here is the command :

Please login or register to see this code.

this command simulates a button press of the second virtual module described above ... and so, set "FI8910_SoundDetect" to 1.

Now, what is the matter ?

  • - When I set the Foscam "http_url" parameter to

Please login or register to see this code.

... it doesnt work at all
- I tried another solution like sending this command thru a html file located on my server :

Please login or register to see this code.


... it works thru Safari but not at all from the Foscam "http_url" parameter (http_url=http://192.168.10.30/hc2/sounddetect.html)

Now I am lost ... may be using the cURL syntaxe. But I am not confortable with PHP. I need help.

The french version of this post is here :

Please login or register to see this link.

Thank you in advance for your help.

Regards - Jean-Paul

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Hi jpr105

Please login or register to see this image.

/emoticons/default_icon_wink.gif" alt=";-)" />

- When I set the Foscam "http_url" parameter to

Code:

Please login or register to see this link.

... it doesnt work at all

I had forgotten but i have the same problem with my Vivotek cam, HC2 reject all http request sent from it and idon't know why

Please login or register to see this image.

/emoticons/default_icon_question.gif" alt=":?:" /> and we are not the only ones with the worries, other post exists. now i use my own server as a gateway...

[ Added: 2013-11-13, 12:27 ]

see this post:

Please login or register to see this link.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...