add barometric pressure

This commit is contained in:
2026-02-02 16:10:29 +11:00
parent 6f9eee5dc0
commit 08bd117eb8
7 changed files with 146 additions and 62 deletions

View File

@@ -14,6 +14,7 @@ const colors = {
forecast: "#f4b942",
gust: "#ff7d6b",
humidity: "#7ee081",
pressure: "#8fb8de",
uvi: "#f4d35e",
light: "#b8f2e6",
precip: "#4ea8de",
@@ -483,6 +484,18 @@ function renderDashboard(data) {
};
upsertChart("chart-rh", rhChart);
const pressureChart = {
type: "line",
data: {
datasets: [
{ label: "obs pressure hPa", data: series(obsFiltered, "pressure_hpa"), borderColor: colors.pressure },
{ label: "forecast msl hPa", data: series(forecast, "pressure_msl_hpa"), borderColor: colors.forecast },
],
},
options: baseOptions(range),
};
upsertChart("chart-pressure", pressureChart);
const lightOptions = baseOptions(range);
lightOptions.scales.y.ticks.color = colors.uvi;
lightOptions.scales.y.title = { display: true, text: "UVI", color: colors.uvi };