0.0
No commit activity in last 3 years
No release in over 3 years
Lita chatbot reponds to user requests of 'weather LOCATION' with a GIF of the weather in specified location. Response is limited to Australian locations with a radar listed on the Bureau of Meteorology
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.11
~> 10.0
~> 3.0

Runtime

 Project Readme

Raindar

This gem is a plugin for Lita, a customisable chatbot. To install Lita in your chat room, visit Lita. Raindar is specific to Australia - the chatbot responds to a users request of 'weather LOCATION' with a GIF of the most recent radar from the Bureau of Meteorology. It is responsive to all locations in Australia that have a radar listed on the BOM website.

Installation

Add this line to your application's Gemfile:

gem 'raindar'

And then execute:

$ bundle

Or install it yourself as:

$ gem install raindar

Configuration

In lita_config.rb, it is necessary to set an imgur_api_key:

$ config.handlers.raindar.imgur_api_key = ENV["IMGUR_API_KEY"]

Usage

Once the gem is installed and imgur_api_key set, the commands are as follows. Note that lita is used as an example. This will be your specific robot name

lita weather LOCATION

To print a list of known locations:

lita radar locations

Locations are:

Adelaide
Albany
Alice Springs
Bairnsdale
Bowen
Brisbane
Broome
Cairns
Canberra
Carnarvon
Ceduna
Dampier
Darwin
Emerald
Esperance
Geraldton
Giles
Gladstone
Gove
Grafton
Gulf of Carpentaria
Gympie
Halls Creek
Hobart
Kalgoorlie
Katherine
Learmonth
Longreach
Mackay
Melbourne
Mildura
Moree
Mount Isa
Mt Gambier
Namoi
Newcastle
Perth
Port Headland
Sydney
Townsville
Wagga Wagga
Warrego
Warruwi
Weipa
West Takone
Willis Island
Wollongong
Woomera
Wyndham
Yarrawonga

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/eleanorakh/raindar. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.

raindar