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
- Host: GitHub
- URL: https://github.com/yochem/glucose
- Owner: yochem
- Created: 2024-05-22T20:20:25.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-07T12:58:53.000Z (12 months ago)
- Last Synced: 2024-06-07T13:11:11.786Z (12 months ago)
- Language: HTML
- Homepage: http://yochem.nl/glucose/
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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!