mirror of
https://github.com/pawelmalak/flame.git
synced 2025-07-19 11:39:36 +02:00
update README.md
This commit is contained in:
parent
26fb1c4369
commit
2b92279c27
2 changed files with 2 additions and 3 deletions
|
@ -162,8 +162,8 @@ For list of supported search engines, shortcuts and more about searching functio
|
||||||
|
|
||||||
### Setting up weather module
|
### Setting up weather module
|
||||||
|
|
||||||
1. Obtain API Key from [Weather API](https://www.weatherapi.com/pricing.aspx).
|
1. [Weather API](https://open-meteo.com/).
|
||||||
> Free plan allows for 1M calls per month. Flame is making less then 3K API calls per month.
|
> 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).
|
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.
|
3. Enter and save data. Weather widget will now update and should be visible on Home page.
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,6 @@ const getExternalWeather = async () => {
|
||||||
// Fetch data from external API
|
// Fetch data from external API
|
||||||
try {
|
try {
|
||||||
const res = await axios.get('https://api.open-meteo.com/v1/forecast', { params });
|
const res = await axios.get('https://api.open-meteo.com/v1/forecast', { params });
|
||||||
// TODO weather code
|
|
||||||
// Save weather data
|
// Save weather data
|
||||||
const cursor = res.data.current;
|
const cursor = res.data.current;
|
||||||
const weatherData = await Weather.create({
|
const weatherData = await Weather.create({
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue