/glucose

:candy: Show current blood glucose

Primary LanguageHTML

yochem.nl/glucose

A simple web page (in Dutch) that shows my last measured glucose value

But why?

  • I have T1D
  • Playing with GH Actions is fun
  • I want to to be simple, static, and keep my privacy
  • Free, simpler and easier than Nightscout

How it works

Using Apple Shortcuts, a shortcut is fired when I open the xdrip4ios app. The shortcut gets the last glucose value from xdrip, and sends it to a GitHub API using the action provided by the GitHub app. TODO: add screenshot.

here's the shortcut.

The GitHub API allows to run an action with input values. The GH action workflow then runs a shell script to convert the data provided by the shortcut to be human readable, and fills in the values to a template html file using simple placeholders. Lastly, the GH action deploys the built site (a single index.html file in the public/ folder) to GH pages and serves it for free!