asfeniso.blogg.se

Geektool scripts weather
Geektool scripts weather






geektool scripts weather
  1. #GEEKTOOL SCRIPTS WEATHER HOW TO#
  2. #GEEKTOOL SCRIPTS WEATHER INSTALL#
  3. #GEEKTOOL SCRIPTS WEATHER UPDATE#

The alerts one is a work in progress, atm it just uses a red icons for an alert, and transparent if there isn't one.

#GEEKTOOL SCRIPTS WEATHER UPDATE#

Lastly, if you want to change the icons, then you can update the urls for the themes. It will have the RSS icon, and say ATOM: Weather | Alert, you want the alert. If you want it in Imperial, either change the C to an F, or omit it all together.Īs for the Environment Canada address, go to, select your nearest city, and then go to near the bottom of the page. Also note the u=c, that means Yahoo sends me the information is Celcius/Metric.

#GEEKTOOL SCRIPTS WEATHER HOW TO#

For Yahoo, refer to for how to find your specific WOEID. Second thing is update yahoo_url and gcweather_url to your locations. Obviously, first thing you will need to do is update all the paths to your location. Lunar_temp_image = '/Users/Ryoken/Documents/GeekTool/MyWeather/l_temp.png'Īlert_temp_image = '/Users/Ryoken/Documents/GeekTool/MyWeather/a_temp.png'

geektool scripts weather

Temp_image = '/Users/Ryoken/Documents/GeekTool/MyWeather/w_temp.png' Lunar_theme_dir = '/Users/Ryoken/Documents/GeekTool/MyWeather/Icons/LunarWhite/'Īlert_theme_dir = '/Users/Ryoken/Documents/GeekTool/MyWeather/Icons/Alerts/' Theme_dir = '/Users/Ryoken/Documents/GeekTool/MyWeather/Icons/FlatWhite/' Gcweather_cache = '/Users/Ryoken/Documents/GeekTool/MyWeather/gcw_temp.xml' Weather_cache = '/Users/Ryoken/Documents/GeekTool/MyWeather/w_temp.xml' Images link to w_temp.png, l_temp.png, and a_temp.png (Weather Conditions, Lunar Cycle, and Alerts) and are updated regularly. Though pasting the contents of each file into their own script windows should work too. I personally run each script individually in their own script boxes through the code: Below I will go through some of the changes that need to be made. Included in this zip is all the scripts, the images that I used ( Weather icons are FlatWhite, from ), and my current cached weather. Unless you use something else, in which case ignore this.

#GEEKTOOL SCRIPTS WEATHER INSTALL#

You will need to install this as root in terminal (or other ways if you know what you are doing. I have limited bandwidth, sometimes caps on usage, every little bit helps. This is to minimize the number of times I'm having to hit external servers, and pull data. The other files then, if needed, pull from these cached XML files to extract the information they need. It also calculates the lunar cycle, and copies that image. It then checks these files to copy the correct weather conditions image, and if needed, an alert image to the temp images. The way mine works is a single main file, master.py, downloads the the XML feeds from Yahoo and Environment Canada and saves them. The alert part only works for Canadians, as it uses Environment Canada's RSS to grab the alerts (not surprising, they don't care about other countries :p )

geektool scripts weather

The main part of the weather code uses Yahoo's XML feed, and as such should work for everyone. There was some interest when I posted my desktop, so I figure I'll post the code for anyone to be able to take advantage of. I wrote what is mostly my own weather code for geektool, cause I wasn't satisfied with any of the existing ones.








Geektool scripts weather