This object is in archive! 
Shorten url in http device
Not a Problem
Hi,
I just installed an ebobe IP vision 58 Camera who is working quite fine with zipabox.
Then,I created and "http device" (to gather cam's motion detection alram) but the "active URL" guiven by zipabox is too long and was truncate when i pasted it in the camera setup software.
you can have a look on the 2 screenshots include in this post.
do you have any work around on that point ?
No connection
Real-time notifications may not work
The same problem with foscam cameras, URL is to long...
The same problem with foscam cameras, URL is to long...
i found on a tutorial a work around by using a shorten url application like google shortener (http://goo.gl/), but it's not working with my cam :-(
Actually it work when i paste the short url in a browser, but the camera seem not to send the HTTP request.
and it's the same issue when sending http request from Zipabox rule creator to the camera...
i'm will turn crasy :-/
Kristian can you test the work around with your foscam and update me ?
i found on a tutorial a work around by using a shorten url application like google shortener (http://goo.gl/), but it's not working with my cam :-(
Actually it work when i paste the short url in a browser, but the camera seem not to send the HTTP request.
and it's the same issue when sending http request from Zipabox rule creator to the camera...
i'm will turn crasy :-/
Kristian can you test the work around with your foscam and update me ?
Sure Will, another option would be to put a very small script on a web server and Call that from the camera, the script then calls the zipato sensor.
Sure Will, another option would be to put a very small script on a web server and Call that from the camera, the script then calls the zipato sensor.
Another thing I found out, Axis cameras seems to work fine.
Another thing I found out, Axis cameras seems to work fine.
OK, test done and its not working for me either.
- Added a virtual sensor (Camera Sensor)
- Added the Virtual sensor true value into google shortener.
- Updated my camera with the new shorten value for http motion request
- No activation upon motion
- Both the Zipato url and then shortened url works fine.
The funny thing is that i have mailed the Foscam support about this and their replay was that foscam cameras do not support http request trigger. When i then asked about this from i forum... no replay...
http://foscam.us/forum/customize-motion-alert-t2811.html
OK, test done and its not working for me either.
- Added a virtual sensor (Camera Sensor)
- Added the Virtual sensor true value into google shortener.
- Updated my camera with the new shorten value for http motion request
- No activation upon motion
- Both the Zipato url and then shortened url works fine.
The funny thing is that i have mailed the Foscam support about this and their replay was that foscam cameras do not support http request trigger. When i then asked about this from i forum... no replay...
http://foscam.us/forum/customize-motion-alert-t2811.html
I tried out with tiny URL instead of google shortener same issue :-(
I sent a mail to edobe support as well.
I read that ebode and foscam are based on the same firmware and web interface...
By the way what is you camera network config ?
mine is
Wifi on port 81 with DHCP (ip booked in DHCP server)
port forwarding added in router (acces cam web server from outside is ok)
it would be interesting to call a PHP script (as you suggest) who update a db field, just to validate if the HTTP request is send out (or not) by the camera.
by the way i managed to send http request from zipabox rules to camera to enable disable camera motion sensor with a virtual switch.
I tried out with tiny URL instead of google shortener same issue :-(
I sent a mail to edobe support as well.
I read that ebode and foscam are based on the same firmware and web interface...
By the way what is you camera network config ?
mine is
Wifi on port 81 with DHCP (ip booked in DHCP server)
port forwarding added in router (acces cam web server from outside is ok)
it would be interesting to call a PHP script (as you suggest) who update a db field, just to validate if the HTTP request is send out (or not) by the camera.
by the way i managed to send http request from zipabox rules to camera to enable disable camera motion sensor with a virtual switch.
First of all, we can't shorten virtual device URLs.
Your workarounds with short URL services doesn't work (except in browser) because camera doesn't follow redirects which are sent from those services (status 301).
Only option for now is the one that Kristian already suggested:
First of all, we can't shorten virtual device URLs.
Your workarounds with short URL services doesn't work (except in browser) because camera doesn't follow redirects which are sent from those services (status 301).
Only option for now is the one that Kristian already suggested:
okay thanks Nenad, i will try it, and by the way i will post a idea here, to a get a work around
okay thanks Nenad, i will try it, and by the way i will post a idea here, to a get a work around
Here if a simple php script to trigger your virtual sensor
usage
1 - to set virtual sensor to ON:
http://the_script_location/virtual_sensor_enable.php?sensor_status=on
or
http://the_script_location/virtual_sensor_enable.php (with no param it's send "on" status)
1 - to set virtual sensor to OFF:
http://your_script_location/virtual_sensor_enable.php?sensor_status=off
Here if a simple php script to trigger your virtual sensor
usage
1 - to set virtual sensor to ON:
http://the_script_location/virtual_sensor_enable.php?sensor_status=on
or
http://the_script_location/virtual_sensor_enable.php (with no param it's send "on" status)
1 - to set virtual sensor to OFF:
http://your_script_location/virtual_sensor_enable.php?sensor_status=off
OK guys i just tested with the above scrip but same issuses :-(
I get mail, i get photo in alarm folder, but the virtual sensor didn't work.
i confirm i didn't use short ARL but directly my script URL.
I test from a production server (where alla my e-shop and Wordpress are) and from my local web server, no way :-(
OK guys i just tested with the above scrip but same issuses :-(
I get mail, i get photo in alarm folder, but the virtual sensor didn't work.
i confirm i didn't use short ARL but directly my script URL.
I test from a production server (where alla my e-shop and Wordpress are) and from my local web server, no way :-(
This script will work only if you open activation URL (http://the_script_location/virtual_sensor_enable.php?sensor_status=on) in browser, because expression
browser will redirect you to that URL and activate URL will be called (camera is not able to do that).
If you want it to work from camera then simply replace that line with
that way the server will call original virtual sensor URL.
This script will work only if you open activation URL (http://the_script_location/virtual_sensor_enable.php?sensor_status=on) in browser, because expression
browser will redirect you to that URL and activate URL will be called (camera is not able to do that).
If you want it to work from camera then simply replace that line with
that way the server will call original virtual sensor URL.
IT WORKS, thanks a lot Nenad.
so here is the working script:
IT WORKS, thanks a lot Nenad.
so here is the working script:
Great! Any recomendation of webserver that can be used? I normally use dropbox public folder but i gess it wouldnt work to call php scrips. Or alt. add synkee.com. Other pruposals?
Great! Any recomendation of webserver that can be used? I normally use dropbox public folder but i gess it wouldnt work to call php scrips. Or alt. add synkee.com. Other pruposals?
Lovely! It works for me too!
I now got the following set-up:
- Foscam 8910w camera
- Content server Dropbox
- Webserver Synkee (using Dropbox)
- Php script uploaded to Dropbox
- Synkee URL calling php uploaded to the ip camera config
- Rule created to trigger http request to pushing box for notification upon motion.
Lovely! It works for me too!
I now got the following set-up:
- Foscam 8910w camera
- Content server Dropbox
- Webserver Synkee (using Dropbox)
- Php script uploaded to Dropbox
- Synkee URL calling php uploaded to the ip camera config
- Rule created to trigger http request to pushing box for notification upon motion.
here is a tuto (in french) explainign how to host pph script in a raspberry:
http://maison-de-geek.com/2013/06/tuto-heberger-les-scripts-php-sur-son-raspberry/
here is a tuto (in french) explainign how to host pph script in a raspberry:
http://maison-de-geek.com/2013/06/tuto-heberger-les-scripts-php-sur-son-raspberry/
I created a account in "http://www.alwaysdata.com" to create a web page (free), then I just uploaded (through ftp) a file named index.php in the directory www. (I deleted the original index.html)
In file index.php I put the script, or simply this:
<?php
$activate_URL = "https://my.zipato....=TRUE";
file_get_contents($activate_URL);
?>
Then, I put in my Foscam camera, the url of the new web (http://xxxx.alwaysdata.net/) where xxxx is my created account.
It works fine!!
(But zipato should do more easy that a ip camera could trigger something when a photo was uptoaded, or simply do shorter the url of sensor activation.)
I created a account in "http://www.alwaysdata.com" to create a web page (free), then I just uploaded (through ftp) a file named index.php in the directory www. (I deleted the original index.html)
In file index.php I put the script, or simply this:
<?php
$activate_URL = "https://my.zipato....=TRUE";
file_get_contents($activate_URL);
?>
Then, I put in my Foscam camera, the url of the new web (http://xxxx.alwaysdata.net/) where xxxx is my created account.
It works fine!!
(But zipato should do more easy that a ip camera could trigger something when a photo was uptoaded, or simply do shorter the url of sensor activation.)
Replies have been locked on this page!