Promises are used to ensure all aynchronous queries are resolved before the file is written out.
A scheduled shell script runs this script, commits and pushes the updated readings file to the GitHub Pages repository for this site
This would not be needed if the server was exposed to the internet. I do not want to expose the server to the internet.
The Fetch API is used in a client-side script to access the readings file and export a promise which resolves to a javascript object containing the readings data. Scripts in the html body import this to...