Kivy Reef: A touchscreen interface for reef-pi - Announcements and Discussion thread

OP
NXE

NXE

Community Member
Review score
+0 /0 /-0
View Badges
Joined
Apr 8, 2020
Messages
38
Reaction score
94
Review score
+0 /0 /-0
Location
London
@NXE awesome work!!!

I'm testing the Kivy Reef and my setup is show the analog pH reading instead of the real pH. Did I do anything wrong?

Thanks.!!
Hi Paulo, I have had a look at this and can't see what could be causing this behaviour. Kivy Reef gets the pH value directly from reef-pi via its API. What version of reef-pi are you running and what value is show in reef-pi itself?
 
Top Shelf Aquatics
OP
NXE

NXE

Community Member
Review score
+0 /0 /-0
View Badges
Joined
Apr 8, 2020
Messages
38
Reaction score
94
Review score
+0 /0 /-0
Location
London
Hi Paulo, I have had a look at this and can't see what could be causing this behaviour. Kivy Reef gets the pH value directly from reef-pi via its API. What version of reef-pi are you running and what value is show in reef-pi itself?
Actually, I think I have now identified the issue. It turns out that the reef-pi API call I was using returns the uncalibrated value (the difference was small for my probe, so I never noticed this). I have pushed a fix to the Kivy Reef Github repository. @Paulo Hanashiro you can update the code by running 'git pull' in the directory where you cloned Kivy Reef.
 

Paulo Hanashiro

Community Member
Review score
+0 /0 /-0
View Badges
Joined
Jun 4, 2013
Messages
27
Reaction score
15
Review score
+0 /0 /-0
Location
Sydney/Australia
Actually, I think I have now identified the issue. It turns out that the reef-pi API call I was using returns the uncalibrated value (the difference was small for my probe, so I never noticed this). I have pushed a fix to the Kivy Reef Github repository. @Paulo Hanashiro you can update the code by running 'git pull' in the directory where you cloned Kivy Reef.
Thanks.

I'll test it later today!!
 

robinm

New Member
Review score
+0 /0 /-0
View Badges
Joined
Feb 21, 2021
Messages
7
Reaction score
6
Review score
+0 /0 /-0
Location
Louth
I've installed Kivy_reef and it works very well, thanks for implementing this. I do have one anomaly though, the temp display is always 1 less than the actual temp shown in reef-pi e.g. if reef-pi shows the temp as 25.4 degrees the displayed value in Kivy is 24.4 degrees. Likewise in Fahrenheit 78.4 becomes 77.4.

Any ideas?
 
AquaCave Logo Banner

Ranjib

7500 Club Member
Review score
+0 /0 /-0
View Badges
Joined
Apr 16, 2016
Messages
9,191
Reaction score
15,875
Review score
+0 /0 /-0
Location
Pleasant Hill, Concord
I've installed Kivy_reef and it works very well, thanks for implementing this. I do have one anomaly though, the temp display is always 1 less than the actual temp shown in reef-pi e.g. if reef-pi shows the temp as 25.4 degrees the displayed value in Kivy is 24.4 degrees. Likewise in Fahrenheit 78.4 becomes 77.4.

Any ideas?
do you have calibration configured?
 

robinm

New Member
Review score
+0 /0 /-0
View Badges
Joined
Feb 21, 2021
Messages
7
Reaction score
6
Review score
+0 /0 /-0
Location
Louth
You're correct Ranjib, having looked into it Kivy is displaying the uncalibrated reading rather than the calibrated one. Looking though the code I notice that for PH Kivy takes the last historical reading rather than the current reading which I presume is to avoid the same issue. Changing the temp widget to get the last reading doesn't work atm as the URL for PH historical is "/readings" whereas it appears that for Temp it's "/usage" and the URLs are hardcoded into api.py.

I have a further play and code a few new functions to see if it works.
 

robinm

New Member
Review score
+0 /0 /-0
View Badges
Joined
Feb 21, 2021
Messages
7
Reaction score
6
Review score
+0 /0 /-0
Location
Louth
Okay, it isn't "/usage". Unfortunately as I don't have a working dev environment it's not possible for me to examine the json and debug further, guess I'll leave it to people who know what they're doing :D
 
OP
NXE

NXE

Community Member
Review score
+0 /0 /-0
View Badges
Joined
Apr 8, 2020
Messages
38
Reaction score
94
Review score
+0 /0 /-0
Location
London
Okay, it isn't "/usage". Unfortunately as I don't have a working dev environment it's not possible for me to examine the json and debug further, guess I'll leave it to people who know what they're doing :D
Hi @robinm, Happy New Year! I have just pushed a fix for this issue to GitHub. As you suspected, the api call I was using (/read) seems to return the uncalibrated temperature value so I have switched to calling '/current_reading'. Hopefully this fixes the issue for you (do a 'git pull' in the directory where you cloned kivy-reef to update the code).
 
REEFTIDE

robinm

New Member
Review score
+0 /0 /-0
View Badges
Joined
Feb 21, 2021
Messages
7
Reaction score
6
Review score
+0 /0 /-0
Location
Louth
Thanks, I'll give it a go. I did try modifying to '/current_reading' but was getting an error and without the ability to debug gave up. It was probably something I was doing wrong. Kudos for Kivy_reef though I really like what you've produced.
 

Have you ever torn down a tank over an issue you couldn't seem to beat?

  • Yes! I have. (Tell us about what issue you faced in the thread.)

    Votes: 176 24.2%
  • No. Thankfully, I haven't.

    Votes: 376 51.7%
  • Nope, but it almost happened. (Share your experience in the thread.)

    Votes: 53 7.3%
  • Not yet, but I'm almost there. (Tell us what you're dealing with.)

    Votes: 61 8.4%
  • If you reef long enough, this will eventually happen to you.

    Votes: 47 6.5%
  • Other

    Votes: 14 1.9%
Chaos Aquaculture
Top