Page 2 of 2

Re: Embedded web cam and DDNS

Posted: Mon 12 Jan 2015 9:42 pm
by vaggos
All the script with port 80.

Code: Select all

<img src="httP://cheddarweathercam.no-ip.org:80/CGIProxy.fcgi?cmd=snapPicture2&usr=visitor&pwd=visitor&t=" width="100%" onload='setTimeout(function() {src = src.substring(0, (src.lastIndexOf("t=")+2))+(new Date()).getTime()}, 1800000)' onerror='setTimeout(function() {src = src.substring(0, (src.lastIndexOf("t=")+2))+(new Date()).getTime()}, 5000)' alt='cheddarweather web cam' />

Re: Embedded web cam and DDNS

Posted: Mon 12 Jan 2015 9:50 pm
by andrew_sinclair
Many thanks, I will try that. Thanks also for your patience!

Re: Embedded web cam and DDNS

Posted: Mon 12 Jan 2015 9:52 pm
by vaggos
This http://cheddarweathercam.no-ip.org:80 and of course this http://cheddarweathercam.no-ip.org is working. But you have also to port forward yous static ip of your cam to this port. It will better if you port forward it to another port.
Check again the script. It must be like this:

Code: Select all

<img src="http://DDNSorISPIPAddress:PortForCamera/CGIProxy.fcgi?cmd=snapPicture2&usr=admin&pwd=YourPassword&t=" onload='setTimeout(function() {src = src.substring(0, (src.lastIndexOf("t=")+2))+(new Date()).getTime()}, 1000)' onerror='setTimeout(function() {src = src.substring(0, (src.lastIndexOf("t=")+2))+(new Date()).getTime()}, 5000)' alt='' />

Re: Embedded web cam and DDNS

Posted: Mon 12 Jan 2015 9:53 pm
by vaggos
your wellcome.
But try the link in foscam i gave you before. Its much better.

Re: Embedded web cam and DDNS

Posted: Mon 12 Jan 2015 10:12 pm
by andrew_sinclair
I have tried the link you sent me and this will work better I am sure. Now all I have to do is remove the spider who builds a web across the lens of the camera :lol: :evil: :twisted: :groan: :bash:

Anyway, I am so grateful :clap:

Re: Embedded web cam and DDNS

Posted: Mon 12 Jan 2015 10:26 pm
by andrew_sinclair
One thing I have noticed...when using no-ip.org DDNS service there is the option to "Mask URL" which stops my actual IP address being visible in the location bar. Ideally I would like this to be masked. However when masked the link is broken in the embedded web cam frame and when not masked it works fine. I think this make be at the root of my problem. I just noticed it when amending the code as suggested.

Re: Embedded web cam and DDNS

Posted: Tue 13 Jan 2015 7:11 am
by vaggos
Its not so Ideal to show your ip. Even you use cheddarweathercam.no-ip.org, everyone can ping this and find your ip. For this reason i suggest to you to use the security script for foscam or any other script with PHP.