Oh sorry, yes, not sure what the issue was.
SELECT sum("diff_rain_mm") AS "sum_diff_rain_mm" FROM "telegraf"."autogen"."emon_input" WHERE time > now() - 1d GROUP BY time(1d) tz('America/Chicago')
[{
"time": "2021-02-24T06:00:00.000Z",
"sum_diff_rain_mm": 0.8999999999999986
}, {
"time": "2021-02-25T06:00:00.000Z",
"sum_diff_rain_mm": 0.6000000000000014
}]
Interestingly, I'm not sure that date string is ISO compliant. The Z on the end is not correct as there is a "+06:00". I just noticed there is no '+' so it is definitely not compliant!!!!
I think that must be added by the NR node. The query from the command line;
> SELECT sum("diff_rain_mm") AS "sum_diff_rain_mm" FROM "telegraf"."autogen"."emon_input" WHERE time > now() - 1d GROUP BY time(1d) tz('America/Chicago')
name: emon_input
time sum_diff_rain_mm
---- ----------------
1614146400000000000 0.8999999999999986
1614232800000000000 0.6000000000000014
> SELECT sum("diff_rain_mm") AS "sum_diff_rain_mm" FROM "telegraf"."autogen"."emon_input" WHERE time > now() - 1d GROUP BY time(1d)
name: emon_input
time sum_diff_rain_mm
---- ----------------
1614124800000000000 0.8999999999999986
1614211200000000000 0.6000000000000014