volkszaehler / vzlogger

Logging utility for various meters & sensors
http://wiki.volkszaehler.org/software/controller/vzlogger
GNU General Public License v3.0
145 stars 124 forks source link

SendZero not contained in configEditor #193

Closed bgewehr closed 9 years ago

bgewehr commented 9 years ago

The config editor does not support the send_zero attribute for s0 meters.

How can the parameter be used?

mbehr1 commented 9 years ago

see #195

mbehr1 commented 9 years ago

can this issue be closed now? (with #195 merged)

bgewehr commented 9 years ago

send_zero true / false seems ok! But aggmode must be AVG SUM or MAX, not avg sum or max, right? Or is it case insensitive?

mbehr1 commented 9 years ago

It’s case insensitive:

const char *aggmode_str = optlist.lookup_string(pOptions, "aggmode"); src/Channel.cpp: if (strcasecmp(aggmode_str, "max") == 0 ) { src/Channel.cpp: _buffer->set_aggmode(Buffer::MAX); src/Channel.cpp: } else if (strcasecmp(aggmode_str, "avg") == 0 ) { src/Channel.cpp: _buffer->set_aggmode(Buffer::AVG); src/Channel.cpp: } else if (strcasecmp(aggmode_str, "sum") == 0 ) { src/Channel.cpp: _buffer->set_aggmode(Buffer::SUM); src/Channel.cpp: } else if (strcasecmp(aggmode_str, "none") == 0 ) { src/Channel.cpp: _buffer->set_aggmode(Buffer::NONE); src/Channel.cpp: _buffer->set_aggmode(Buffer::NONE);

Am 03.08.2015 um 23:28 schrieb Bernd Gewehr notifications@github.com:

send_zero true / false seems ok! But aggmode must be AVG SUM or MAX, not avg sum or max, right? Or is it case insensitive?

— Reply to this email directly or view it on GitHub https://github.com/volkszaehler/vzlogger/issues/193#issuecomment-127410588.

Gruß

Matthias