Sure. Here is the rundown of calibration:
1) Setup the ph probe by creating a new driver in configuration -> drivers, specify ph-board as type and number of channels 0, i2c address 64. Create an analog input under Configuration -> connectors and associate the new driver, pin 0 with it. Create a new ph monitor and associate the analog input with it. Enable it. At this point you'll start seeing ph readings, usually in the range of -8K.
2) Keep your probe in reference solution(s) and note down the reading. Create a file named calibration.json with observed and expected values. For me it was like this:
Code:
[
{"expected":8.21, "observed": -8768},
{"expected":8.12, "observed": -8189}
]
Note: i used my tanks water (i.e. probe hooked up to tank) and hanna ph checker for my calibration. All we need is one or two set of points each specifying expected vs observed value
3) Disable the probe. Apply calibration using api. Since reef-pi uses cookie for session based authentication, first we'll signin and save the cookie via api, and then use the cookie to make calibration api request with the json file
Code:
curl -c cookie.txt -X POST -d '{"user":"reef-pi","password":"reef-pi"}' http://<IP>/auth/signin
curl -b cookie.txt -X POST -d @calibration.json http://<IP>/api/phprobes/1/calibrate
4) Enable the ph monitor via ui
you'll need a build from master. You know how to do that? or want me to publish one?