-
-
Notifications
You must be signed in to change notification settings - Fork 324
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to reduce the accuracy of "battery" and keep 2-3 digits after the decimal point? #558
Comments
Why? You can always round or truncate on display |
The number of digits displayed in Craftbeerpi is too long. No way to set a decimal point |
Sounds like an issue with Craftbeerpi application |
Craftbeerpi received the data without processing it and displaying it directly. So if you send a signal, you can handle it well. The receiving end does not need to be processed |
Did you measure the voltage of your fully charged battery, checked it against the displayed voltage in the Info page of the iSpindel configuration, and filled in the battery conversion factor in the configuration of the iSpindel? |
You left the default battery conversion factor of 191.8 so the displayed voltage of 3.93 is probably not correct. If you want the correct voltage you need to measure the voltage directly at the battery with a multimeter as described in the FAQ:
That doesn't necessarily solve your problem but if you want less decimals you'll need to find someone who wants to change that in the iSpindel firmware or do it yourself by putting in a pull request. Or as said before process it at the receiving end. |
The iSpindle just sends a floating point number for Tilt, Temp, Gravity and Battery. Presumably CraftBeerPi handles formatting the others correctly, otherwise you'd have lots of digits on your SG too. This sounds like a limitation of CraftBeerPi. It really should be up to the program displaying the data to handle the formatting. |
iSpindel is not responsible for the frontend, it is a measuring device only. Trying to solve such UI issues at this point totally misses the point of separation of concerns |
Although closed, just for documentation that this is a RTFM topic. It is described in my CraftbeerPi4 documentation that digits can be changed for sensor data: https://openbrewing.gitbook.io/craftbeerpi4_support/master/craftbeerpi-4-server/dashboard#item-menu (->Sensor Data in the table of this chapter) I added that feature back un June (PiBrewing/craftbeerpi4-ui@5e5c2e9) |
calling HTTP
{"name":"iSpindel000","ID":2774563,"angle":88.98952,"temperature":26.625,"temp_units":"C","battery":3.972889,"gravity":33.05824,"interval":1,"RSSI":-46}HTTPAPI: posting
"battery":3.972889
The voltage is 6 digits after the decimal point. Actually useless. Other software call data display is too long
The text was updated successfully, but these errors were encountered: