Broken Blocky history with rrd4j
Verfasst: 28. Nov 2023 21:44
Hi,
Ich beziehe mich auf folgenen Post viewtopic.php?p=41785&sid=57c2e2681a6db ... ad4#p41785
...und wollte es selber probieren:
Gab dann aber folgenden Fehler:
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
)
Ich beziehe mich auf folgenen Post viewtopic.php?p=41785&sid=57c2e2681a6db ... ad4#p41785
...und wollte es selber probieren:
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()))));
}
Hab leider keine Ahnung, ob es ein Bug oder Bedienungsfehler ist .UnsupportedOperationException: rrd4j does not allow querys without a begin date, unless order is descending and a single value is requested
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
