0

Fetch Weather and Crop Images: Script & Instructions

Thyamine 4 months ago in Media Tiles / Weather & Traffic updated by Terry (ActionTiles) (Co-Founder) 3 months ago 0

For anyone else who is interested, I also wanted to have weather displayed on my screen. Thanks to others on this site, I found that the local news station did have static URLs for the daily/local weather, so I could just add those to a media tile, and it worked fine.

However, the images had a lot of unused space, and on the tablet was hard to see. I also then found I didn't want a lot of the extra data, and decided to poke around. I ended up writing a script that copies the images down locally, then crops the images, and for one of them combines two images into a single image.

It's more complex than some people may want, but for those of you who like to tinker and hack at what we can do, you will probably appreciate it.

The general explanation is here: https://www.sleepyweim.com/2019/05/21/actiontiles-show-local-weather/

and if you want the script straight out, you can get it here: https://www.sleepyweim.com/2019/06/01/python-fetch-weather-for-actiontiles/

Enjoy!