bbernstein / homebridge-snowsense

Senses when it's "snowy", meaning it snowed recently or will likely snow soon
Apache License 2.0
4 stars 1 forks source link

Add params for units and setting temperature threshold #3

Closed bbernstein closed 4 years ago

bbernstein commented 4 years ago

Now that we have an extra check for temperature, we need to also set units (F vs C). Currently the default units are 'si' which is basically metric (celcius). In addition, allow a config option for setting the precipitation temperature.

In some regions, the precipitation type is not set, so we can just check for temperature and the existence of precipitation to assume it's something frozen.