Hacking around my streak with the dailymile API
✓ Published0🌍 Public
SSimonS
Last edited Dec 30, 2013
Created on Dec 30, 2013
This example visualizes daily running streaks and mileage from the Dailymile API, showing logged versus unlogged days and adjusted average daily mileage. It fetches user entries via the DailymilePHP client, filters for running workouts, aggregates distances per date, and calculates streaks by counting missing days between the first entry and the current date. The script uses PHP array functions and date manipulation to produce summary statistics, including total mileage and adjusted averages that account for unlogged days.
AI-generated description