This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Table and CSV
#1
Hello

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
Reply


Messages In This Thread
Table and CSV - by Frank68 - 08.06.2021, 06:44
RE: Table and CSV - by admin - 08.06.2021, 06:49
RE: Table and CSV - by Frank68 - 08.06.2021, 08:39
RE: Table and CSV - by admin - 08.06.2021, 08:40
RE: Table and CSV - by Frank68 - 08.06.2021, 08:51

Forum Jump: