The original post: /r/selfhosted by /u/colbertross on 2025-01-02 04:35:21.

Hello! Found this subreddit helpful, so hopefully someone can find this helpful!

restic-json

Just a simple Flask (python) app that fetches timestamp info from my Restic snapshots out outputs them as JSON at http://server-ip:5151/last-backup. It caches the output to speed things up.

You can use the ‘customapi’ widget to then create this:

https://preview.redd.it/ygrhktaodiae1.png?width=606&format=png&auto=webp&s=fd81d467ade603862729d657e9818e6dcf3c0835

All the code for the app + the widget are in the github repo!