obfuscated the api key for openweathermap

This commit is contained in:
aminnairi
2023-04-10 23:17:43 +02:00
parent fdd23b89df
commit 8d838daa76
+1 -1
View File
@@ -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}`;
});
};