Search Results: 0 meals found

Loading meals...

Overall Statistics

0

Total Entries

0

Total Carbs

0

Avg Carbs/Meal

0

Total Insulin

Recent Statistics
Today

0

Entries

0

Carbs

0

Insulin
This Week

0

Entries

0

Carbs

0

Insulin
Daily Breakdown
Date Entries Carbs Insulin Carbs/Meal
Loading statistics...
Blood Glucose Readings
No blood glucose data available for this day

Add meals with blood glucose readings to see your data here.

Weekly Breakdown
Week Entries Carbs Insulin Carbs/Meal
Loading statistics...
API Documentation
Log Meal Endpoint
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"
}
Log Blood Glucose After Meal Endpoint
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
}
Upload Photo Endpoint
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:

  1. A base64 encoded image in the photo_base64 field, which will be decoded and saved
  2. A photo name/reference in the photo_name field, which will be stored as a reference
Other API Endpoints
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