Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

Embedded web cam and DDNS

Hardware/software/hints and tips/discussion/webcam links etc
User avatar
andrew_sinclair
Posts: 85
Joined: Thu 04 Nov 2010 8:15 pm
Weather Station: Davis VP2 Plus c/w DFARS
Operating System: Buster rPi
Location: Cheddar, Somerset
Contact:

Embedded web cam and DDNS

Post by andrew_sinclair »

Hello,

I have been struggling for a while to display my Foscam web cam embedded into my web page using a no-ip DDNS. No problem at all web I add the actual IP address e.g.

<img src="http://86.135.81.122:2478/CGIProxy.fcgi ... 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' />

Works fine...but

<img src="http://cheddarweatherwebcam.no-ip.org/C ... 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' />

Renders as a broken link.

Although if I type http://cheddarweathercam.no-ip.org/CGIP ... visitor&t= into my browser it works fine.

Advice welcomed.

Regards

Andrew
Windy: f065d04a
User avatar
vaggos
Posts: 160
Joined: Sat 06 Feb 2010 7:00 pm
Weather Station: PROWEATHER STATION 1080
Operating System: XP SP3, win7, Win10
Location: Acharnes Athens Greece
Contact:

Re: Embedded web cam and DDNS

Post by vaggos »

As i can see you forgot this :2478
It must be:

Code: Select all

<img src="http://cheddarweatherwebcam.no-ip.org:2478/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' />
But for better results, look at this: http://foscam.us/forum/showing-secure-m ... t8721.html
I have 5 cams with that simple script.
Image
Acharnes Athens Greece Meteo station
http://www.meteoacharnes.gr
https://weather.meteoacharnes.gr/
Thanks Sandaysoft
User avatar
andrew_sinclair
Posts: 85
Joined: Thu 04 Nov 2010 8:15 pm
Weather Station: Davis VP2 Plus c/w DFARS
Operating System: Buster rPi
Location: Cheddar, Somerset
Contact:

Re: Embedded web cam and DDNS

Post by andrew_sinclair »

Hello vaggos,

Thanks for your response. I tried adding :2478 but unfortunately it had the same effect, i.e. renders a broken link. I think I'll try the Foscam US site.
Windy: f065d04a
User avatar
vaggos
Posts: 160
Joined: Sat 06 Feb 2010 7:00 pm
Weather Station: PROWEATHER STATION 1080
Operating System: XP SP3, win7, Win10
Location: Acharnes Athens Greece
Contact:

Re: Embedded web cam and DDNS

Post by vaggos »

Your link http://cheddarweatherwebcam.no-ip.org:2478 its not working as i saw. Did you add cheddarweatherwebcam.no-ip.org to your router to Auto update every time you change IP. You can put it also to your ddns Server on your camera.
Image
Acharnes Athens Greece Meteo station
http://www.meteoacharnes.gr
https://weather.meteoacharnes.gr/
Thanks Sandaysoft
User avatar
andrew_sinclair
Posts: 85
Joined: Thu 04 Nov 2010 8:15 pm
Weather Station: Davis VP2 Plus c/w DFARS
Operating System: Buster rPi
Location: Cheddar, Somerset
Contact:

Re: Embedded web cam and DDNS

Post by andrew_sinclair »

Yes, I have added this to my router and also to the widget that no-ip.org provide to do the upload and also to the camera s/w. When I inspect the web par elements it seems that the request is timing out...not sure what this means
Windy: f065d04a
User avatar
vaggos
Posts: 160
Joined: Sat 06 Feb 2010 7:00 pm
Weather Station: PROWEATHER STATION 1080
Operating System: XP SP3, win7, Win10
Location: Acharnes Athens Greece
Contact:

Re: Embedded web cam and DDNS

Post by vaggos »

The link http://cheddarweatherwebcam.no-ip.org:2478/ isn't working. Try to manual update it.
Image
Acharnes Athens Greece Meteo station
http://www.meteoacharnes.gr
https://weather.meteoacharnes.gr/
Thanks Sandaysoft
User avatar
vaggos
Posts: 160
Joined: Sat 06 Feb 2010 7:00 pm
Weather Station: PROWEATHER STATION 1080
Operating System: XP SP3, win7, Win10
Location: Acharnes Athens Greece
Contact:

Re: Embedded web cam and DDNS

Post by vaggos »

And double check if the settings ar correct. User name, password kai your ddns name.
Image
Acharnes Athens Greece Meteo station
http://www.meteoacharnes.gr
https://weather.meteoacharnes.gr/
Thanks Sandaysoft
User avatar
andrew_sinclair
Posts: 85
Joined: Thu 04 Nov 2010 8:15 pm
Weather Station: Davis VP2 Plus c/w DFARS
Operating System: Buster rPi
Location: Cheddar, Somerset
Contact:

Re: Embedded web cam and DDNS

Post by andrew_sinclair »

OK, doubled checked everything and found an error. The no-ip domain was typed incorrectly, it should be

http://cheddarweathercam.no-ip.org

I have checked this and when I type this into the browser bar it works fine. I have changed the code to be

<img src="http://cheddarweathercam.no-ip.org/CGIP ... 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' />

Just checking to see if that works...
Windy: f065d04a
User avatar
vaggos
Posts: 160
Joined: Sat 06 Feb 2010 7:00 pm
Weather Station: PROWEATHER STATION 1080
Operating System: XP SP3, win7, Win10
Location: Acharnes Athens Greece
Contact:

Re: Embedded web cam and DDNS

Post by vaggos »

Again the http://cheddarweathercam.no-ip.org:2478/ is not working. You forget the port again in the script.
Image
Acharnes Athens Greece Meteo station
http://www.meteoacharnes.gr
https://weather.meteoacharnes.gr/
Thanks Sandaysoft
User avatar
vaggos
Posts: 160
Joined: Sat 06 Feb 2010 7:00 pm
Weather Station: PROWEATHER STATION 1080
Operating System: XP SP3, win7, Win10
Location: Acharnes Athens Greece
Contact:

Re: Embedded web cam and DDNS

Post by vaggos »

Check fton no-ip if your ddns name obtain your IP.
Image
Acharnes Athens Greece Meteo station
http://www.meteoacharnes.gr
https://weather.meteoacharnes.gr/
Thanks Sandaysoft
User avatar
andrew_sinclair
Posts: 85
Joined: Thu 04 Nov 2010 8:15 pm
Weather Station: Davis VP2 Plus c/w DFARS
Operating System: Buster rPi
Location: Cheddar, Somerset
Contact:

Re: Embedded web cam and DDNS

Post by andrew_sinclair »

:oops:

Yes, you are correct. The code now reads

<img src="http://cheddarweathercam.no-ip.org:2478 ... 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' /> </p>
<table width="100%" border="0" cellpadding="0" cellspacing="0">

Just uploading the IndexT file now...
Windy: f065d04a
User avatar
vaggos
Posts: 160
Joined: Sat 06 Feb 2010 7:00 pm
Weather Station: PROWEATHER STATION 1080
Operating System: XP SP3, win7, Win10
Location: Acharnes Athens Greece
Contact:

Re: Embedded web cam and DDNS

Post by vaggos »

you don't have port 2478. You have the 80. Now its working
Image
Acharnes Athens Greece Meteo station
http://www.meteoacharnes.gr
https://weather.meteoacharnes.gr/
Thanks Sandaysoft
User avatar
andrew_sinclair
Posts: 85
Joined: Thu 04 Nov 2010 8:15 pm
Weather Station: Davis VP2 Plus c/w DFARS
Operating System: Buster rPi
Location: Cheddar, Somerset
Contact:

Re: Embedded web cam and DDNS

Post by andrew_sinclair »

OK, I think it is working, just checking that it works when embedded in the web page.
Windy: f065d04a
User avatar
vaggos
Posts: 160
Joined: Sat 06 Feb 2010 7:00 pm
Weather Station: PROWEATHER STATION 1080
Operating System: XP SP3, win7, Win10
Location: Acharnes Athens Greece
Contact:

Re: Embedded web cam and DDNS

Post by vaggos »

Now you have

Code: Select all

http://cheddarweathercam.no-ip.org:8080/CGIProxy.fcgi?cmd=snapPicture2&usr=visitor&pwd=visitor&t=
Do it

Code: Select all

http://cheddarweathercam.no-ip.org:80/CGIProxy.fcgi?cmd=snapPicture2&usr=visitor&pwd=visitor&t=
Image
Acharnes Athens Greece Meteo station
http://www.meteoacharnes.gr
https://weather.meteoacharnes.gr/
Thanks Sandaysoft
User avatar
andrew_sinclair
Posts: 85
Joined: Thu 04 Nov 2010 8:15 pm
Weather Station: Davis VP2 Plus c/w DFARS
Operating System: Buster rPi
Location: Cheddar, Somerset
Contact:

Re: Embedded web cam and DDNS

Post by andrew_sinclair »

Windy: f065d04a
Post Reply