Hi,
I've been playing with emoncms for a while now and I was wondering if any of you have created scripts to manually create the data and meta files required for each feed.
I have recently updated to 9.1 from 8 and, for complicated reasons) would like to start with a clean data set, but keep all of my input and feed definitions (there are well over 100 )
I've tried deleting the data files (phpfina, phpfiwa) but they are not re-created when a new data point is received ( i believe that ver 8 used to do it)
Any insight would be greatly appreciated.
thanks
L2
Re: Manually create Data capture files?
Did you delete the feed meta files too in the data folders? They should be left in place, and just delete the data files to make a fresh start.
Paul
Re: Manually create Data capture files?
Thanks Paul,
That did it....
L2
Re: Manually create Data capture files?
Ooops,
Actually it didn't work... I was looking in the wrong folders...
I had a look at the code and all the .meta and .dat files are created when the feed is defined through the interface. If the file does not exist when a data point is posted, the code throws an exception...
I eventually created 1 feed through the interface and then copied that meta file for each of my feeds. Using a HEX editor, I then updated the feed ID in the meta file. I then created a bunch of empty .dat files based on my feed ids and sample periods and Shazam! I'm back in business.
Thanks
L2