04.09.2022, 10:36
hi to all,
I'm generating a dynamic table that should be saved to a stoarge at the end of the script.
This stable if quite dynamic and new keys can be created during the execution.
In particular I'm generating:
during the execution I dump to log the table and it is correct, but when I storage.set the table.... the table hours become empty
this is the json dump pf the table
this is the storage view for the same table (storage.set is the next instruction after the dump)
cannot figure out why I'm loosing the key
thanks
ciao
Marco
I'm generating a dynamic table that should be saved to a stoarge at the end of the script.
This stable if quite dynamic and new keys can be created during the execution.
In particular I'm generating:
Code:
a general Table tree
\ Year
\ day
\ Total by day
\Hours
\ 00
...
\ 23
during the execution I dump to log the table and it is correct, but when I storage.set the table.... the table hours become empty
this is the json dump pf the table
Code:
{
"lastSample":348,
"description":"UNARETI - Linea principale 5.5kW",
"lastTime":1662285437,
"datiConsumo":{
"2022":{
"giorno":{
"247":{
"ora":{
"12":"0.154666666666667"
},
"totale":"1.69234333333334"
}
},
"mensile":{
"9":"1.69234333333334"
},
"totale":"1.69234333333334",
"settimana":{
"35":"1.69234333333334"
}
},
"totale":"1.69234333333334"
}
}
this is the storage view for the same table (storage.set is the next instruction after the dump)
cannot figure out why I'm loosing the key
thanks
ciao
Marco