Skip to content

Commit 09fd9e2

Browse files
authored
Merge pull request #819 from ldrolez/stats
More useful to have the average Humidity and Barometer value in history
2 parents 60c0655 + d20b4fa commit 09fd9e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/SQLHelper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4785,7 +4785,7 @@ void CSQLHelper::AddCalendarTemperature()
47854785
std::stringstream s_str( sddev[0] );
47864786
s_str >> ID;
47874787

4788-
result=safe_query("SELECT MIN(Temperature), MAX(Temperature), AVG(Temperature), MIN(Chill), MAX(Chill), MAX(Humidity), MAX(Barometer), MIN(DewPoint), MIN(SetPoint), MAX(SetPoint), AVG(SetPoint) FROM Temperature WHERE (DeviceRowID='%llu' AND Date>='%q' AND Date<'%q')",
4788+
result=safe_query("SELECT MIN(Temperature), MAX(Temperature), AVG(Temperature), MIN(Chill), MAX(Chill), AVG(Humidity), AVG(Barometer), MIN(DewPoint), MIN(SetPoint), MAX(SetPoint), AVG(SetPoint) FROM Temperature WHERE (DeviceRowID='%llu' AND Date>='%q' AND Date<'%q')",
47894789
ID,
47904790
szDateStart,
47914791
szDateEnd

0 commit comments

Comments
 (0)