summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md4
-rw-r--r--blaweather.rb4
2 files changed, 4 insertions, 4 deletions
diff --git a/README.md b/README.md
index 641023d..9417804 100644
--- a/README.md
+++ b/README.md
@@ -4,7 +4,7 @@ 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 DarkSky.net 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.
@@ -34,4 +34,4 @@ To do:
1. Specify detailed forecasts for specific days
2. Extra information (wind speed, humidity?)
-3. Forecast further ahead. \ No newline at end of file
+3. Forecast further ahead.
diff --git a/blaweather.rb b/blaweather.rb
index e539e6b..9aca1ec 100644
--- a/blaweather.rb
+++ b/blaweather.rb
@@ -1,7 +1,7 @@
require 'rest-client'
require 'json'
-VERSION = "2.0"
+VERSION = "2.0.1"
def get_location location
url = "https://maps.googleapis.com/maps/api/geocode/json?address="
@@ -13,7 +13,7 @@ def get_location location
end
def get_weather lat, long
- url = "https://api.forecast.io/forecast/"
+ url = "https://api.darksky.net/forecast/"
api_key = "f1ce0bcdc3d972bc0529bb353f8ec02a"
response = RestClient.get(url+api_key+"/"+lat.to_s+","+long.to_s+"?units=si")
@data = JSON.parse response