From 07e28bfee6434388c580a90e209004bcd748558f Mon Sep 17 00:00:00 2001 From: Jannick Fahlbusch Date: Fri, 6 Oct 2017 20:26:03 +0200 Subject: [PATCH] Use HTTPS instead of HTTP Chrome blocks insecure requests (HTTP) when MagicMirror is loaded via HTTPS. This commit changes the protocol used for OpenWeatherMap. --- CHANGELOG.md | 1 + modules/default/currentweather/currentweather.js | 2 +- modules/default/weatherforecast/weatherforecast.js | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 60fdd9a6..d00292e9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ This project adheres to [Semantic Versioning](http://semver.org/). ### Fixed - Fixed issue with calendar module showing more than `maximumEntries` allows +- WeatherForecast and CurrentWeather are now using HTTPS instead of HTTP ## [2.1.3] - 2017-10-01 diff --git a/modules/default/currentweather/currentweather.js b/modules/default/currentweather/currentweather.js index 0352b7f9..f81f62db 100644 --- a/modules/default/currentweather/currentweather.js +++ b/modules/default/currentweather/currentweather.js @@ -33,7 +33,7 @@ Module.register("currentweather",{ retryDelay: 2500, apiVersion: "2.5", - apiBase: "http://api.openweathermap.org/data/", + apiBase: "https://api.openweathermap.org/data/", weatherEndpoint: "weather", appendLocationNameToHeader: true, diff --git a/modules/default/weatherforecast/weatherforecast.js b/modules/default/weatherforecast/weatherforecast.js index e357387a..56e6a758 100644 --- a/modules/default/weatherforecast/weatherforecast.js +++ b/modules/default/weatherforecast/weatherforecast.js @@ -30,7 +30,7 @@ Module.register("weatherforecast",{ retryDelay: 2500, apiVersion: "2.5", - apiBase: "http://api.openweathermap.org/data/", + apiBase: "https://api.openweathermap.org/data/", forecastEndpoint: "forecast/daily", appendLocationNameToHeader: true,