From PHPFina to CSV?

Kevin,

Here is a step-by-step guide to use this PHP program:

  1. Copy the php program to the /home/pi/data directory of the emonbase.

  2. Pick a phpfina test feed and take note of the Feed ID number. Try running the PHP progrmam by entering the following command for Feed ID 1:

php /home/pi/data/export_phpfina_feed_to_csv_v4.php 1

  1. If all works as expected, it will create the file:

/home/pi/data/feed_1.csv

FYI - a 2MB phpfina .dat file will become a 12 to 16 MB csv file and will take about 28 seconds to convert to csv.

1 Like