cgq-qgc/HydroSensorReader

Add support for Hydrolab files

x-malet opened this issue · 1 comments

Support files coming from a Hydrolab-MS5 probe.

File head looks like this :

HYDROLAB MS5 65376
"Log File Name : site_name_for_hydrolab_file"
"Setup Date (YYYY-MM-DD) : 2017-02-22"
"Setup Time (HH:MM:SS) : 11:48:20"
"Starting Date (YYYY-MM-DD) : 2017-02-22"
"Starting Time (HH:MM:SS) : 12:00:00"
"Stopping Date (YYYY-MM-DD) : 2024-09-22"
"Stopping Time (HH:MM:SS) : 12:48:20"
"Interval (HH:MM:SS) : 00:15:00"
"Sensor warmup (HH:MM:SS) : 00:02:00"
"Circltr warmup (HH:MM:SS) : 00:02:00"

"Date","Time","","Temp","","TDG","","TDG","","TDG","","IBatt","","EBatt","","IBatt","","EBatt","","Circ",""
"YYYY-MM-DD","HH:MM:SS","","°C","","mmHg","","psia","","mV","","Volts","","Volts","","%Left","","%Left","","Status",""

2017-02-22,12:00:00,"","8.24","","751","","14.53","","12.12","","11.4","","0.0","","87","","0","","1",""
2017-02-22,12:15:00,"","8.79","","752","","14.54","","12.13","","11.4","","0.0","","87","","0","","1",""
2017-02-22,12:30:00,"","8.83","","752","","14.54","","12.13","","11.4","","0.0","","87","","0","","1",""
2017-02-22,12:45:00,"","9.76","","752","","14.55","","12.14","","11.4","","0.0","","87","","0","","1",""
2017-02-22,13:00:00,"","10.33","","752","","14.54","","12.13","","11.4","","0.0","","87","","0","","1",""
2017-02-22,13:15:00,"","10.70","","752","","14.54","","12.13","","11.4","","0.0","","87","","0","","1",""
2017-02-22,13:30:00,"","10.57","","751","","14.52","","12.12","","11.4","","0.0","","87","","0","","1",""
2017-02-22,13:45:00,"","10.69","","751","","14.53","","12.12","","11.4","","0.0","","86","","0","","1",""

Be careful because if the probe's batteries are dead, the input message is

"Late probe turn on at 170409 192950"
"Power loss from 700101 000000 to 170409 192955"
"Late probe turn on at 170409 192955"
"Power loss from 700101 000000 to 170409 193000"
"Late probe turn on at 170409 193000"
2017-04-09,19:30:00,"","55.00","#","NAN","","NAN","","NAN","","0.0","","0.0","","0","","0","","0",""
"Power loss from 700101 000000 to 170409 194316"
"Late probe turn on at 170409 194316"
"Power loss from 700101 000000 to 170409 194320"
"Late probe turn on at 170409 194320"
"Power loss from 700101 000000 to 170409 194324"