Skip to content

Commit

Permalink
Bugfix for MyAcurite Windchill Calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
leoherzog authored Aug 11, 2023
1 parent 9d2e1dc commit da44ce5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code.gs
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,8 @@ function refreshFromAcurite_() {
let winddir = acuriteConditions.sensors.find(sensor => sensor.sensor_code === 'Wind Direction');
if (winddir != null) conditions.winddir = Number(winddir.last_reading_value);
if (temp != null && windspeed != null) conditions.windchill = {
"f": conditions.temp.f.windChill(conditions.windSpeed.mph).toFixedNumber(1),
"c": conditions.temp.c.windChill(conditions.windSpeed.kph).toFixedNumber(1)
"f": conditions.temp.f.windChillF(conditions.windSpeed.mph).toFixedNumber(1),
"c": conditions.temp.c.windChillC(conditions.windSpeed.kph).toFixedNumber(1)
}
if (temp != null && humidity != null) conditions.heatindex = {
"f": conditions.temp.f.heatIndex(conditions.humidity, 'F').toFixedNumber(1),
Expand Down

0 comments on commit da44ce5

Please sign in to comment.