Its not steady. its varying.. but the old values is making the chart y axis so large that the new calibrated values are not being visualized correctly. Bare with me, I'll list down the steps to use reef-pi db command to get rid of the old values,
- Stop reef-pi (sudo systemctl stop reef-pi.service)
- Use reef-pi db command to list the ph probes (sudo reef-pi db list phprobes). Obtain the probe id from here. For me it shows something like this
Code:
{
"1": {
"id": "1",
"name": "TestPH",
"enable": true,
"period": 2,
"analog_input": "1",
"control": false,
"notify": {
"enable": false,
"min": 0,
"max": 0
},
"upper_eq": "",
"downer_eq": "",
"min": 0,
"max": 0,
"hysteresis": 0,
"is_macro": false
}
}
- Notice my phprobe id is 1. Next use this id to obtain the ph readings values
Code:
sudo reef-pi db show ph_readings 1 > readings.json
. This should dump the readings in readings.json file, edit to and remove all the bogus values (you'll see values in the range of 1000s (way outside 0-14), delete those.
- The reupload the file like this:
Code:
cat readings.json | sudo reef-pi db update ph_readings 1
- Start reef-pi again (sudo systemctl start reef-pi.service)
Thats it. your old data is gone now.. and the graph should automatically reset and show you the new values which should be in 5.5-10 range at worst, but with daily cycle.
For ease of editing i pass the reef-pi db output via jq command, it indents the json file , making it easy to read/edit.
To install jq command
Then to use it execute the 3rd step like this:
Code:
sudo reef-pi db show ph_readings 1 | jq . | readings.json
Sorry for your trouble. Let me know if you try this and if it worked. Happy to helo you through this...