mirror of
https://github.com/aminnairi/dotfiles.git
synced 2026-11-13 13:19:09 +01:00
obfuscated the api key for openweathermap
This commit is contained in:
1 parent
fdd23b89df
commit
8d838daa76
1 file changed
+1
-1
@@ -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}`;
|
||||
});
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user