The Dark Sky API occasionally categorizes sub-freezing precipitation as neither snow nor sleet, thus not tripping the sensor despite snowy conditions. I adjusted isSnowyEnough to additionally return true if forecast.temperature is below 34° (approx. range) and forecast.precipProbability is inclusive.
In my testing, precipitation below 34° is snow-like and should trip its sensor, as it causes ice and snow buildup.
The Dark Sky API occasionally categorizes sub-freezing precipitation as neither snow nor sleet, thus not tripping the sensor despite snowy conditions. I adjusted
isSnowyEnough
to additionally return true ifforecast.temperature
is below 34° (approx. range) andforecast.precipProbability
is inclusive.In my testing, precipitation below 34° is snow-like and should trip its sensor, as it causes ice and snow buildup.