diff --git a/server/scripts/modules/hourly-graph.mjs b/server/scripts/modules/hourly-graph.mjs index caf0d71..bef1c75 100644 --- a/server/scripts/modules/hourly-graph.mjs +++ b/server/scripts/modules/hourly-graph.mjs @@ -94,7 +94,7 @@ class HourlyGraph extends WeatherDisplay { // calculate temperature scale for min and max of dewpoint and temperature const minScale = Math.min(...this.data.dewpoint, ...this.data.temperature); const maxScale = Math.max(...this.data.dewpoint, ...this.data.temperature); - const thirdScale = (minScale + maxScale) / 3; + const thirdScale = (maxScale - minScale) / 3; const midScale1 = Math.round(minScale + thirdScale); const midScale2 = Math.round(minScale + (thirdScale * 2)); const tempScale = calcScale(minScale, availableHeight - 10, maxScale, 10); diff --git a/server/scripts/modules/icons/icons-small.mjs b/server/scripts/modules/icons/icons-small.mjs index e4bb330..326b7b1 100644 --- a/server/scripts/modules/icons/icons-small.mjs +++ b/server/scripts/modules/icons/icons-small.mjs @@ -133,6 +133,7 @@ const smallIcon = (link, _isNightTime) => { case 'wind_few': case 'wind_few-n': + case 'wind_': return addPath('Wind.gif'); case 'wind_sct':