tasmota-sml-script icon indicating copy to clipboard operation
tasmota-sml-script copied to clipboard

Arrays for 24h Chart too large

Open gittyNils opened this issue 11 months ago • 2 comments

The array "s24h" in 2_SML_Script_Chart_PV_EcoTrackerEmu.tas is defined with size 1441, but only 1000 Elements are technically possible (stated in https://tasmota.github.io/docs/Scripting-Language/#d-ssize; "#define LARGE_ARRAYS allows for arrays up to 1000 entries"). This results in 24h charts, which only have a fraction of data (16 hours + some minutes)

Image

gittyNils avatar Dec 07 '25 15:12 gittyNils

queried like this:

16:34:28.091 CMD: backlog script>print %s24h[-1]% 16:34:28.107 1000.00

gittyNils avatar Dec 07 '25 15:12 gittyNils

Sorry, I accidentally uploaded the new version of the script I'm currently working on. The scripts will change significantly. I have uploaded the old version again.

ottelo9 avatar Dec 07 '25 16:12 ottelo9