Skip to content

Commit

Permalink
More Windchill Calculation Bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
leoherzog committed Jan 1, 2025
1 parent b8a09e7 commit 149100e
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 @@ -545,7 +545,7 @@ function refreshFromWeatherflow_() {
} else if (conditions.temp != null && conditions.windSpeed != null) {
conditions.windChill = {
"f": conditions.temp.f.windChillF(conditions.windSpeed.mph).toFixedNumber(2),
"c": conditions.temp.c.windChillC(conditions.windSpeed.mph).toFixedNumber(2)
"c": conditions.temp.c.windChillC(conditions.windSpeed.kph).toFixedNumber(2)
};
};
if (weatherflowConditions.obs[0].heat_index != null) {
Expand Down Expand Up @@ -916,7 +916,7 @@ function doPost(request) {
if (receivedJSON.humidity != null) conditions.humidity = Number(receivedJSON.humidity).toFixedNumber(0);
if (conditions.temp != null && conditions.windSpeed != null) conditions.windChill = {
"f": conditions.temp.f.windChillF(conditions.windSpeed.mph).toFixedNumber(2),
"c": conditions.temp.c.windChillC(conditions.windSpeed.mph).toFixedNumber(2)
"c": conditions.temp.c.windChillC(conditions.windSpeed.kph).toFixedNumber(2)
}
if (conditions.temp != null && conditions.humidity != null) conditions.heatIndex = {
"f": conditions.temp.f.heatIndex(conditions.humidity, 'F').toFixedNumber(2),
Expand Down

0 comments on commit 149100e

Please sign in to comment.