Total Entries
Total Carbs
Avg Carbs/Meal
Total Insulin
Date | Entries | Carbs | Insulin | Carbs/Meal |
---|---|---|---|---|
Loading statistics... |
Add meals with blood glucose readings to see your data here.
Week | Entries | Carbs | Insulin | Carbs/Meal |
---|---|---|---|---|
Loading statistics... |
POST /log
This endpoint allows logging a meal entry from iPhone Shortcuts or other clients.
{
"MealEntry": {
"bg_before": "120 mg/dL",
"carbs": "45",
"bolus": "4.5",
"meal": "Breakfast",
"photo": "IMG_1234",
"timestamp": "2025-05-09 08:30"
}
}
{
"": "{\"bg_before\":\"113 mg/dL\",\"carbs\":\"12\",\"bolus\":\"1.2\",\"meal\":\"Lunch\",\"photo\":\"IMG_1234\",\"timestamp\":\"2025-05-09 12:30\"}"
}
{
"bg_before": "131 mg/dL",
"carbs": "30",
"bolus": "3.0",
"meal": "Dinner",
"photo": "IMG_1234",
"timestamp": "2025-05-09 18:30"
}
POST /log-bg-after
This endpoint allows updating an existing meal entry with a post-meal blood glucose reading.
{
"id": "2025-05-09 12:30", // The ID of the existing meal entry
"bg_after": "145 mg/dL" // The post-meal blood glucose reading
}
POST /upload-photo
This endpoint allows uploading a photo for an existing meal entry.
{
"id": "2025-05-09 12:30", // The ID of the existing meal entry
"photo_base64": "data:image/jpeg;base64,..." // Base64 encoded image data (optional)
// OR
"photo_name": "IMG_1234" // Photo name/reference
}
The endpoint accepts either:
Endpoint | Method | Description |
---|---|---|
/meals |
GET | Retrieve all logged meals |
/meals/latest |
GET | Retrieve the most recent meal entry |
/meals/{meal_id} |
DELETE | Delete a specific meal entry by ID |
/stats |
GET | Get basic statistics about the logged meals |
/log-bg-after |
POST | Update an existing meal entry with a post-meal blood glucose reading |
/upload-photo |
POST | Upload a photo for an existing meal entry |
/images/{filename} |
GET | Retrieve an image file by filename |
/api/status |
GET | API status endpoint to check if the server is running |