From 8d838daa769785a75de5cd1268ba2fb68299e69d Mon Sep 17 00:00:00 2001 From: aminnairi <18418459+aminnairi@users.noreply.github.com> Date: Mon, 10 Apr 2023 23:17:43 +0200 Subject: [PATCH] obfuscated the api key for openweathermap --- i3/i3status/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i3/i3status/index.js b/i3/i3status/index.js index 74c0388..b6cc468 100644 --- a/i3/i3status/index.js +++ b/i3/i3status/index.js @@ -96,7 +96,7 @@ const getBitcoinRate = async () => { }; const getWeather = async () => { - return json.get("https://api.openweathermap.org/data/2.5/weather?q=paris&appid=f31995fb1e1d69ac2f5d2053ca040a3b&units=metric").then(json => { + return json.get(`https://api.openweathermap.org/data/2.5/weather?q=paris&appid=${settings.weather.appid}&units=metric`).then(json => { return ` ${Math.round((Number(json.main.temp) || 0) * 10) / 10}°C ${json.weather[0].main}`; }); };