![]() ![]() ![]() camera:įile_path: /home/homeassistant/.homeassistant/satimgs/radar_IDR713.gif This is really flexible in how the images look. BTW: You can easily change the number of images in the loop, size of the images, type of background overlays. 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. 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. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |