From 49b43d96842a1ec29b4266eb5e12722753a55c05 Mon Sep 17 00:00:00 2001 From: Leo <5376265+leoherzog@users.noreply.github.com> Date: Mon, 17 Jul 2023 17:35:45 +0000 Subject: [PATCH] Bugfix for Tempest Data Source Air Pressure Fixes #14 --- code.gs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/code.gs b/code.gs index a0af79d..d929bd2 100644 --- a/code.gs +++ b/code.gs @@ -69,7 +69,7 @@ const cwopValidationCode = null; */ -let version = 'v2.3.1'; +let version = 'v2.3.2'; function Schedule() { ScriptApp.getProjectTriggers().forEach(trigger => ScriptApp.deleteTrigger(trigger)); @@ -415,9 +415,9 @@ function refreshFromWeatherflow_() { "knots": Number(weatherflowConditions.obs[0].wind_gust).mphToKnots().toFixedNumber(0) } if (weatherflowConditions.obs[0].wind_direction != null) conditions.winddir = weatherflowConditions.obs[0].wind_direction; - if (weatherflowConditions.obs[0].station_pressure != null) conditions.pressure = { - "inHg": Number(weatherflowConditions.obs[0].station_pressure).hPaToinHg().toFixedNumber(1), - "hPa": Number(weatherflowConditions.obs[0].station_pressure) + if (weatherflowConditions.obs[0].barometric_pressure != null) conditions.pressure = { + "inHg": Number(weatherflowConditions.obs[0].barometric_pressure).hPaToinHg().toFixedNumber(1), + "hPa": Number(weatherflowConditions.obs[0].barometric_pressure) } if (weatherflowConditions.obs[0].relative_humidity != null) conditions.humidity = weatherflowConditions.obs[0].relative_humidity; if (weatherflowConditions.obs[0].uv != null) conditions.uv = weatherflowConditions.obs[0].uv;