Extracting clientraw*.txt files in PHP...

Good thing it was raining today so I had some real number to check while attempting to calcualte the values of some of the data.

I now have a php script that parses most of the clientraw.txt file data… A couple items still need to be done and a huge amount of code cleanup… but it is working for the most part.

next clientrawextra and then clientrawdaily

Sample:

All it does right now is reads the current clientraw.txt file and spit out the data in a table. Most of the values now have both types of data like mm and inch etc…

http://www.tnetweather.com/weather/raw
NOTE: USE OF THIS SCRIPT IS LOGGED

Eventually, it will be a part of a larger module which will return an array of values for each of the three files so that a larger php module can use the data and do what it needs to do.

I wish I’d seen this sooner. I already have one of those I created for another project.