diff --git a/card.js b/card.js index bb28061..5b03184 100644 --- a/card.js +++ b/card.js @@ -1 +1 @@ -(function(){new CardPrototype({name:"WeatherCard",openStreetMapURL:"https://nominatim.openstreetmap.org/reverse?format=json&zoom=18",openWeatherApiURL:"http://api.openweathermap.org/data/2.5/weather",icons:{"01d":["sun"],"01n":["moon"],"02d":["cloud","sun"],"02n":["cloud","moon"],"03d":["cloud"],"03n":["cloud"],"04d":["cloud"],"04n":["cloud"],"09d":["cloud","showers"],"09n":["cloud","showers"],"10d":["cloud","sun","showers"],"10n":["cloud","moon","showers"],"11d":["cloud","lightning"],"11n":["cloud","lightning"],"13d":["cloud","snowflake"],"13n":["cloud","snowflake"],"50d":["haze","sun"],"50n":["haze","moon"]},init:function(){this.getGeoLoc()},getGeoLoc:function(){var t=this,e=new Date,o=t.getLocalStorageItem(t,"lat/lng");null==o||o.timestamp+6e5