I then just added a camera.local_file to the appropriate group and all was well. It takes about 5+ secs to download and process for me which was a bit laggy to call the script on page load. This is the downside of this approach as I am downloading even when I am not using them. I then add an automation to grab and process the images on a regular (20 mins?) basis. #get the $iqty most recent images quietlyĬurl -silent -list-only /anon/gen/radar/|grep $ID.T|tail -$iqty|xargs -i wget -q ''Ĭonvert -layers flatten -dispose none $ID.background.png $ID.locations.png -dispose previous $ID.T*.png -set delay 75 -loop 0 radar_$ID.gif Img_out="/home/homeassistant/.homeassistant/satimgs/" ![]() I am sure the python gurus can do better with a more eloquent script. So wanting to play a little with ImageMagick I installed the package and created a quick bash script. 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. I thought I might share my toying with this type of approach with the Australian BOM radar images.
0 Comments
Leave a Reply. |