Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement summary graph of last week's usage #5

Merged
merged 2 commits into from
Apr 3, 2015

Conversation

knielsen
Copy link
Member

Så skulle der være docs!

An insert trigger updates table readings_hourly to keep track of
blips per hour; this is faster to query than a GROUP BY SELECT over
large time ranges.

A new API /hourly/FROM/TO allows to obtain hourly usage.

The /lastweek.html page is updated to use the new, more efficient
API, and also the graph is made a bit nicer.
esmil added a commit that referenced this pull request Apr 3, 2015
Implement summary graph of last week's usage
@esmil esmil merged commit 1a7a684 into labitat:master Apr 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants