Seite 1 von 1

Broken Blocky history with rrd4j

Verfasst: 28. Nov 2023 21:44
von Oekel
Hi,

Ich beziehe mich auf folgenen Post viewtopic.php?p=41785&sid=57c2e2681a6db ... ad4#p41785
...und wollte es selber probieren:
Bildschirmfoto 2023-11-28 um 21.43.32.png

Code: Alles auswählen

var tvOnTime;


if (items.getItem('Pingable_TV_Online').state == 'ON') {
  console.warn('abc');
  tvOnTime = items.getItem('Pingable_TV_Online').history.previousState(true)?.timestamp;
  console.info(tvOnTime);
  console.info((time.ChronoUnit.MINUTES.between(tvOnTime,(time.ZonedDateTime.now()))));
}

Gab dann aber folgenden Fehler:
UnsupportedOperationException: rrd4j does not allow querys without a begin date, unless order is descending and a single value is requested
Hab leider keine Ahnung, ob es ein Bug oder Bedienungsfehler ist .

Habt ihr irgendeinen Hinweis? (Bsp. für history und/oder previousState(true) in Groovy würde mir im Falle eines Bugs in Blocky ebenfalls weiterhelfen ;) )

Re: Broken Blocky history with rrd4j

Verfasst: 29. Nov 2023 06:33
von udo1toni
Please only in german Language ;)