Sample CPU and Shelly power every second for energy runs

This commit is contained in:
Steffen committed 2026-10-08 12:41:48 +02:00
1 parent 79bb6a11cd
commit 17f3b0dbd3
10 files changed
+13 -12

No files matched your search

+1 -1
View File
@@ -44,7 +44,7 @@
<stringProp name="cacheKey">true</stringProp>
<stringProp name="filename" />
<stringProp name="parameters" />
<stringProp name="script">if (!vars.get('shelly_last_poll_ms')) return 0L; return Math.max(0L, Long.parseLong(vars.get('shelly_last_poll_ms')) + Long.parseLong(props.getProperty('shelly_interval_ms','5000')) - System.currentTimeMillis())</stringProp>
<stringProp name="script">if (!vars.get('shelly_last_poll_ms')) return 0L; return Math.max(0L, Long.parseLong(vars.get('shelly_last_poll_ms')) + Long.parseLong(props.getProperty('shelly_interval_ms','1000')) - System.currentTimeMillis())</stringProp>
</JSR223Timer>
<hashTree />
<JSR223PreProcessor guiclass="JSR223PreProcessorGui" testclass="JSR223PreProcessor" testname="Clear stale power values" enabled="true">