Continuing my energy metering project …
Some of my energy meters upload CSV files by FTP to my server. The tables are in narrow format so I did a little testing and can get Python to open and parse the files.
ExportID Date Value Temperature T1 2017-02-25T23:15:00 36.3 Temperature T2 2017-02-25T23:15:00 36.2 Meter1 kWh 2017-02-25T23:15:00 175814 Meter2 kWh 2017-02-25T23:15:00 3221679
Q1. Am I correct in using system.tag.storeTagHistory to allow me to write both t_stamp and tag value?
Q2. How do I prevent double entries if a CSV file is parsed twice (during development or after a fault).
Q3. How should I run the script as a scheduled task, say, once an hour? Should I create a scheduled task / cron to run a client and have the client exit when complete?
Any ideas to prevent me going off on a difficult path would be very welcome.