From e3393ce78adb8d4780f0e7040439816c56d7fb12 Mon Sep 17 00:00:00 2001 From: Joe Robinson Date: Wed, 21 Sep 2016 13:57:54 +0100 Subject: Update to new API URL on darksky.net --- blaweather.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'blaweather.rb') 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 -- cgit v1.2.3