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

A Small Nit Question for Elapsed Time #68

Open
aesculus opened this issue Oct 3, 2023 · 0 comments
Open

A Small Nit Question for Elapsed Time #68

aesculus opened this issue Oct 3, 2023 · 0 comments

Comments

@aesculus
Copy link

aesculus commented Oct 3, 2023

I have 5 variables (the amount of time the system is cooling, heating, aux heat, fan and off). These are supposed to be 1 minute long each but they can vary a bit, and when the system has to be restarted a minute or more can go by without data so the numbers can often not add up to the value of $timeFilter.

I would like to replace the Off value with a calculated value where the other 4 variables are subtracted from the $timeFilter duration and it becomes the new Off value.

Where and how would I do this? Right now in my query I get each variable from a Select and at bit of math:

sum(cooling)/60 AS "Cooling" FROM "HD21E10576_1_T" WHERE $timeFilter;

Likewise for Heating, Fan and Aux

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

No branches or pull requests

1 participant