

Change this code for tag in data_structure:

Open the pywapi.py file and scroll to the bottom of the get_weather_from_noaa function. Until then, follow these instructions to get a working version of pywapi:ĭownload the tarball to a convenient location and extract the code. I’ve described the bug and provided my fix on the pywapi Issues page-perhaps the fix will be rolled into the official pywapi distribution soon. Fortunately, this bug is easy to fix before installation. The current version of pywapi, version 0.2.0, has a bug that causes it to fail when accessing NOAA data.

The Gismeteo service is in Russian, so I can’t give any advice on using it. Google doesn’t have a weather page, per se, but it does provide weather info through an API. It provides a simple Pythonic interface to weather data supplied by The pywapi library is the creation of Eugene Kaznacheev. I’ve rewritten my GeekTool script to use this new library. Now there’s a new Python weather library, called pywapi, that simplifies the process of getting the data and extends it beyond just NOAA’s weather stations. I like having GeekTool display the current weather on my desktop, and I’ve written a script that gets the information from a NOAA website and formats it for GeekTool.
#Geektool weather scripts install
Just install it as is using setup.py, and the weathertext script will work fine. The current pywapi.py, version 0.2.1, has the bug fix described in this post, so there’s no need to edit it.
