Skip to content

Instantly share code, notes, and snippets.

@samdjohnson
Last active August 29, 2015 14:07
Show Gist options
  • Save samdjohnson/7eeaa641b708b6624dcc to your computer and use it in GitHub Desktop.
Save samdjohnson/7eeaa641b708b6624dcc to your computer and use it in GitHub Desktop.
Time Series Interpolation w/ TempoIQ
selection = {
:devices => {:key => device_key}
}
start = Time.utc(2014, 1, 1)
stop = Time.utc(2014, 1, 2)
rows = client.read(selection, start, stop) do |pipeline|
pipeline.interpolate("PT1S", :linear, start, stop)
end.to_a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment