Skip to content
This repository has been archived by the owner on Oct 15, 2022. It is now read-only.

Commit

Permalink
Switch API URL to HTTPS because it now redirects there
Browse files Browse the repository at this point in the history
  • Loading branch information
moollaza committed Mar 24, 2016
1 parent b45d330 commit 34f1635
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/DDG/Spice/UV.pm
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
package DDG::Spice::UV;

# ABSTRACT: Use the web service provided by EPA to display the UV Index for locations in the US.
# The web service is described here: http://www.epa.gov/enviro/facts/services.html#uvindex

Expand All @@ -7,16 +8,15 @@ use DDG::Spice;

spice is_cached => 1;

# Triggers
triggers startend => 'uv', 'uv index', 'current uv index';

spice from => '([^/]*)/?([^/]*)';

#hourly data - for the next version...
#spice to => 'http://iaspub.epa.gov/enviro/efservice/getEnvirofactsUVHOURLY/CITY/$1/STATE/$2/JSON';
#spice to => 'https://iaspub.epa.gov/enviro/efservice/getEnvirofactsUVHOURLY/CITY/$1/STATE/$2/JSON';

#daily data - just one value for the day...
spice to => 'http://iaspub.epa.gov/enviro/efservice/getEnvirofactsUVDAILY/CITY/$1/STATE/$2/JSON';
spice to => 'https://iaspub.epa.gov/enviro/efservice/getEnvirofactsUVDAILY/CITY/$1/STATE/$2/JSON';

#UV Index might change daily, but not in the middle of the night.
spice proxy_cache_valid => "200 304 4h";
Expand Down

0 comments on commit 34f1635

Please sign in to comment.