Nightscout in your Synology NAS
Use a translator and have a look here too: https://t1d.dzienia.pl/nightscout_synology_tutorial/
Work in progress
This guide is written after the Heroku’s Next Chapter announcement of August 25, 2022. First, I want to put Heroku in the spotlight. They have had a big contribution to the growth of our do-it-yourself community with their free tier for a long time. Many, many thanks!
The migration of our three Nightscout sites from Heroku and MongoDB Atlas to our Synology is a success. Performed a full data migration for having zero data loss, running multiple Nightscout instances, working URL’s shared with our hospital, I’m syncing my girlfriends data to my xDrip+ follower, using a free Let’s Encrypt certificate and managed to get rid of the NSClient “xhr poll error”, also bought a PositiveSSL Domain Validation certificate for EUR 10 a/year just to see it work (all OK).
It was a quite intense ride and therefore happy to share the learnings to help others. I will spend time to fill this page incrementally, because having a baby with a fun and busy job really limits your time.
Most people who own a Synology a pretty technical, this page is written for that audience. Self-hosting Nightscout on a Synology will be intense in patch management and maintenance, but also have some strong advantages. When you are not that technical, do not have the time to maintain all components or just want someone to do it for you, consider a hosted Nightscout service..
Nightscout Synology Tutorial using SSH and Portainer as mentioned in this Facebook comment. Definitely a good read, but a different implementation due to SSH and Portainer.
See history of this page on GitHub for information.
For this solution, the components below are used.
Services to migrate from
Hardware router at home
UPS Power supply for Synology
Android smartphone for T1D patient
Android smartphone for caregiver
AndroidAPS, most recent for T1D Patient
xDrip+, most recent for T1D Patient
xDrip+, most recent for caregiver
Synology DiskStation Manager, most recent
Docker container mongo, v4.4.17
Docker container mongo-express, latest
Docker container Nightscout, latest
A Nightscout token to provide hospital access to reporting
![Concept of the visual steps](../img/Self host Nightscout v0.4.drawio.png “Concept of the visual steps”)
Steps correspond to the numbering on the drawing.