Welcome to the Cumulus Support forum.
Latest Cumulus MX V4 release 4.0.1 (build 4023) - 16 May 2024
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 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
Latest Cumulus MX V4 release 4.0.1 (build 4023) - 16 May 2024
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 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
RTSP and RPi Bookworm
-
- Posts: 202
- Joined: Fri 04 Dec 2020 4:35 pm
- Weather Station: Davis VP2 (Cabled)
- Operating System: RPi 4 (Bookworm)
- Contact:
RTSP and RPi Bookworm
Sadly it seems that VLC on the RPi does not support RTSP, when using Bookworm os.
My old RPi (Buster) uses the RTSP stream in VLC to create my snapshots of the current weather. That still works ok (but very processor intensive).
With my new RPi (Bookworm) I’ll have to work something out to get my Hikvision camera images onto my IONOS host.
The inbuilt snapshot facility of the Hikvision timestamps every image, so preventing linking to my web page.
Just a heads up if anyone is in the same boat.
V4 running well on the new RPi though.
Martyn
My old RPi (Buster) uses the RTSP stream in VLC to create my snapshots of the current weather. That still works ok (but very processor intensive).
With my new RPi (Bookworm) I’ll have to work something out to get my Hikvision camera images onto my IONOS host.
The inbuilt snapshot facility of the Hikvision timestamps every image, so preventing linking to my web page.
Just a heads up if anyone is in the same boat.
V4 running well on the new RPi though.
Martyn
-
- Posts: 364
- Joined: Tue 16 Aug 2022 8:01 pm
- Weather Station: Ecowitt 2551
- Operating System: Raspberry Pi5 Debian Bookworm
- Location: Stewarton, East Ayrshire UK
- Contact:
Re: RTSP and RPi Bookworm
I found this on an unrelated forum
not including RTSP was a decision for Debian only - so if you remove VLC that's included in bookworm - you can install it via snap and it should work??
not including RTSP was a decision for Debian only - so if you remove VLC that's included in bookworm - you can install it via snap and it should work??
There was a Debian policy decision that will cause Debian VLC build to not stream rtsp, you have to use vlc as a flat-pack or snap to get around that if you plan on using VLC to test your cameras.
Ian.
http://www.StewartonWeather.com
Containerised Cumulus[MX] 3.28.0 (build: 3269) ● CumulusUtils Version 6.23.0● Ecowitt 2551/WH65/T&HP/WH57/WH45/3x WH51 ● Pi 5 8GB ● Debian Bookworm ● Ubuntu Server Host
http://www.StewartonWeather.com
Containerised Cumulus[MX] 3.28.0 (build: 3269) ● CumulusUtils Version 6.23.0● Ecowitt 2551/WH65/T&HP/WH57/WH45/3x WH51 ● Pi 5 8GB ● Debian Bookworm ● Ubuntu Server Host
- ConligWX
- Posts: 1657
- Joined: Mon 19 May 2014 10:45 pm
- Weather Station: Davis vPro2+ w/DFARS + AirLink
- Operating System: Ubuntu 24.04 LTS
- Location: Bangor, NI
- Contact:
Re: RTSP and RPi Bookworm
Use something like ffmpeg's "convert" That's what I do. Grabs a snapshot adds layers and text etc then posts to my website.
I can post the script if needed.
I can post the script if needed.
Regards Simon
https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir • CumulusMX v4.0.0
https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir • CumulusMX v4.0.0
-
- Posts: 202
- Joined: Fri 04 Dec 2020 4:35 pm
- Weather Station: Davis VP2 (Cabled)
- Operating System: RPi 4 (Bookworm)
- Contact:
Re: RTSP and RPi Bookworm
Thanks Ian, looks like a good (easy) option.Nossie wrote: ↑Wed 17 Apr 2024 4:25 pm I found this on an unrelated forum
not including RTSP was a decision for Debian only - so if you remove VLC that's included in bookworm - you can install it via snap and it should work??
There was a Debian policy decision that will cause Debian VLC build to not stream rtsp, you have to use vlc as a flat-pack or snap to get around that if you plan on using VLC to test your cameras.
Martyn
-
- Posts: 202
- Joined: Fri 04 Dec 2020 4:35 pm
- Weather Station: Davis VP2 (Cabled)
- Operating System: RPi 4 (Bookworm)
- Contact:
Re: RTSP and RPi Bookworm
Now that sounds interesting. I’m not very technical on coding matters, but would welcome an alternative to consider.
Thanks for the offer.
Martyn
- ConligWX
- Posts: 1657
- Joined: Mon 19 May 2014 10:45 pm
- Weather Station: Davis vPro2+ w/DFARS + AirLink
- Operating System: Ubuntu 24.04 LTS
- Location: Bangor, NI
- Contact:
Re: RTSP and RPi Bookworm
so I use ffmpeg to grab the screen capture of an rtsp feed and save it to a jpg image.
I process a camdataT.txt with cumulusmx and save to camdata.txt (used to show values on the final image)
I then use imagemagick's "convert" to add overlays and text to top and bottom of image and save it to another jpg that is used on my website.
this script is run every minute and updated text applied too to final image. you dont have to run every minute but I do. thats just called using a cronjob.
webcam.sh file below. all files, paths, IPs etc are fictitious
image is available 24/7 but its night time here so image is not worth showing at present. I'll post an image tomorrow of the final image.
you can also use ffmpeg to create a timelapse video is your want to with another script I have.
I process a camdataT.txt with cumulusmx and save to camdata.txt (used to show values on the final image)
Code: Select all
Temp: <#temp>°C • Pressure: <#press> hPa • Hum: <#hum>% • Wind: <#wspeed> mph <#currentwdir> • Rain: <#rfall>mm • UV Index: <#UV> • SolarRad: <#SolarRad> W/m² • CloudBase: <#cloudbase>
this script is run every minute and updated text applied too to final image. you dont have to run every minute but I do. thats just called using a cronjob.
Code: Select all
*/1 * * * * /share/scripts/webcam.sh
Code: Select all
#!/bin/sh
#
#set variable yday to be like 20100208
#
#tday=$(date -d today +%Y%m%d%H%M%S);
#stamp=$(date '+DATE: %d/%m/%y%nTIME:%H:%M:%S');
tday=$(date +%Y%m%d%H%M%S);
#stamp=$(date +%Y%m%d);
# get weather image
/opt/ffmpeg/ffmpeg -rtsp_transport tcp -i rtsps://192.168.1.22:5678/hYHihPWuoJzS5W0A?enableSrtp -vf scale=2688:1512 -frames 1 /share/weather/sky1.jpg -y;
# next 2 lines add weather info
testdata="$(/bin/cat /share/wx/camdata.txt)";
testdata1=`date +"%A %d-%b-%Y %R %Z"`;
# use Convert to add WX values and date etc to the image
/share/convert -fill RoyalBlue4 -draw "fill-opacity 0.4 rectangle 0 0 2688 30" \
-fill red -draw "fill-opacity 0.6 rectangle 0 31 2688 33" \
-fill RoyalBlue4 -draw "fill-opacity 0.7 rectangle 0 1482 2688 1512" \
-fill red -draw "fill-opacity 0.6 rectangle 0 1479 2688 1481" \
-fill white -pointsize 22 -font /share/ZFS21_DATA/db_backup/script/arialbold.ttf -draw "text 10,20 'Conlig Weather Station: $testdata1 • www.conligwx.org'" \
-fill yellow -pointsize 22 -draw "text 10,1507 '$testdata'" /share/wx/sky1.jpg /share/wx/skywebcam.jpg;
# convert image.jpg to 150kb for WUnderground
/share/convert /share/wx/skywebcam.jpg -define jpeg:extent=150kb /share/wx/image.jpg;
you can also use ffmpeg to create a timelapse video is your want to with another script I have.
Regards Simon
https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir • CumulusMX v4.0.0
https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir • CumulusMX v4.0.0
-
- Posts: 202
- Joined: Fri 04 Dec 2020 4:35 pm
- Weather Station: Davis VP2 (Cabled)
- Operating System: RPi 4 (Bookworm)
- Contact:
Re: RTSP and RPi Bookworm
Thanks for this. When I get time over the next couple of days I’ll see if I can get head round the code, and where to put it on the RPi.ConligWX wrote: ↑Wed 17 Apr 2024 9:23 pm so I use ffmpeg to grab the screen capture of an rtsp feed and save it to a jpg image.
I process a camdataT.txt with cumulusmx and save to camdata.txt (used to show values on the final image)
I then use imagemagick's "convert" to add overlays and text to top and bottom of image and save it to another jpg that is used on my website.Code: Select all
Temp: <#temp>°C • Pressure: <#press> hPa • Hum: <#hum>% • Wind: <#wspeed> mph <#currentwdir> • Rain: <#rfall>mm • UV Index: <#UV> • SolarRad: <#SolarRad> W/m² • CloudBase: <#cloudbase>
this script is run every minute and updated text applied too to final image. you dont have to run every minute but I do. thats just called using a cronjob.
webcam.sh file below. all files, paths, IPs etc are fictitiousCode: Select all
*/1 * * * * /share/scripts/webcam.sh
image is available 24/7 but its night time here so image is not worth showing at present. I'll post an image tomorrow of the final image.Code: Select all
#!/bin/sh # #set variable yday to be like 20100208 # #tday=$(date -d today +%Y%m%d%H%M%S); #stamp=$(date '+DATE: %d/%m/%y%nTIME:%H:%M:%S'); tday=$(date +%Y%m%d%H%M%S); #stamp=$(date +%Y%m%d); # get weather image /opt/ffmpeg/ffmpeg -rtsp_transport tcp -i rtsps://192.168.1.22:5678/hYHihPWuoJzS5W0A?enableSrtp -vf scale=2688:1512 -frames 1 /share/weather/sky1.jpg -y; # next 2 lines add weather info testdata="$(/bin/cat /share/wx/camdata.txt)"; testdata1=`date +"%A %d-%b-%Y %R %Z"`; # use Convert to add WX values and date etc to the image /share/convert -fill RoyalBlue4 -draw "fill-opacity 0.4 rectangle 0 0 2688 30" \ -fill red -draw "fill-opacity 0.6 rectangle 0 31 2688 33" \ -fill RoyalBlue4 -draw "fill-opacity 0.7 rectangle 0 1482 2688 1512" \ -fill red -draw "fill-opacity 0.6 rectangle 0 1479 2688 1481" \ -fill white -pointsize 22 -font /share/ZFS21_DATA/db_backup/script/arialbold.ttf -draw "text 10,20 'Conlig Weather Station: $testdata1 • www.conligwx.org'" \ -fill yellow -pointsize 22 -draw "text 10,1507 '$testdata'" /share/wx/sky1.jpg /share/wx/skywebcam.jpg; # convert image.jpg to 150kb for WUnderground /share/convert /share/wx/skywebcam.jpg -define jpeg:extent=150kb /share/wx/image.jpg;
you can also use ffmpeg to create a timelapse video is your want to with another script I have.
Many thanks
Martyn
-
- Posts: 202
- Joined: Fri 04 Dec 2020 4:35 pm
- Weather Station: Davis VP2 (Cabled)
- Operating System: RPi 4 (Bookworm)
- Contact:
Re: RTSP and RPi Bookworm
Presume I need to download ffmpeg to trial the code ?
Starting to amend the code for my setup. I assume this looks right so far?:
This to take the snapshot from my webcam (rtsp://admin:***************.***.*.**/streaming/channels/101) and send the image (still called sky1.jpg) to my desktop.
Thanks
Martyn
Starting to amend the code for my setup. I assume this looks right so far?:
This to take the snapshot from my webcam (rtsp://admin:***************.***.*.**/streaming/channels/101) and send the image (still called sky1.jpg) to my desktop.
Code: Select all
/opt/ffmpeg/ffmpeg -rtsp_transport tcp -i rtsp://admin:***************.***.*.**/streaming/channels/101 -vf scale=2688:1512 -frames 1 C:\Users\Desktop\sky1.jpg -y;
Thanks
Martyn
- ConligWX
- Posts: 1657
- Joined: Mon 19 May 2014 10:45 pm
- Weather Station: Davis vPro2+ w/DFARS + AirLink
- Operating System: Ubuntu 24.04 LTS
- Location: Bangor, NI
- Contact:
Re: RTSP and RPi Bookworm
yes you'll need to install ffmpeg unless it is already installed.
as to the path, yes that looks ok, though dependant on where ffmpeg is installed/symlinked.
as to the path, yes that looks ok, though dependant on where ffmpeg is installed/symlinked.
Regards Simon
https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir • CumulusMX v4.0.0
https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir • CumulusMX v4.0.0
-
- Posts: 202
- Joined: Fri 04 Dec 2020 4:35 pm
- Weather Station: Davis VP2 (Cabled)
- Operating System: RPi 4 (Bookworm)
- Contact:
Re: RTSP and RPi Bookworm
It appears that ‘ffmpeg’ is installed in RPi ‘Bookworm’.
However the code suggests that there should be a directory ‘ffmpeg’, within which there should be a file ‘ffmpeg’ (I presume that’s what’s inferred). Sadly that’s not the case. I have ‘/usr/bin/ffmpeg’ (file), ‘/usr/share/ffmpeg’ (directory but with no simple ‘ffmpeg’ file inside it), and ‘usr/share/man/man1/ffmpeg.1.gz’.
So when I try ‘/usr/bin/ffmpeg/ffmpeg (with the rest of the script for my webcam I get ‘Not a directory’. Understandable as there is no file in that location. Tried various alternatives but to no avail.
Will try again soon.
Martyn
- ConligWX
- Posts: 1657
- Joined: Mon 19 May 2014 10:45 pm
- Weather Station: Davis vPro2+ w/DFARS + AirLink
- Operating System: Ubuntu 24.04 LTS
- Location: Bangor, NI
- Contact:
Re: RTSP and RPi Bookworm
try using the find command.
if ffmpeg is a file here (/usr/bin/ffmpeg)
then use that as the command line
Code: Select all
find / -name ffmpeg
then use that as the command line
Code: Select all
/usr/bin/ffmpeg
Regards Simon
https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir • CumulusMX v4.0.0
https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir • CumulusMX v4.0.0
- ConligWX
- Posts: 1657
- Joined: Mon 19 May 2014 10:45 pm
- Weather Station: Davis vPro2+ w/DFARS + AirLink
- Operating System: Ubuntu 24.04 LTS
- Location: Bangor, NI
- Contact:
Re: RTSP and RPi Bookworm
here's my end result.
You do not have the required permissions to view the files attached to this post.
Regards Simon
https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir • CumulusMX v4.0.0
https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir • CumulusMX v4.0.0
-
- Posts: 202
- Joined: Fri 04 Dec 2020 4:35 pm
- Weather Station: Davis VP2 (Cabled)
- Operating System: RPi 4 (Bookworm)
- Contact:
Re: RTSP and RPi Bookworm
Running the command as sudo:
Code: Select all
pi2@blackberrypi:~ $ sudo find / -name ffmpeg
/usr/share/doc/ffmpeg
/usr/share/ffmpeg
/usr/share/lintian/overrides/ffmpeg
/usr/bin/ffmpeg
find: ‘/home/pi2/thinclient_drives’: Permission denied
find: ‘/run/user/1000/gvfs’: Permission denied
find: ‘/run/user/1000/doc’: Permission denied
pi2@blackberrypi:~ $
-
- Posts: 202
- Joined: Fri 04 Dec 2020 4:35 pm
- Weather Station: Davis VP2 (Cabled)
- Operating System: RPi 4 (Bookworm)
- Contact:
Re: RTSP and RPi Bookworm
Hmm nice, just what I'd like to do.
Thanks for your time
Martyn
- ConligWX
- Posts: 1657
- Joined: Mon 19 May 2014 10:45 pm
- Weather Station: Davis vPro2+ w/DFARS + AirLink
- Operating System: Ubuntu 24.04 LTS
- Location: Bangor, NI
- Contact:
Re: RTSP and RPi Bookworm
so if you type in the following command what do you get?Nottub wrote: ↑Thu 18 Apr 2024 7:28 pm Running the command as sudo:Code: Select all
pi2@blackberrypi:~ $ sudo find / -name ffmpeg /usr/share/doc/ffmpeg /usr/share/ffmpeg /usr/share/lintian/overrides/ffmpeg /usr/bin/ffmpeg find: ‘/home/pi2/thinclient_drives’: Permission denied find: ‘/run/user/1000/gvfs’: Permission denied find: ‘/run/user/1000/doc’: Permission denied pi2@blackberrypi:~ $
Code: Select all
/usr/bin/ffmpeg -version
Code: Select all
find / -name convert
Code: Select all
[~] # /usr/local/sbin/convert -version
Version: ImageMagick 6.9.4-8 Q16 x86_64 2024-02-20 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2016 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC
Delegates (built-in): bzlib jng jpeg png tiff
Regards Simon
https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir • CumulusMX v4.0.0
https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir • CumulusMX v4.0.0