From 069fb9cc441a0c5983ffbfe6976f65898f2c6080 Mon Sep 17 00:00:00 2001 From: Patrick Zippenfenig Date: Thu, 26 Sep 2024 11:41:13 +0200 Subject: [PATCH] feat: Add additional variables to air quality forecast (#327) --- .../en/docs/air-quality-api/+page.svelte | 42 ++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/src/routes/en/docs/air-quality-api/+page.svelte b/src/routes/en/docs/air-quality-api/+page.svelte index 9d77504..96e40c2 100644 --- a/src/routes/en/docs/air-quality-api/+page.svelte +++ b/src/routes/en/docs/air-quality-api/+page.svelte @@ -113,6 +113,23 @@ { name: 'us_aqi_sulphur_dioxide', label: 'United States AQI SO2' } ] ]; + + const additionalVariables = [ + [ + { name: 'formaldehyde', label: 'Formaldehyde CH₂O' }, + { name: 'glyoxal', label: 'Glyoxal C₂H₂O₂' }, + { name: 'non_methane_volatile_organic_compounds', label: 'Non Methane Volatile Organic Compounds (*)' }, + { name: 'pm10_wildfires', label: 'PM10 caused by wildfires (*)' }, + { name: 'peroxyacyl_nitrates', label: 'Peroxyacyl Nitrates PAN' }, + { name: 'secondary_inorganic_aerosol', label: 'Secondary Inorganic Aerosol (*)' } + ], + [ { name: 'residential_elementary_carbon', label: 'Residential Rlementary Carbon (*)' }, + { name: 'total_elementary_carbon', label: 'Total Elementary Carbon (*)' }, + { name: 'pm2_5_total_organic_matter', label: 'PM2.5 Total Organic Matter (*)' }, + { name: 'sea_salt_aerosol', label: 'Sea Salt Aerosol' }, + { name: 'nitrogen_monoxide', label: 'Nitrogen Monoxide NO' } + ] + ]; @@ -532,8 +549,31 @@ + {#each additionalVariables as group} +
+ {#each group as e} +
+ + +
+ {/each} +
+ {/each} +
+ * Only available in Europe + +
+
Note: You can further adjust the forecast time range for hourly weather variables using &forecast_hours= and &past_hours= as shown below.