1
0
Fork 0
mirror of https://github.com/pawelmalak/flame.git synced 2025-07-19 03:29:37 +02:00

update README.md

This commit is contained in:
sylvain.chateau 2024-09-10 23:20:13 +02:00
parent 26fb1c4369
commit 2b92279c27
2 changed files with 2 additions and 3 deletions

View file

@ -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.

View file

@ -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({