Adds the trends methods: day of week, hour of day and month of year to the sensors/:id/measurements endpoint. To do this we had to use the period model instead of the factor model and I think there could be some improvements we could make to that model. For example, when grouping by day the period has a straight forward first and last datetime of that period. But when grouping by day of week its more complicated.
Closes issue #335
Adds the trends methods: day of week, hour of day and month of year to the sensors/:id/measurements endpoint. To do this we had to use the period model instead of the factor model and I think there could be some improvements we could make to that model. For example, when grouping by day the period has a straight forward first and last datetime of that period. But when grouping by day of week its more complicated. Closes issue #335