Merge pull request #193 from watersalesman/master

Use TLS/SSL on API calls and API-related links
merge-requests/218/head
jenslody 7 years ago committed by GitHub
commit ed7a7c20dc
  1. 2
      README.md
  2. 2
      data/metadata.json.in
  3. 12
      data/weather-settings.ui
  4. 4
      gnome-shell-extension-openweather.spec
  5. 4
      po/ar.po
  6. 4
      po/bg.po
  7. 4
      po/ca.po
  8. 4
      po/cs.po
  9. 2
      po/da.po
  10. 4
      po/de.po
  11. 2
      po/el.po
  12. 4
      po/es.po
  13. 4
      po/eu.po
  14. 2
      po/fi.po
  15. 2
      po/fr.po
  16. 2
      po/gnome-shell-extension-openweather.pot
  17. 2
      po/he.po
  18. 4
      po/hu.po
  19. 2
      po/id.po
  20. 2
      po/it.po
  21. 2
      po/ja.po
  22. 2
      po/lt.po
  23. 2
      po/nb.po
  24. 2
      po/nl.po
  25. 4
      po/pl.po
  26. 4
      po/pt.po
  27. 4
      po/pt_BR.po
  28. 2
      po/ro.po
  29. 4
      po/ru.po
  30. 4
      po/sk.po
  31. 2
      po/sr.po
  32. 2
      po/sr@latin.po
  33. 2
      po/sv.po
  34. 2
      po/uk.po
  35. 2
      po/vi.po
  36. 4
      po/zh_CN.po
  37. 4
      po/zh_TW.po
  38. 2
      src/extension.js
  39. 2
      src/openweathermap_org.js

@ -76,7 +76,7 @@ Launch *gnome-shell-extension-prefs* (reachable also through the *OpenWeather Se
You can also use *dconf-editor* or *gsettings* to configure the extension through the command line.
On [OpenWeatherMap](https://openweathermap.org/) you can either use the extensions default-key or register to get a [personal API key](http://openweathermap.org/appid). This key has to be added in the preferences dialog. Don't forget to switch the a appropriate switch in the dialog to "off" in this case.
On [OpenWeatherMap](https://openweathermap.org/) you can either use the extensions default-key or register to get a [personal API key](https://openweathermap.org/appid). This key has to be added in the preferences dialog. Don't forget to switch the a appropriate switch in the dialog to "off" in this case.
To use [Dark Sky](https://darksky.net) you also need to [register](https://darksky.net/dev/register) and get an API key. With this key you can make 1000 requests per day for free. This should be enough for this extension in any normal use case. Do not add billing information, otherwise you might have to pay for the weather-data if something went wrong !

@ -1,7 +1,7 @@
{
"uuid": "@uuid@",
"name": "OpenWeather",
"description": "Weather extension to display weather information from https://openweathermap.org/ or https://darksky.net for almost all locations in the world.\nFor openweathermap.org, you can either use the extensions default-key or register at http://openweathermap.org/appid and set the appropriate switch in the preferences dialog to \"off\".\nFor Dark Sky you have to register at https://darksky.net/dev/register and get a personal API-key.\n\nSince version 29 this extensions uses coordinates to store the locations and makes the names editable to support multiple weather-providers!\nIf you update from versions prior to 29 to 29 or greater (with darksky.net - support) you have to recreate your locations.",
"description": "Weather extension to display weather information from https://openweathermap.org/ or https://darksky.net for almost all locations in the world.\nFor openweathermap.org, you can either use the extensions default-key or register at https://openweathermap.org/appid and set the appropriate switch in the preferences dialog to \"off\".\nFor Dark Sky you have to register at https://darksky.net/dev/register and get a personal API-key.\n\nSince version 29 this extensions uses coordinates to store the locations and makes the names editable to support multiple weather-providers!\nIf you update from versions prior to 29 to 29 or greater (with darksky.net - support) you have to recreate your locations.",
"shell-version": [ "3.14", "3.16", "3.18", "3.20", "3.22", "3.24" ],
"localedir": "@LOCALEDIR@",
"url": "@url@",

@ -91,8 +91,8 @@
<property name="margin_top">5</property>
<items>
<item translatable="yes">Extensions default weather provider</item>
<item>http://openweathermap.org</item>
<item>http://darksky.net</item>
<item>https://openweathermap.org</item>
<item>https://darksky.net</item>
</items>
</object>
<packing>
@ -259,8 +259,8 @@
<property name="active">0</property>
<items>
<item translatable="yes">Extensions default weather provider</item>
<item>http://openweathermap.org</item>
<item>http://darksky.net</item>
<item>https://openweathermap.org</item>
<item>https://darksky.net</item>
</items>
</object>
<packing>
@ -490,8 +490,8 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<items>
<item>http://openweathermap.org</item>
<item>http://darksky.net</item>
<item>https://openweathermap.org</item>
<item>https://darksky.net</item>
</items>
</object>
<packing>

@ -24,7 +24,7 @@ Requires: gnome-shell >= 3.14.0
%description
gnome-shell-extension-openweather is an extension to display weather information
from http://openweathermap.org/ or http://darksky.net for (almost) all locations
from https://openweathermap.org/ or https://darksky.net for (almost) all locations
of the world in GNOME Shell.
Be aware, that system-wide installed gnome-shell-extensions are disabled by
default and have to be enable by the user(s), if they get installed the first
@ -188,5 +188,5 @@ fi
* Sat Jul 25 2015 Jens Lody <fedora@jenslody.de> - 1-0.1.20150725.git377244c
- Initial package for Fedora of the weather-extension fork using
http://openweathermap.org or http://forecast.io.
https://openweathermap.org or https://forecast.io.

@ -29,12 +29,12 @@ msgstr "..."
msgid ""
"Openweathermap.org does not work without an api-key.\n"
"Either set the switch to use the extensions default key in the preferences "
"dialog to on or register at http://openweathermap.org/appid and paste your "
"dialog to on or register at https://openweathermap.org/appid and paste your "
"personal key into the preferences dialog."
msgstr ""
"لا يعمل openweathermap.org بدون مفتاح استخدام للخدمة.\n"
"إما أن تختار استخدام مفتاح الامتداد المبدئي في نافذة التفضيلات أو تسجل في "
"http://openweathermap.org/appid و تلصق المفتاح الشخصي في نافذة التفضيلات."
"https://openweathermap.org/appid و تلصق المفتاح الشخصي في نافذة التفضيلات."
#: src/extension.js:442
msgid ""

@ -28,12 +28,12 @@ msgstr "..."
msgid ""
"Openweathermap.org does not work without an api-key.\n"
"Either set the switch to use the extensions default key in the preferences "
"dialog to on or register at http://openweathermap.org/appid and paste your "
"dialog to on or register at https://openweathermap.org/appid and paste your "
"personal key into the preferences dialog."
msgstr ""
"Оpenweathermap.org изисква API ключ.\n"
"Конфигурирайте да разширението да използва ключа по подразбиране, или се "
"регистрирайте на http://openweathermap.org/appid и поставете своя персонален "
"регистрирайте на https://openweathermap.org/appid и поставете своя персонален "
"ключ в конфигурацията."
#: src/extension.js:442

@ -27,12 +27,12 @@ msgstr "..."
msgid ""
"Openweathermap.org does not work without an api-key.\n"
"Either set the switch to use the extensions default key in the preferences "
"dialog to on or register at http://openweathermap.org/appid and paste your "
"dialog to on or register at https://openweathermap.org/appid and paste your "
"personal key into the preferences dialog."
msgstr ""
"Openweathermap.org no funciona sense una clau API.\n"
"Utilitza la clau per defecte de l'extensió al diàleg de preferències o "
"registra't a http://openweahermap.org/appid i enganxa la teva clau personal "
"registra't a https://openweahermap.org/appid i enganxa la teva clau personal "
"al diàleg de preferències."
#: src/extension.js:442

@ -30,12 +30,12 @@ msgstr "…"
msgid ""
"Openweathermap.org does not work without an api-key.\n"
"Either set the switch to use the extensions default key in the preferences "
"dialog to on or register at http://openweathermap.org/appid and paste your "
"dialog to on or register at https://openweathermap.org/appid and paste your "
"personal key into the preferences dialog."
msgstr ""
"Zdroj Openweathermap.org nefunguje bez API klíče.\n"
"Buď zapněte v nastavení přepínač pro výchozí klíč rozšíření, nebo se "
"registrujte na http://openweathermap.org/appid a vložte váš osobní klíč do "
"registrujte na https://openweathermap.org/appid a vložte váš osobní klíč do "
"příslušného pole v dialogu nastavení."
#: src/extension.js:442

@ -26,7 +26,7 @@ msgstr ""
msgid ""
"Openweathermap.org does not work without an api-key.\n"
"Either set the switch to use the extensions default key in the preferences "
"dialog to on or register at http://openweathermap.org/appid and paste your "
"dialog to on or register at https://openweathermap.org/appid and paste your "
"personal key into the preferences dialog."
msgstr ""

@ -27,12 +27,12 @@ msgstr "..."
msgid ""
"Openweathermap.org does not work without an api-key.\n"
"Either set the switch to use the extensions default key in the preferences "
"dialog to on or register at http://openweathermap.org/appid and paste your "
"dialog to on or register at https://openweathermap.org/appid and paste your "
"personal key into the preferences dialog."
msgstr ""
"Openweathermap.org kann nicht ohne einen api-key genutzt werden.\n"
"Entweder den Schalter zur Benutzung des Standard API-keys in Einstellungs-"
"Dialog auf an schalten oder auf http://openweathermap.org/appid anmelden und "
"Dialog auf an schalten oder auf https://openweathermap.org/appid anmelden und "
"den persönlichen Schlüssel in den Dialog kopieren."
#: src/extension.js:442

@ -26,7 +26,7 @@ msgstr "..."
msgid ""
"Openweathermap.org does not work without an api-key.\n"
"Either set the switch to use the extensions default key in the preferences "
"dialog to on or register at http://openweathermap.org/appid and paste your "
"dialog to on or register at https://openweathermap.org/appid and paste your "
"personal key into the preferences dialog."
msgstr ""

@ -28,12 +28,12 @@ msgstr "…"
msgid ""
"Openweathermap.org does not work without an api-key.\n"
"Either set the switch to use the extensions default key in the preferences "
"dialog to on or register at http://openweathermap.org/appid and paste your "
"dialog to on or register at https://openweathermap.org/appid and paste your "
"personal key into the preferences dialog."
msgstr ""
"Openweathermap.org no funcionará sin una clave de API.\n"
"Active la opción para usar la clave predeterminada de la extensión, o bien, "
"regístrese en http://openweathermap.org/appid y pegue su clave personal en "
"regístrese en https://openweathermap.org/appid y pegue su clave personal en "
"la ventana de preferencias."
#: src/extension.js:442

@ -27,12 +27,12 @@ msgstr "..."
msgid ""
"Openweathermap.org does not work without an api-key.\n"
"Either set the switch to use the extensions default key in the preferences "
"dialog to on or register at http://openweathermap.org/appid and paste your "
"dialog to on or register at https://openweathermap.org/appid and paste your "
"personal key into the preferences dialog."
msgstr ""
"Openweathermap.org ez dabil API gakorik ez baduzu.\n"
"Ezarri hedapenaren gako lehenetsia hobespenen leihoan edo erregistratu "
"http://openweathermap.org/appid gunean eta itsatsi bertako zure gako "
"https://openweathermap.org/appid gunean eta itsatsi bertako zure gako "
"pertsonala hobespenen leihoan."
#: src/extension.js:442

@ -27,7 +27,7 @@ msgstr "..."
msgid ""
"Openweathermap.org does not work without an api-key.\n"
"Either set the switch to use the extensions default key in the preferences "
"dialog to on or register at http://openweathermap.org/appid and paste your "
"dialog to on or register at https://openweathermap.org/appid and paste your "
"personal key into the preferences dialog."
msgstr ""

@ -30,7 +30,7 @@ msgstr "…"
msgid ""
"Openweathermap.org does not work without an api-key.\n"
"Either set the switch to use the extensions default key in the preferences "
"dialog to on or register at http://openweathermap.org/appid and paste your "
"dialog to on or register at https://openweathermap.org/appid and paste your "
"personal key into the preferences dialog."
msgstr ""
"Openweathermap.org ne fonctionne pas sans une clef d’API.\n"

@ -27,7 +27,7 @@ msgstr ""
msgid ""
"Openweathermap.org does not work without an api-key.\n"
"Either set the switch to use the extensions default key in the preferences "
"dialog to on or register at http://openweathermap.org/appid and paste your "
"dialog to on or register at https://openweathermap.org/appid and paste your "
"personal key into the preferences dialog."
msgstr ""

@ -28,7 +28,7 @@ msgstr "..."
msgid ""
"Openweathermap.org does not work without an api-key.\n"
"Either set the switch to use the extensions default key in the preferences "
"dialog to on or register at http://openweathermap.org/appid and paste your "
"dialog to on or register at https://openweathermap.org/appid and paste your "
"personal key into the preferences dialog."
msgstr ""

@ -27,12 +27,12 @@ msgstr "..."
msgid ""
"Openweathermap.org does not work without an api-key.\n"
"Either set the switch to use the extensions default key in the preferences "
"dialog to on or register at http://openweathermap.org/appid and paste your "
"dialog to on or register at https://openweathermap.org/appid and paste your "
"personal key into the preferences dialog."
msgstr ""
"Az Openweathermap.org nem működik api-kulcs nélkül.\n"
"Vagy az alkalmazás beépített api-kulcsának használatát kapcsolja be a "
"beállításokban, vagy regisztráljon az http://openweathermap.org/appid "
"beállításokban, vagy regisztráljon az https://openweathermap.org/appid "
"oldalon és másolja be a személyes kulcsát."
#: src/extension.js:442

@ -27,7 +27,7 @@ msgstr "..."
msgid ""
"Openweathermap.org does not work without an api-key.\n"
"Either set the switch to use the extensions default key in the preferences "
"dialog to on or register at http://openweathermap.org/appid and paste your "
"dialog to on or register at https://openweathermap.org/appid and paste your "
"personal key into the preferences dialog."
msgstr ""

@ -27,7 +27,7 @@ msgstr "..."
msgid ""
"Openweathermap.org does not work without an api-key.\n"
"Either set the switch to use the extensions default key in the preferences "
"dialog to on or register at http://openweathermap.org/appid and paste your "
"dialog to on or register at https://openweathermap.org/appid and paste your "
"personal key into the preferences dialog."
msgstr ""
"Openweathermap.org non funziona senza una API key. \n"

@ -29,7 +29,7 @@ msgstr ""
msgid ""
"Openweathermap.org does not work without an api-key.\n"
"Either set the switch to use the extensions default key in the preferences "
"dialog to on or register at http://openweathermap.org/appid and paste your "
"dialog to on or register at https://openweathermap.org/appid and paste your "
"personal key into the preferences dialog."
msgstr ""

@ -27,7 +27,7 @@ msgstr ""
msgid ""
"Openweathermap.org does not work without an api-key.\n"
"Either set the switch to use the extensions default key in the preferences "
"dialog to on or register at http://openweathermap.org/appid and paste your "
"dialog to on or register at https://openweathermap.org/appid and paste your "
"personal key into the preferences dialog."
msgstr ""

@ -25,7 +25,7 @@ msgstr "…"
msgid ""
"Openweathermap.org does not work without an api-key.\n"
"Either set the switch to use the extensions default key in the preferences "
"dialog to on or register at http://openweathermap.org/appid and paste your "
"dialog to on or register at https://openweathermap.org/appid and paste your "
"personal key into the preferences dialog."
msgstr ""

@ -27,7 +27,7 @@ msgstr "..."
msgid ""
"Openweathermap.org does not work without an api-key.\n"
"Either set the switch to use the extensions default key in the preferences "
"dialog to on or register at http://openweathermap.org/appid and paste your "
"dialog to on or register at https://openweathermap.org/appid and paste your "
"personal key into the preferences dialog."
msgstr ""
"Openweathermap.org werkt niet zonder een api-key.\n"

@ -31,12 +31,12 @@ msgstr "…"
msgid ""
"Openweathermap.org does not work without an api-key.\n"
"Either set the switch to use the extensions default key in the preferences "
"dialog to on or register at http://openweathermap.org/appid and paste your "
"dialog to on or register at https://openweathermap.org/appid and paste your "
"personal key into the preferences dialog."
msgstr ""
"Serwis openweathermap.org nie działa bez klucza API.\n"
"Proszę włączyć używanie domyślnego klucza rozszerzenia w oknie preferencji "
"lub zarejestrować się na stronie http://openweathermap.org/appid i wkleić "
"lub zarejestrować się na stronie https://openweathermap.org/appid i wkleić "
"osobisty klucz w oknie preferencji."
#: src/extension.js:442

@ -29,12 +29,12 @@ msgstr "..."
msgid ""
"Openweathermap.org does not work without an api-key.\n"
"Either set the switch to use the extensions default key in the preferences "
"dialog to on or register at http://openweathermap.org/appid and paste your "
"dialog to on or register at https://openweathermap.org/appid and paste your "
"personal key into the preferences dialog."
msgstr ""
"Openweathermap.org não funciona sem uma chave de API.\n"
"Ligue a opção para usar a chave padrão de extensões nas preferências ou "
"registe-se em http://openweathermap.org/appid e copie a sua chave pessoal "
"registe-se em https://openweathermap.org/appid e copie a sua chave pessoal "
"para as configurações."
#: src/extension.js:442

@ -29,12 +29,12 @@ msgstr "..."
msgid ""
"Openweathermap.org does not work without an api-key.\n"
"Either set the switch to use the extensions default key in the preferences "
"dialog to on or register at http://openweathermap.org/appid and paste your "
"dialog to on or register at https://openweathermap.org/appid and paste your "
"personal key into the preferences dialog."
msgstr ""
"Openweathermap.org não funciona sem uma api-key.\n"
"Ou configure para usar a chave padrão da extensões nas preferências ou "
"registar-se em http://openweathermap.org/appid e cole sua chave pessoal na "
"registar-se em https://openweathermap.org/appid e cole sua chave pessoal na "
"tela de preferências."
#: src/extension.js:442

@ -31,7 +31,7 @@ msgstr "..."
msgid ""
"Openweathermap.org does not work without an api-key.\n"
"Either set the switch to use the extensions default key in the preferences "
"dialog to on or register at http://openweathermap.org/appid and paste your "
"dialog to on or register at https://openweathermap.org/appid and paste your "
"personal key into the preferences dialog."
msgstr ""

@ -31,12 +31,12 @@ msgstr "..."
msgid ""
"Openweathermap.org does not work without an api-key.\n"
"Either set the switch to use the extensions default key in the preferences "
"dialog to on or register at http://openweathermap.org/appid and paste your "
"dialog to on or register at https://openweathermap.org/appid and paste your "
"personal key into the preferences dialog."
msgstr ""
"Openweathermap.org не работает без API ключа.\n"
"В диалоге настроек либо включите использование ключа дополнения, либо "
"зарегистрируйтесь на http://openweathermap.org/appid и вставьте персональный "
"зарегистрируйтесь на https://openweathermap.org/appid и вставьте персональный "
"ключ в диалоге настроек."
#: src/extension.js:442

@ -27,12 +27,12 @@ msgstr "..."
msgid ""
"Openweathermap.org does not work without an api-key.\n"
"Either set the switch to use the extensions default key in the preferences "
"dialog to on or register at http://openweathermap.org/appid and paste your "
"dialog to on or register at https://openweathermap.org/appid and paste your "
"personal key into the preferences dialog."
msgstr ""
"Služba openweathermap.org nefunguje bez kľúča api-key.\n"
"Buď zapnite prepínač v nastaveniach na použitie predvoleného kľúča "
"rozšírenia, alebo sa zaregistrujte na adrese http://openweathermap.org/appid "
"rozšírenia, alebo sa zaregistrujte na adrese https://openweathermap.org/appid "
"a vložte váš súkromný kľúč do dialógového okna nastavení."
#: src/extension.js:442

@ -28,7 +28,7 @@ msgstr "..."
msgid ""
"Openweathermap.org does not work without an api-key.\n"
"Either set the switch to use the extensions default key in the preferences "
"dialog to on or register at http://openweathermap.org/appid and paste your "
"dialog to on or register at https://openweathermap.org/appid and paste your "
"personal key into the preferences dialog."
msgstr ""

@ -28,7 +28,7 @@ msgstr "..."
msgid ""
"Openweathermap.org does not work without an api-key.\n"
"Either set the switch to use the extensions default key in the preferences "
"dialog to on or register at http://openweathermap.org/appid and paste your "
"dialog to on or register at https://openweathermap.org/appid and paste your "
"personal key into the preferences dialog."
msgstr ""

@ -25,7 +25,7 @@ msgstr "..."
msgid ""
"Openweathermap.org does not work without an api-key.\n"
"Either set the switch to use the extensions default key in the preferences "
"dialog to on or register at http://openweathermap.org/appid and paste your "
"dialog to on or register at https://openweathermap.org/appid and paste your "
"personal key into the preferences dialog."
msgstr ""

@ -25,7 +25,7 @@ msgstr "..."
msgid ""
"Openweathermap.org does not work without an api-key.\n"
"Either set the switch to use the extensions default key in the preferences "
"dialog to on or register at http://openweathermap.org/appid and paste your "
"dialog to on or register at https://openweathermap.org/appid and paste your "
"personal key into the preferences dialog."
msgstr ""

@ -26,7 +26,7 @@ msgstr "..."
msgid ""
"Openweathermap.org does not work without an api-key.\n"
"Either set the switch to use the extensions default key in the preferences "
"dialog to on or register at http://openweathermap.org/appid and paste your "
"dialog to on or register at https://openweathermap.org/appid and paste your "
"personal key into the preferences dialog."
msgstr ""

@ -30,11 +30,11 @@ msgstr "..."
msgid ""
"Openweathermap.org does not work without an api-key.\n"
"Either set the switch to use the extensions default key in the preferences "
"dialog to on or register at http://openweathermap.org/appid and paste your "
"dialog to on or register at https://openweathermap.org/appid and paste your "
"personal key into the preferences dialog."
msgstr ""
"Openweathermap.org 在没有 API 密钥的情况下无法工作。\n"
"请开启使用扩展的默认密钥,或者到 http://openweathermap.org/appid 注册,并将您"
"请开启使用扩展的默认密钥,或者到 https://openweathermap.org/appid 注册,并将您"
"的个人密钥粘贴到选项对话框中。"
#: src/extension.js:442

@ -29,11 +29,11 @@ msgstr "..."
msgid ""
"Openweathermap.org does not work without an api-key.\n"
"Either set the switch to use the extensions default key in the preferences "
"dialog to on or register at http://openweathermap.org/appid and paste your "
"dialog to on or register at https://openweathermap.org/appid and paste your "
"personal key into the preferences dialog."
msgstr ""
"Openweathermap.org 在沒有 API 密鑰的情況下無法工作。\n"
"請開啓使用擴展的默認密鑰,或者到 http://openweathermap.org/appid 註冊,並將您"
"請開啓使用擴展的默認密鑰,或者到 https://openweathermap.org/appid 註冊,並將您"
"的個人密鑰粘貼到選項對話框中。"
#: src/extension.js:442

@ -387,7 +387,7 @@ const OpenweatherMenuButton = new Lang.Class({
this.weatherProvider = "OpenWeatherMap";
if (this._appid.toString().trim() === '')
Main.notify("Openweather", _("Openweathermap.org does not work without an api-key.\nEither set the switch to use the extensions default key in the preferences dialog to on or register at http://openweathermap.org/appid and paste your personal key into the preferences dialog."));
Main.notify("Openweather", _("Openweathermap.org does not work without an api-key.\nEither set the switch to use the extensions default key in the preferences dialog to on or register at https://openweathermap.org/appid and paste your personal key into the preferences dialog."));
},

@ -45,7 +45,7 @@ const _ = Gettext.gettext;
const ngettext = Gettext.ngettext;
const OPENWEATHER_URL_HOST = 'api.openweathermap.org';
const OPENWEATHER_URL_BASE = 'http://' + OPENWEATHER_URL_HOST + '/data/2.5/';
const OPENWEATHER_URL_BASE = 'https://' + OPENWEATHER_URL_HOST + '/data/2.5/';
const OPENWEATHER_URL_CURRENT = OPENWEATHER_URL_BASE + 'weather';
const OPENWEATHER_URL_FORECAST = OPENWEATHER_URL_BASE + 'forecast/daily';

Loading…
Cancel
Save