summaryrefslogtreecommitdiff
path: root/README.md
blob: 1ae8ffb5e6b7a6a30c19d8170563d8c90fa60f42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Blaweather

This is a ruby script for getting weather forecasts. 
It will return the current weather, brief forecast for the day and week, and any predictions of rain for the next hour.

It uses Forecast.io as the source of weather data.

It uses Google Maps API to convert locations into lat/long co-ordinates which are needed for the forecast. 
Any city, postal code, street address, place of interest, etc, should work.

## Installation:

Run the following to install the required gems -

`gem install`

Alternatively, install the 'json' and 'rest-client' Ruby Gems via your package manager.

## Usage:

`ruby blaweather.rb [location]`

e.g:

`ruby blaweather.rb London`
`ruby blaweather.rb W1A 1AA`
`ruby blaweather.r tower bridge`

## To do:

1. Specify detailed forecasts for specific days
2. Extra information (wind speed, humidity?)
3. Forecast further ahead.