An open API service indexing awesome lists of open source software.

https://github.com/skibish/hubot-weather

Hubot script to show weather for some city
https://github.com/skibish/hubot-weather

coffeescript hubot hubot-script hubot-scripts weather

Last synced: about 1 year ago
JSON representation

Hubot script to show weather for some city

Awesome Lists containing this project

README

          

Hubot Weather
[![npm](https://img.shields.io/npm/dt/hubot-weather.svg)]()
=========

Hubot script to show weather for some city.

# Installation

Add ```"hubot-weather":"*"``` in ```package.json``` file under dependencies.

Add ```"hubot-weather"``` in ```external-scripts.json``` file.

Run ```npm install``` command and you are ready to go!

Add environment variable `HUBOT_OWM_APIKEY` with API key to openweathermap [More info here](http://openweathermap.org/faq#error401).

Add optional environment variable `HUBOT_WEATHER_UNITS` with value 'imperial' or 'metric' to set display units. Default is metric.

#Example

```
hubot weather in Riga
```

Reply:

```
Forecast for today in Riga, LV
Condition: Clouds, broken clouds
Temperature (min / max): 12°C / 12°C
Humidity: 100%
Type: 1

Last updated: Sat Nov 5 2016 01:54:00 GMT+0000
```