Skip to content

Commit

Permalink
Bugfix for Tempest Data Source Air Pressure
Browse files Browse the repository at this point in the history
Fixes #14
  • Loading branch information
leoherzog committed Jul 17, 2023
1 parent 27755cc commit 49b43d9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions code.gs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 49b43d9

Please sign in to comment.