nightscout / cgm-remote-monitor

nightscout web monitor
GNU Affero General Public License v3.0
2.35k stars 71.33k forks source link

Ability to view BG in clock view as mmol/l or mg/dl #8262

Open BrightScreenTV opened 1 month ago

BrightScreenTV commented 1 month ago

In the clock view the page only seems to display mg/dl and doesn't respect the user's settings on the main dashboard

I'd like to propse that a toggle style button is available on the clock view (in whatever variation) that allows for switching between the two different units.

I'd be happy to contribute by forking the project and coding this feature in. On first glance, the quickest route seems to be to alter the lib/client/clock-client.js file although more research might provide a better solution in terms of defaulting to the user's saved units setting when the clock appears.

Please see attached a mock-up of my suggestion:

units-mock

psonnera commented 1 month ago

@BrightScreenTV I believe any development would be welcome! Thanks!