programming/Jabber » Weather bot

Use Jabber to get local weather conditions and forecasts. Currently, it supports fetching weather data from:

It should be easy to write your own fetchers to use other weather sources.

Requires xmpppy and feedparser.

Set jid, server, port, password, and spooldir in the configuration file. spooldir must be a directory writable by the bot. In the configuration file, add a section for each JID and resource that you want. The section should be named <name>/<resource>, where <name> is the part of the JID before the @ sign.

Screenshot

[to come]

Running Bots

Let me know if you are running this bot.

cityJIDweather source(s)
Edmonton, AB, CAedmonton@weather.uhoreg.caThe Weather Network
Hamilton, ON, CAhamilton@weather.uhoreg.caThe Weather Network
Vancouver, BC, CAvancouver@weather.uhoreg.caThe Weather Network
Waterloo, ON, CAwaterloo@weather.uhoreg.caWeather Underground, The Weather Network

Source Code

You can obtain the source code via git:

git clone http://vcs.uhoreg.ca/git/jabberbots.git/

or browse the git repository.

Or you con download weatherbot.py, and a sample configuration file.

License

weatherbot is distributed under the terms of the GNU GPL version 2 or later.

This page was made from only the finest electrons.

Last updated 2010-02-25.

© Hubert Chathi <><