My phone's battery has been blogging for 7 years
Seven years ago, I wrote a post about a tiny experiment: publishing my phone's battery status to my website. The updates have quietly continued ever since, appearing at https://dri.es/status.
Every 20 minutes or so, my phone sends its battery level and charging state to a REST endpoint on my Drupal site. The exact timing depends on iOS background scheduling, which has a mind of its own.
For years, this lived quietly at https://dri.es/status. I never linked to it outside the original blog post, so it felt like a forgotten corner of my site. Still working, but mostly invisible.
Despite its low profile, people still mention it occasionally after all this time. This prompted me to bring it into the light.
I have now added a battery icon to my site's header. It's a dynamically generated SVG that displays my phone's current battery level and charging state.
It's a bit goofy, but that is what makes personal websites special. You get to experiment with it and make it yours.
— Dries Buytaert