Omega236 / ioBroker.valuetrackerovertime

Tracks number-changes over timespans like hours/days/years ...
MIT License
4 stars 5 forks source link

HistoryAnalyse modbus.0.inputRegisters.30581_Zählerstand_Bezugszähler: Fehler bei Datenlesen: [object Object] #65

Open ChWeiler opened 1 year ago

ChWeiler commented 1 year ago

Describe the bug
readnow out generate an error

To Reproduce
Steps to reproduce the behavior:

  1. Activate valuetracker
  2. Aktivate "readout now"
  3. Error in Log: HistoryAnalyse modbus.0.inputRegisters.30581_Zählerstand_Bezugszähler: Fehler bei Datenlesen: [object Object]

Versions:

Additional context
The measurement has 4.789.637 entrys in influxdb

valuetrackerovertime.log

ChWeiler commented 1 year ago

I have test it with

var end = Date.now();
var start = end - 100 * 365 * 24 * 3600000;

sendTo('influxdb.0', 'getHistory', {
    id: 'modbus.0.inputRegisters.30581_Zählerstand_Bezugszähler',
    options: {
        start:      start,
        end:        end,
        count: 1000000000,
        aggregate: 'none'
    }
}, function (result) {
    if (result.error) {
        console.log(result.error);
    }
    if (result.success) {
        //successfull enabled
        for (var i = 0; i < result.result.length; i++) {
            console.log(result.result[i].val + ' ' + new Date(result.result[i].ts).toISOString());
        }
        console.log("Anzahl messungen: " + i.toString());
    }    
});

Log: script.js.tests.TestHistoryAdapter: {'name':'RequestTimedOutError','message':'Request timed out'}

if i changed to: console.log("ERROR!!: " + result.error);

Log: script.js.tests.TestHistoryAdapter: ERROR!!: [object Object]