Daily forecast fix?
This commit is contained in:
@@ -187,7 +187,7 @@ function remapWeatherFields(row) {
|
|||||||
|
|
||||||
export async function getOpenMeteo(lat, lon, start, end) {
|
export async function getOpenMeteo(lat, lon, start, end) {
|
||||||
const base = start && end
|
const base = start && end
|
||||||
? `&start_date=${start.slice(0,10)}&end_date=${end.slice(0,10)}&past_days=0`
|
? `&start_date=${start.slice(0,10)}&end_date=${end.slice(0,10)}`
|
||||||
: `&forecast_days=7`
|
: `&forecast_days=7`
|
||||||
|
|
||||||
const [weather, aq, marine] = await Promise.allSettled([
|
const [weather, aq, marine] = await Promise.allSettled([
|
||||||
|
|||||||
Reference in New Issue
Block a user