A simple tool to calibrate and convert pH measurements using a two point method.
This project contains two binaries:
caliph
, for calibrating a pH electrode using a two point pH method.
conph
for converting measured pH values to calibrated ones.
Once installed (see below), the two methods available are:
When the temperature is 25˚C during the measurement:
```console $ caliph 3.97 10.2
Slope 0.96308
```
Optional temperature argument:
```console $ caliph 3.97 10.2 -t 22.3
Slope 0.96828
```
Boolean flat to save the calibration to calibration.ph
in the current directory:
```console $ caliph 3.97 10.2 -t 22.3 -s
Slope 0.96828
Saved to calibration.ph ```
Assuming the calibration.ph
file exists:
```console $ conph 3.5
Input 3.5
```
Custom calibration settings fof the slope and offset:
-c
sets it to custom, -s VAL
is for the slope, -o VAL
is for the offset
```console $ conph 3.5 -c -s 1.1 -o 0.02
Input 3.5
```
The latest version of can be installed or updated with cargo install
:
sh
cargo install caliph
or
sh
cargo install --git https://github.com/pdunne/caliph-rs
Binary releases will also be made available on the github page.
Follow these instructions to compile cargo-outdated
, then skip down to Installation.
cargo
and Rust installed$ git clone https://github.com/kbknapp/cargo-outdated && cd cargo-outdated
$ cargo build --release
target/release/cargo-outdated
For caliph
:
```text caliph 0.1.3 Peter Dunne Calculates corrections from 2 point pH calibration
USAGE:
caliph [FLAGS] [OPTIONS]
FLAGS: -h, --help Prints help information -s, --store Store calibration to file calib.ph -V, --version Prints version information
OPTIONS:
-t, --temperature
ARGS:
and for conph
```text conph 0.1.3 Peter Dunne Corrects pH measurement with calibration
USAGE:
conph [FLAGS] [OPTIONS]
FLAGS: -c, --custom Custom Input -h, --help Prints help information -V, --version Prints version information
OPTIONS:
-o, --offset
ARGS:
calpih-rs
is released under the terms of the Mozilla Public
License, v. 2.0. See the LICENSE.