vitotai / BrewPiLess

Use an ESP8266 to replace RPI and Arduino. Running BrewPi without Pi, therefore, BrewPi-Less
356 stars 134 forks source link

iSpindel gravity is not displayed #105

Open peteng72 opened 6 years ago

peteng72 commented 6 years ago

Hello, I have successfully connected my iSpindel to my BPL v3. The tilt, temp and battery values are displayed correctly, but not the gravity. It doesn’t matter whether I choose ”calculated by BPL”, or not. Have I missed something? Rgds, Peter

vitotai commented 6 years ago

If "calculated by BPL" is NOT enabled, BPL looks at "gravity" field from iSpindel. If "calculated by BPL" is enabled, the coefficients must be supplied, and the "gravity" from iSpindel is ignored.

There is an additional "calibrate iSpindel" setting when logging is started. If that is enabled, all the gravity is calculated by Web Browser, and you will have to input gravity data during fermentation.

peteng72 commented 6 years ago

Settings:

gravitysensor

Result:

result

ollinator2000 commented 6 years ago

i coded some commands for testing my iSpindel TCP Server -> brewpiless Adapter . you can use one of the to simulate Spindel Data. ( Makes everything much easier ) May be you can use it.

curl -vv -A "iSpindel" -H "Content-Type: application/json" -X POST -d '{"name":"iSpindel","angle":28.67005,"temperature":27.3125,"battery":4.19708,"gravity":1.04 }' http://brewpiless.local:80/gravity

peteng72 commented 6 years ago

Thanks @ollinator2000 , that helped a lot! Your command worked fine, and I was able to find out that my iSpindel's gravity values were in Plato. BPL doesn't accept gravity values outside the interval 0.80<gravity<1.25, so the default SG=-1.000 reading was never replaced. I was previously using it this way together with Brewfather, but now I need to recalculate the coefficients for SG. Will do a "Brew and Calibrate".

ollinator2000 commented 6 years ago

Really ??? I m not at Home and can't check but I m pretty sure my came as gravity value .

Regards Olli

enorfelt commented 6 years ago

It looks like that the iSpindel reports gravity in Plato. I hade to do a conversion från Plato to SG in order for it to work. It should also be the same when BPI calculates sg as it calculates ange to Plato and not doing a conversion?

vitotai commented 6 years ago

Plato is supported in this branch: https://github.com/vitotai/BrewPiLess/tree/Localization

If you can verify it, that would be great. Verifying new features takes a lot of time.

terragady commented 5 years ago

i coded some commands for testing my iSpindel TCP Server -> brewpiless Adapter . you can use one of the to simulate Spindel Data. ( Makes everything much easier ) May be you can use it.

curl -vv -A "iSpindel" -H "Content-Type: application/json" -X POST -d '{"name":"iSpindel","angle":28.67005,"temperature":27.3125,"battery":4.19708,"gravity":1.04 }' http://brewpiless.local:80/gravity

for windows console just replace ' with " in json string Just the information for anyone who come here with windows machine :)