An open API service indexing awesome lists of open source software.

https://github.com/yochem/glucose

:candy: Show current blood glucose
https://github.com/yochem/glucose

Last synced: 2 months ago
JSON representation

:candy: Show current blood glucose

Awesome Lists containing this project

README

        

# 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](https://github.com/paulplant/xdripswift) 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](https://www.icloud.com/shortcuts/2aa64252c2db41d5a07a13d9cf9ed576).

The GitHub API allows to run an action with input values. The [GH action
workflow](./.github/workflows/new-entry.yaml) then runs a [shell
script](./convert.sh) to convert the data provided by the shortcut to be human
readable, and fills in the values to a [template html](./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!