Previous to using MB Pro I used to run WD on a 24/7 PC with a USB Webcam that I could add to my weather page.
I am assuming that I would now need to purchase an IP camera. If this is correct can I please have some recommendations as to the type and how easy is it to post images via MB. Any help would be most appreciated for a UK user.
Webcam Advice
Moderator: Mattk
- ConligWX
- Platinum Boarder
- Posts: 329
- Joined: Wed Nov 14, 2018 12:48 pm
- Location: Conlig, Co. Down, UK
- Contact:
Re: Webcam Advice
This would really depend on your setup. do you have any server/pc/pi running 24/7
I my case, my camera is a DLINK wireless camera.
I use a NAS to host my website. Then NAS grabs my Camera image via a bash script and then adds overlay to top and bottom of the image.
The bottom of the image has weather data added to the overlay which Meteobridge has processed a template to create a text file that is added to the overlay.
I my case, my camera is a DLINK wireless camera.
I use a NAS to host my website. Then NAS grabs my Camera image via a bash script and then adds overlay to top and bottom of the image.
The bottom of the image has weather data added to the overlay which Meteobridge has processed a template to create a text file that is added to the overlay.
Regards Simon
https://www.conligwx.org/pws
https://www.conligwx.org/pws
Re: Webcam Advice
My current setup is without a PC 24/7. I do have a spare RPi3 but I have no idea what software might be needed for perhaps my USB webcam. I run a website via One.Com which has a MySQL setup for dealing with Meteotemplate. My knowledge is very basic so I don't really understand what you mean by server and bash? I saw references to an IP camera in MB. I don't necessarily require weather data on an overlay.ConligWX wrote: ↑Wed Dec 12, 2018 7:04 pm This would really depend on your setup. do you have any server/pc/pi running 24/7
I my case, my camera is a DLINK wireless camera.
I use a NAS to host my website. Then NAS grabs my Camera image via a bash script and then adds overlay to top and bottom of the image.
The bottom of the image has weather data added to the overlay which Meteobridge has processed a template to create a text file that is added to the overlay.
Re: Webcam Advice
Ubiquiti IP cameras are directly supported by Meteobridge. Others work as well, as long as you can provide a URL that return a still image as JPG.
Re: Webcam Advice
I have a TrendNet IP camera TV-IP422W which is quite old. It is wired to my Router.
Using this URL http://192.168.1.100:8080/cgi/jpg/image.cgi I can see a static image on my browser (Mac Safari).
Unfortunately it doesn't show a jpg file so I assume it cannot be integrated into MB Pro?
Using this URL http://192.168.1.100:8080/cgi/jpg/image.cgi I can see a static image on my browser (Mac Safari).
Unfortunately it doesn't show a jpg file so I assume it cannot be integrated into MB Pro?
Re: Webcam Advice
The path indicates it returns a JPG. Are you sure it will not return a jpg?
That you call a cgi script is not a problem, it is relevant what this returns when being evaluated.
That you call a cgi script is not a problem, it is relevant what this returns when being evaluated.
Re: Webcam Advice
It seems this TrendNet model doesn't produce a JPG or JEPG files according to various searches.
Looks like a new purchase is necessary

- ConligWX
- Platinum Boarder
- Posts: 329
- Joined: Wed Nov 14, 2018 12:48 pm
- Location: Conlig, Co. Down, UK
- Contact:
Re: Webcam Advice
are you sure?
my own ip camera DLINK DCS-932L uses a similar type URL
"http://<IP ADDRESS OF CAMERA>/cgi/jpg/image.cgi"
this is my script I use on a linux based NAS.
you could try using wget to grab the image at your URL
something like these 3 examples:
my own ip camera DLINK DCS-932L uses a similar type URL
"http://<IP ADDRESS OF CAMERA>/cgi/jpg/image.cgi"
this is my script I use on a linux based NAS.
Code: Select all
#!/bin/sh
#
#set variable yday to be like 20100208 for timestamp.
#
#tday=$(date -d today +%Y%m%d%H%M%S);
tday=$(date +%Y%m%d%H%M%S);
#stamp=$(date +%Y%m%d);
#
# get weather image
wget --auth-no-challenge --http-user=xxxxxxx --http-password=xxxxxxxxx "http://xxx.xx.xx.xx/cgi/jpg/image.cgi" -O "/share/htdocs/weather/sky1.jpg";
# add weather info etc - camdata is created by my own meteobridge template and creates camdata.txt
testdata="$(/bin/cat /share/htdocs/weather/camdata.txt)";
testdata1=`date +"%A %d-%b-%Y %R %Z"`;
# create layer for image. top and bottom of screen
/share/Qapache/bin/convert -fill RoyalBlue4 -draw "fill-opacity 0.4 rectangle 0 0 1280 25" \
-fill red -draw "fill-opacity 0.6 rectangle 0 26 1280 27" \
-fill RoyalBlue4 -draw "fill-opacity 0.7 rectangle 0 695 1280 720" \
-fill red -draw "fill-opacity 0.6 rectangle 0 693 1280 694" \
-fill white -pointsize 18 -font /share/db_backup/script/arialbold.ttf -draw "text 10,20 'Conlig Weather Station: $testdata1 • INEWTOWN23 • www.conligwx.org'" \
-fill yellow -pointsize 18 -draw "text 10,715 '$testdata'" /share/htdocs/weather/sky1.jpg /share/htdocs/weather/skywebcam.jpg
# convert image.jpg to 150kb for WUnderground
/share/Qapache/bin/convert /share/htdocs/weather/skywebcam.jpg -define jpeg:extent=150kb /share/htdocs/weather/image.jpg
# ftp webcam to wunderground
/share/Entware/bin/lftp -e 'put /share/htdocs/weather/image.jpg; bye' -u camusername,password webcam.wunderground.com -d
something like these 3 examples:
Code: Select all
wget "http://192.168.1.100:8080/cgi/jpg/image.cgi" -O "/share/htdocs/weather/sky1.jpg"
wget --http-user=xxxxxxx --http-password=xxxxxxxxx "http://192.168.1.100:8080/cgi/jpg/image.cgi" -O "/share/htdocs/weather/sky1.jpg"
wget --auth-no-challenge --http-user=xxxxxxx --http-password=xxxxxxxxx "http://192.168.1.100:8080/cgi/jpg/image.cgi" -O "/share/htdocs/weather/sky1.jpg"
Regards Simon
https://www.conligwx.org/pws
https://www.conligwx.org/pws