From 2b92279c273795e94679f62aeaf028ed12a6243d Mon Sep 17 00:00:00 2001 From: "sylvain.chateau" Date: Tue, 10 Sep 2024 23:20:13 +0200 Subject: [PATCH] update README.md --- README.md | 4 ++-- utils/getExternalWeather.js | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3d51f17..5843ca6 100644 --- a/README.md +++ b/README.md @@ -162,8 +162,8 @@ For list of supported search engines, shortcuts and more about searching functio ### Setting up weather module -1. Obtain API Key from [Weather API](https://www.weatherapi.com/pricing.aspx). - > Free plan allows for 1M calls per month. Flame is making less then 3K API calls per month. +1. [Weather API](https://open-meteo.com/). + > Only for non-commercial use and less than 10.000 daily API calls 2. Get lat/long for your location. You can get them from [latlong.net](https://www.latlong.net/convert-address-to-lat-long.html). 3. Enter and save data. Weather widget will now update and should be visible on Home page. diff --git a/utils/getExternalWeather.js b/utils/getExternalWeather.js index cc386af..bdf4cb2 100644 --- a/utils/getExternalWeather.js +++ b/utils/getExternalWeather.js @@ -16,7 +16,6 @@ const getExternalWeather = async () => { // Fetch data from external API try { const res = await axios.get('https://api.open-meteo.com/v1/forecast', { params }); - // TODO weather code // Save weather data const cursor = res.data.current; const weatherData = await Weather.create({