08.06.2021, 06:44
Hello
I created a scrip that populates a 'MyPowerLog' table for me
below
I should export it to CSV only the data of the last month as I can do
Furthermore, once the data has been exported, I should delete it in order not to have a continuous table that increases the space occupied dramatically. the script command to delete the table which is it?
Thanks so much
I created a scrip that populates a 'MyPowerLog' table for me
below
Code:
data = storage.get('MyPowerLog', {})
table.insert(data, {
-- usare os.date formattare la stringa
['time'] = os.time(),
['Totale Attiva'] = grp.getvalue('4/0/108'),
['Totale Reattiva'] = grp.getvalue('4/1/108'),
})
storage.set('MyPowerLog', data)
I should export it to CSV only the data of the last month as I can do
Furthermore, once the data has been exported, I should delete it in order not to have a continuous table that increases the space occupied dramatically. the script command to delete the table which is it?
Thanks so much