Go to https://www.wunderground.com/weather-radar/
Find your location in the drop down menu. Choose the closest region, then the station.
The map will then reset to the station.
You can adjust the parameters below the map to your taste. You can adjust them later in the url.
Once your satified, hit the “Save Image”.
A new window should open, copy the url.
Is there any way to remove the camera feed’s label that overlays the radar image? If I omit the name value it just displays “Generic Camera” or whatever. If I just leave name field blank, it doesn’t compile. I guess I could just make it a period, but it’d still have the dark bar at the bottom.
I thought I might share my toying with this type of approach with the Australian BOM radar images. I wasn’t able find a url that had the wanted images (although I am sure it exists) as BOM seem to provide the png’s in transparent layer format. So wanting to play a little with ImageMagick I installed the package and created a quick bash script. I am sure the python gurus can do better with a more eloquent script.
get_radar_img.sh
#!/bin/bash
#Config Variables
ID="IDR713"
iqty=5
img_out="/home/homeassistant/.homeassistant/satimgs/"
#Change to the images directory
cd $img_out
#Get the background images
wget -q 'ftp://ftp.bom.gov.au/anon/gen/radar_transparencies/'${ID}'.background.png'
wget -q 'ftp://ftp.bom.gov.au/anon/gen/radar_transparencies/'${ID}'.locations.png'
#get the $iqty most recent images quietly
curl --silent --list-only ftp.bom.gov.au/anon/gen/radar/|grep $ID.T|tail -$iqty|xargs -i wget -q 'ftp://ftp.bom.gov.au/anon/gen/radar/{}'
#Processes the images
convert -layers flatten -dispose none $ID.background.png $ID.locations.png -dispose previous $ID.T*.png -set delay 75 -loop 0 radar_$ID.gif
#Clean up temp files
rm $ID*
I then add an automation to grab and process the images on a regular (20 mins??) basis. This is the downside of this approach as I am downloading even when I am not using them. It takes about 5+ secs to download and process for me which was a bit laggy to call the script on page load.
I then just added a camera.local_file to the appropriate group and all was well. There are still a couple of rough edges like the ImageMagick command is not quite right but I will tidy that up when I get a chance. BTW: You can easily change the number of images in the loop, size of the images, type of background overlays. This is really flexible in how the images look.
Thanks @tinglis1. I was able to find still images (png’s etc) but couldn’t find a link to the animated gifs so decided to make my own. As I mentioned it was just as much an excuse to play with ImageMagick.
@aelg305 Of course. Everything you need should be in the post I made above. If you need a hand just let me know. BTW: The ImageMagik line is not 100% but I have not had a chance to get back to it yet.