Table and CSV - Printable Version +- Logic Machine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8) +--- Thread: Table and CSV (/showthread.php?tid=3407) |
Table and CSV - Frank68 - 08.06.2021 Hello I created a scrip that populates a 'MyPowerLog' table for me below Code: data = storage.get('MyPowerLog', {}) 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 RE: Table and CSV - admin - 08.06.2021 Use this to delete the storage entry: Code: storage.delete('MyPowerLog') RE: Table and CSV - Frank68 - 08.06.2021 (08.06.2021, 06:49)admin Wrote: Use this to delete the storage entry:Where is the mistake? i read data from my table, prepare csv header, look for data in my table and for each row i would like to add them to csv file, but nothing i have only headers. Code: --date.day, date.hour, date.min, date.sec = 1, 0, 0, 0 thank you RE: Table and CSV - admin - 08.06.2021 Your log in not a database table but a storage entry, so use this: Code: PowTable = storage.get('MyPowerLog', {}) RE: Table and CSV - Frank68 - 08.06.2021 (08.06.2021, 08:40)admin Wrote: Your log in not a database table but a storage entry, so use this: Found problem my error now work all Thank |