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

Script to summarize Sensorpush data #81

Merged
merged 8 commits into from
Jun 24, 2021

Conversation

alneberg
Copy link
Member

Should run daily to fetch hourly temperature averages for all sensors. Will check if any sensor is outside of its defined limits, and record the start and stop time for the outside of limit interval. For any such interval and 1 hour before and 1 hour after, temperature samples are kept in the original resolution, which seems to be 1 measurement per minute.

@alneberg alneberg requested a review from aanil June 22, 2021 13:05
return limit_lower, limit_upper


def to_celsius(temp):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Strange that sensorpush does not give you results in celsius

Copy link
Member

@aanil aanil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Had a quick look, looks mostly ok to me. I can fix things later if something doesn't work out.

@aanil aanil merged commit 55e7b73 into NationalGenomicsInfrastructure:master Jun 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants