Change OpenWeatherMap request url from HTTP to HTTPS
This commit is contained in:
parent
2e1289f778
commit
f34e02d824
1 changed files with 2 additions and 2 deletions
|
@ -13,7 +13,7 @@ Parameters:
|
||||||
* weather.unit: metric (default), kelvin, imperial
|
* weather.unit: metric (default), kelvin, imperial
|
||||||
* weather.showcity: If set to true, show location information, otherwise hide it (defaults to true)
|
* weather.showcity: If set to true, show location information, otherwise hide it (defaults to true)
|
||||||
* weather.showminmax: If set to true, show the minimum and maximum temperature, otherwise hide it (defaults to false)
|
* weather.showminmax: If set to true, show the minimum and maximum temperature, otherwise hide it (defaults to false)
|
||||||
* weather.apikey: API key from http://api.openweathermap.org
|
* weather.apikey: API key from https://api.openweathermap.org
|
||||||
|
|
||||||
|
|
||||||
contributed by `TheEdgeOfRage <https://github.com/TheEdgeOfRage>`_ - many thanks!
|
contributed by `TheEdgeOfRage <https://github.com/TheEdgeOfRage>`_ - many thanks!
|
||||||
|
@ -116,7 +116,7 @@ class Module(core.module.Module):
|
||||||
|
|
||||||
def update(self):
|
def update(self):
|
||||||
try:
|
try:
|
||||||
weather_url = "http://api.openweathermap.org/data/2.5/weather?appid={}".format(
|
weather_url = "https://api.openweathermap.org/data/2.5/weather?appid={}".format(
|
||||||
self.__apikey
|
self.__apikey
|
||||||
)
|
)
|
||||||
weather_url = "{}&units={}".format(weather_url, self.__unit)
|
weather_url = "{}&units={}".format(weather_url, self.__unit)
|
||||||
|
|
Loading…
Reference in a new issue