chiefwigms / picobrew_pico

MIT License
149 stars 63 forks source link

iSpindel tilt degrees on json file #361

Closed phcuriel closed 5 months ago

phcuriel commented 1 year ago

Thanks for making this brew server available to everyone :)

Request: The iSpindel page mentions a way to do improved calibration while brewing recording the tilt degrees measurement and taking periodic external SG measurements (refractometer): https://github.com/universam1/iSpindel/blob/master/docs/Calibration_en.md

Looking at current json file on the server sessions folder it looks like the tilt degrees are not recorded (only the time, temp and calculated gravity)...Could "tilt" be added to file? {"time": 1670254906506.696, "temp": 73.9624939, "gravity": 20.98570061},

This way could take periodic SG measurements while fermenting and record the measurement and time then later can look at the json file and use this info to refine the iSpindel calibration formula

Also how do I convert current "time" on json file 1670254906506.696 to hh:mm

BuckoWA commented 1 year ago

Tilt angle can be added easily next time I tweak the code. Would propose JSON file be

{"time": 1670254906506.696, "temp": 73.9624939, "angle": XX.XXX, "gravity": 20.98570061},

The time is Linux epoch time, which is seconds after January 1, 1970 UTC. There are online tools for converting time.

https://www.epochconverter.com/ is an example.

phcuriel commented 1 year ago

Excellent, thanks!

tmack8001 commented 1 year ago

@BuckoWA your proposed file format changes sound reasonable to me 👍

chiefwigms commented 1 year ago

i concur!

tmack8001 commented 1 year ago

@BuckoWA any update on this work?

chiefwigms commented 5 months ago

fixed w/ #380