Weather — Fetch weather data by ZIP code

Commands

.weather <location>
.w <location>

Fetch weather for a location. If no location is passed, the user’s preferred location will be used.

Example: .w 95051

.setloc <location>

Set your preferred location

Example: .setloc Rochester, NY, .setloc 14623

.wunit <type>

Set your preference between fahrenheit or celsius.

Example: .setloc F

Class Reference

exception pyircbot.modules.Weather.LocationException[source]

Bases: Exception

exception pyircbot.modules.Weather.LocationNotSpecificException(alternates)[source]

Bases: pyircbot.modules.Weather.LocationException

class pyircbot.modules.Weather.Weather(bot, moduleName)[source]

Bases: pyircbot.modulebase.ModuleBase

alternates_to_str(alternates)[source]
cmd_setloc(msg, cmd)[source]
cmd_weather(msg, cmd)[source]
cmd_wunit(msg, cmd)[source]
deg_to_arrow(deg)[source]
getWeather(zipcode, unit=None)[source]
icon2emoji(icon)[source]
send_weather(target, hilight, location, units=None)[source]
shorten_windstr(windstr)[source]