Short answer: send your free disk space to WidgetDash with one HTTP request, then add the WidgetDash widget to your iPhone Home Screen or Lock Screen. It updates every time you push a new value, and it is free for up to 5 numbers.
A full disk takes down services in the most boring and avoidable way. A cron job running df can read free space and percentage used, then push both. The widget gives you a quiet runway indicator so you top up storage on your schedule, not at 3am.
A source is created automatically the first time you push to it, so there is no setup step. Send your free disk space like this:
curl -X PUT https://api.widgetdash.app/api/v1/data/disk_space \
-H "Authorization: Bearer YOUR_WRITE_KEY" \
-H "Content-Type: application/json" \
-d '{
"display_name": "Disk Space",
"icon": "internaldrive.fill",
"category": "DevOps",
"metrics": [
{ "label": "Free", "value": "42 GB" },
{ "label": "Used", "value": "78%" }
]
}'
Small Lock Screen widgets are supported too, so your free disk space can sit right under the clock.
A standard df read on the server. Parse the output and push the free space and percent used.
Yes. Send it as a second metric next to the free space.
See all WidgetDash use cases · How to see any number on your iPhone
Your free disk space, on your Home Screen, in about two minutes.
Get started freeFree for up to 5 sources. Pro is $4.90/mo or $29.90/yr for unlimited sources and faster refresh.