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
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 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 ?
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
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.