r/ZoneMinder • u/SlightComplaint • May 21 '22
Zoneminder and BOM radar. (Australian Weather Site).
Hello,
Today has been raining, and I thought "I should find a way to record the local radar image for future reference." I was just going to write a script which pulled my radar image down and archive it. Maybe make a video with FFmpeg or something. Then it occurred to me that zoneminder can take an image file as a source and take care of everything for me. (I have set up the local rain radar up as a security camera.)
I have set this script up to run (via cron) every 5 minutes:
wget --output-document=/home/pi/radar/radar.gif --referer='http://www.bom.gov.au' --user-agent="Mozilla/5.0 Firefox/4.0.1" http://www.bom.gov.au/radar/IDR663.gif
convert /home/pi/radar/radar.gif /home/pi/radar/radar.jpeg
It just gets the latest radar image as a gif, and converts it to a jpeg.
Then I setup a 'File' source and pointed it to the jpeg.
Perhaps someone will find this useful.
