zreptil / nightscout-reporter

a web app to create PDF documents from nightscout data
https://nightscout-reporter.zreptil.de/
BSD 3-Clause "New" or "Revised" License
59 stars 47 forks source link

CGP uses wrong numbers in description if mmol/L #33

Closed steve8x8 closed 4 years ago

steve8x8 commented 4 years ago

"Die Zeit pro Tag in Minuten, in denen die Werte ausserhalb des Bereichs 70 mmol/L bis 180 mmol/L liegen." - this (and several lines below) uses the lower and upper limit values of mg/dL measurements. The "average glucose" axis is correctly labelled, but shows a value (in the text, 115 "mmol/L", ~ 6.4 "real" mmol/L) different from the title page (9.2 mmol/L). This is not my own Nightscout, I guess I'm not entitled to share the URL right now.

steve8x8 commented 4 years ago

Re different averages: this seems to happen only if there are large gaps in the recording. Going from 3 months to a week eliminates the difference. Is the average calculated in multiple places?

cfaagaard commented 4 years ago

I experience the same thing. The pentagon shows the numbers in mmol (which is correct). But the text shows it in mg. It should be shown in mmol also.

image

zreptil commented 4 years ago

the wrong values for mmol in the info area of the cgp will be fixed in version 1.3.8.