Automatic export to mysql
Posted: Mon Feb 17, 2014 11:43 am
Hello,
I tried there a few months to develop a php script, which retrieves data from clientraw.txt file to store the data in a sql database, the script is able to archive and display data a php page in tabular form.
But I am having a big worry, syntax clientraw file that data recovery is not obvious.
In fact everything is on one line, and the script counts the number of characters for data recovery, but according to the number of characters that can create a gap and recording erroneous data.
Depending on the structure of the source file I could code a script simply, and offer all freely.
But for that I need that is implanted in Meteohub function generates a text or data file each is on a different line.
I ask people interested, to support my application
Thank you to you
I tried there a few months to develop a php script, which retrieves data from clientraw.txt file to store the data in a sql database, the script is able to archive and display data a php page in tabular form.
But I am having a big worry, syntax clientraw file that data recovery is not obvious.
In fact everything is on one line, and the script counts the number of characters for data recovery, but according to the number of characters that can create a gap and recording erroneous data.
Depending on the structure of the source file I could code a script simply, and offer all freely.
But for that I need that is implanted in Meteohub function generates a text or data file each is on a different line.
- example:
Station Name
Date and time
Time of last data reception
outside temperature
windchill
relative humidity
Dewpoint
pressure
Wind direction
Instantaneous wind speed
Mean wind speed
gust
Mini outdoor temperature daily
Maximum daily outdoor temperature
Monthly mini outdoor temperature
Maximum Outdoor Temperature Monthly
Windchill mini daily
Windchill maximum daily
Windchill monthly mini
Windchill monthly maximum
RH mini daily
Daily maximum relative humidity
Mini monthly relative humidity
Monthly maximum relative humidity
Dewpoint mini daily
Maximum daily dew point
Dewpoint mini monthly
Dew point of maximum monthly
Daily minimum pressure
Daily maximum pressure
Monthly minimum pressure
Monthly maximum pressure
Average daily maximum wind
Maximum monthly mean wind
Maximum daily gust
Monthly maximum burst
Rainfall
Maximum daily rainfall
Maximum monthly rainfall
I ask people interested, to support my application
Thank you to you