Useful for looking at the last 20 minutes of ticks for a sensor
Implementation-wise this seems fine - 20 minutes seems kind of conservative though - Not positive about the exact details you have in the UI but are you sure that for whatever we're exposing there people won't want to zoom out beyond 20 minutes? For some visualization/debug purposes I could imagine wanting to go back like 24 hours, and that's only a few thousand rows per sensor, and our indices mean that other than a bit of storage there shouldn't be a huge cost right? But I guess we also have the daemon logs for debugging purposes.
rather than tempting fate and using the system timezone, create in UTC already using pendulum.now("UTC") so no need to convert to UTC below?
maybe worth a comment here about why 20 minutes
there is also a subtract method :)