Gusts in MPH and colour scaled
This commit is contained in:
fraxle
2026-05-19 21:18:28 +01:00
parent 33616456b2
commit 3e4ef00f5c
4 changed files with 13 additions and 8 deletions
+2 -2
View File
@@ -112,8 +112,8 @@ export function checkStorm(rows) {
emoji: '🌩️',
title: isStorm ? 'Storm Conditions Forecast' : 'Blustery & Wet Today',
message: isStorm
? `Storm-level conditions expected — gusts to ${maxGust.toFixed(0)} m/s with heavy precipitation. Take care outdoors.`
: `Unsettled day ahead — windy with gusts to ${maxGust.toFixed(0)} m/s and ${maxPrecip.toFixed(1)} mm/h rain at peak.`,
? `Storm-level conditions expected — gusts to ${Math.round(maxGust * 2.237)} mph with heavy precipitation. Take care outdoors.`
: `Unsettled day ahead — windy with gusts to ${Math.round(maxGust * 2.237)} mph and ${maxPrecip.toFixed(1)} mm/h rain at peak.`,
color: '#1a2030',
textColor: '#c0d8f0',
type: 'weather',