You will most likely have to read it in line by line and process and convert
the fields to build a data array, except in the simplest of cases: if the
first field (I assume you meant hrs:min) will be used as a data label, and you
want something like a lines plot from all of the remaining fields. That would
be 9 data sets, 9 lines, but all plotted to the same scale. That is probably
not what you want.
It isn't hard to read and process it. This example builds a data array with
the first field as a label and 10th field as a value, for a single line or bar
plot:
With a little more work, you could decode the hrs:min field and convert it to
a time value. This would be useful if the samples are not at uniform intervals
and you want to see that in the graph.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
My weather station creates a csv file like
22:10,281,44,55,66,77,88,99,00,1010.9
which is basically an APRS weather string with some math done on the last
field of Baro Pressure. The first field is time in hes:min
Is there a way to read that into my php code and only use certain fields or do
I have to make an array from the array?
You will most likely have to read it in line by line and process and convert
the fields to build a data array, except in the simplest of cases: if the
first field (I assume you meant hrs:min) will be used as a data label, and you
want something like a lines plot from all of the remaining fields. That would
be 9 data sets, 9 lines, but all plotted to the same scale. That is probably
not what you want.
It isn't hard to read and process it. This example builds a data array with
the first field as a label and 10th field as a value, for a single line or bar
plot:
With a little more work, you could decode the hrs:min field and convert it to
a time value. This would be useful if the samples are not at uniform intervals
and you want to see that in the graph.