

See the API documentation to get a free key, and for more details about available API endpoints.

Without an API key, WWW::Wunderground::API can only get the current weather conditions.

If you'd like to scrape from Weather Underground rather than use the API, see Weather::Underground. Weather Underground discontinuation notice RT: CPAN's request tracker (report bugs here) You can find documentation for this module with the perldoc command. SOURCEīetter yet, fork the repository on github and send a pull request: SUPPORT I will be notified, and then you'll automatically be notified of progress on your bug as I make changes. Please report any bugs or feature requests to bug-or through the web interface at. If no api_key is specified it will be set to xml and only basic weather conditions will be available. My $wun = WWW::Wunderground::API->new('KIAD') Ĭache => Cache::FileCache->new( api_type()ĭefaults to json. Let me know if anyone makes some improvements as I am a absolute HA nube (2 weeks and counting).My $wun = WWW::Wunderground::API->new('Fairfax, VA') 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.
