๐Ÿ“ฆ yochem / glucose

:candy: Show current blood glucose

โ˜… 0 stars โ‘‚ 0 forks ๐Ÿ‘ 0 watching โš–๏ธ MIT License
๐Ÿ“ฅ Clone https://github.com/yochem/glucose.git
HTTPS git clone https://github.com/yochem/glucose.git
SSH git clone git@github.com:yochem/glucose.git
CLI gh repo clone yochem/glucose
Yochem van Rosmalen Yochem van Rosmalen Add license 7617474 1 years ago ๐Ÿ“ History
๐Ÿ“‚ main View all commits โ†’
๐Ÿ“ .github
๐Ÿ“„ .gitignore
๐Ÿ“„ convert.sh
๐Ÿ“„ LICENSE
๐Ÿ“„ README.md
๐Ÿ“„ template.html
๐Ÿ“„ test.sh
๐Ÿ“„ README.md

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!