mirror of
https://github.com/jlu5/SupyPlugins.git
synced 2025-04-26 21:11:14 -05:00
Weather: Update README files
This commit is contained in:
parent
a0ddd8e309
commit
f1e914da04
@ -1,6 +1,7 @@
|
|||||||
The MIT License (MIT)
|
The MIT License (MIT)
|
||||||
|
|
||||||
Copyright (c) 2014 spline
|
Copyright (c) 2014 spline
|
||||||
|
Copyright (c) 2014-2015 James Lu
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||||
this software and associated documentation files (the "Software"), to deal in
|
this software and associated documentation files (the "Software"), to deal in
|
||||||
|
56
README.md
56
README.md
@ -2,56 +2,33 @@
|
|||||||
|
|
||||||
# Limnoria plugin for Weather Underground (GLolol's fork)
|
# Limnoria plugin for Weather Underground (GLolol's fork)
|
||||||
|
|
||||||
## Introduction
|
## Installation
|
||||||
|
|
||||||
I made this plugin because quite a few Weather plugins didn't work well and WunderWeather, which uses
|
You will need a working Limnoria bot on Python 2.7/3.2+ for this to work.
|
||||||
this API, is on their older XML api that they don't have documented anymore and, one would assume, will
|
|
||||||
be deprecated at some point.
|
|
||||||
|
|
||||||
## Install
|
1) Go into your Limnoria plugin dir, usually `~/supybot/plugins` and run:
|
||||||
|
|
||||||
You will need a working Limnoria bot on Python 2.7/3.4 for this to work.
|
|
||||||
|
|
||||||
Go into your Limnoria plugin dir, usually `~/supybot/plugins` and run:
|
|
||||||
|
|
||||||
```
|
```
|
||||||
git clone https://github.com/GLolol/Supybot-Weather
|
git clone https://github.com/GLolol/Supybot-Weather
|
||||||
```
|
```
|
||||||
|
|
||||||
To install additional requirements, run:
|
Alternatively, you can fetch this plugin (albeit a slightly older version) via Limnoria's PluginDownloader using: `install GLolol Weather`.
|
||||||
|
|
||||||
```
|
2) Load the plugin:
|
||||||
pip install -r requirements.txt
|
|
||||||
```
|
|
||||||
|
|
||||||
or if you don't have or don't want to use root,
|
|
||||||
|
|
||||||
```
|
|
||||||
pip install -r requirements.txt --user
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
Next, load the plugin:
|
|
||||||
|
|
||||||
```
|
```
|
||||||
/msg bot load Weather
|
/msg bot load Weather
|
||||||
```
|
```
|
||||||
|
|
||||||
[Fetch an API key for Wunderground](http://www.wunderground.com/weather/api/) by signing up (free).
|
3) [Fetch an API key from Wunderground](http://www.wunderground.com/weather/api/) by signing up (free).
|
||||||
Once getting this key, you will need to set it on your bot before things will work.
|
Once getting this key, you will need to set it on your bot before things will work.
|
||||||
Reload once you perform this operation to start using it.
|
|
||||||
|
|
||||||
```
|
```
|
||||||
/msg bot config plugins.Weather.apiKey <APIKEY>
|
/msg <yourbot> config plugins.Weather.apiKey <APIKEY>
|
||||||
```
|
```
|
||||||
|
|
||||||
Now, reload the bot and you should be good to go:
|
4) *Optional:* There are some config variables that can be set for the bot. They mainly control output stuff.
|
||||||
|
|
||||||
```
|
|
||||||
/msg bot reload Weather
|
|
||||||
```
|
|
||||||
|
|
||||||
*Optional:* There are some config variables that can be set for the bot. They mainly control output stuff.
|
|
||||||
|
|
||||||
```
|
```
|
||||||
/msg bot config search Weather
|
/msg bot config search Weather
|
||||||
@ -59,9 +36,12 @@ Now, reload the bot and you should be good to go:
|
|||||||
|
|
||||||
## Example Usage
|
## Example Usage
|
||||||
|
|
||||||
|
When calling the `wunderground` command, you can use zip codes (10002), cities (New York, NY), etc. Weather Underground is pretty
|
||||||
|
intelligent here.
|
||||||
|
|
||||||
```
|
```
|
||||||
<spline> @wunderground 10002
|
<spline> @wunderground 10002
|
||||||
<myybot> New York, NY :: Rain :: 52F | Visibility: 4.0mi | Saturday: Rain. High around 55F. ...
|
<myybot> New York, NY :: Rain :: 52F | Visibility: 4.0mi | Saturday: Rain. High around 55F...
|
||||||
```
|
```
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
@ -72,14 +52,8 @@ There are a ton of options to configure. You can find these via:
|
|||||||
/msg bot config search Weather
|
/msg bot config search Weather
|
||||||
```
|
```
|
||||||
|
|
||||||
Many of these are also available via --help when calling the wunderground command.
|
|
||||||
|
|
||||||
Users can also have their location remembered by the plugin's internal database so that
|
Users can also have their location remembered by the plugin's internal database so that
|
||||||
they will not have to continually type in their location. NOTE: It uses their nick only,
|
they will not have to continually type in their location.
|
||||||
so if they are on a different nick, even with an identical hostmask, it will not match.
|
|
||||||
|
|
||||||
You can use zipcodes (10002), cities (New York, NY), etc. Weather Underground is pretty
|
|
||||||
intelligent here.
|
|
||||||
|
|
||||||
```
|
```
|
||||||
<spline> @setweather 10002
|
<spline> @setweather 10002
|
||||||
@ -93,7 +67,7 @@ This now allows a user to type in the weather command w/o any arguments:
|
|||||||
<myybot> Manchester, NH :: Rain :: 45F | Visibility: 10.0mi | Saturday: Occasional light rain. High 56F. ...
|
<myybot> Manchester, NH :: Rain :: 45F | Visibility: 10.0mi | Saturday: Occasional light rain. High 56F. ...
|
||||||
```
|
```
|
||||||
|
|
||||||
Users can also have the bot remember their preferred options, such as using Metric when displaying weather:
|
Users can also have the bot remember their preferred options, such as using metric units when displaying weather:
|
||||||
|
|
||||||
```
|
```
|
||||||
<spline> @setuser metric False
|
<spline> @setuser metric False
|
||||||
|
Loading…
x
Reference in New Issue
Block a user