lita-time
lita-time is a handler for Lita that uses the World Weather Online Time Zone API to look up local time in a given location.
Installation
Add lita-time to your Lita instance's Gemfile:
gem "lita-time"
Configuration
Required attributes
-
apikey
- (String) - An key to access the free API. Sign up at World Weather Online
Example
Lita.configure do |config|
config.handlers.time.apikey = "abcdef1234567890fedcba0987654321"
end
Usage
Usage
You can look up the locale lime of a location using many diferent forms:
Lita: time Mableton, GA
Lita: time in Mableton, GA
Lita: what time in Mableton, GA
Lita: what time is it in Mableton, GA
The location names that supported by the API are:
- City and Town Names
- IP Address
- UK Postcode
- Canada Postal Code
- US Zipcode
- Aiport code (IATA)
- Latitude and Longitude (in decimal)
Acknowledgements
- Mostly
stoleninspired by the Hubot time plugin. - Used the Lita Google Images plugin as a template.