Skip to content

Instantly share code, notes, and snippets.

@thinkjson
Created March 31, 2018 13:01
Show Gist options
  • Select an option

  • Save thinkjson/c9277f824741e7bbb5a34a280156577e to your computer and use it in GitHub Desktop.

Select an option

Save thinkjson/c9277f824741e7bbb5a34a280156577e to your computer and use it in GitHub Desktop.
Comfort ratio
alias(
multiplySeries(
scale(nest_metrics.current_humidity, 0.016),
scale(nest_metrics.current_temperature, 0.0128)
),
"indoor"
)
alias(
multiplySeries(
scale(stats.gauges.weather.dewpoint, 0.018),
multiplySeries(
scale(stats.gauges.weather.relative_humidity, 0.016),
scale(stats.gauges.weather.temperature, 0.0128)
)
),
"outdoor"
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment