exe/weather in jake-scripts-1.8.3 vs exe/weather in jake-scripts-1.8.4
- old
+ new
@@ -4,10 +4,10 @@
require 'rest-client'
require 'json'
def weather_search
# This key is functional, please don't abuse it
- api_key = "6510b92495fd472ca30155709172803&q"
+ api_key = ENV['APIXU_API_KEY'] || "6510b92495fd472ca30155709172803&q"
# Uses IP to get current city
begin
url = "http://ip-api.com/json"
response = RestClient.get(url)