am01-echo-09.com

I’ve played Ingress since Beta, and I’ve maintained a record of our local cell scores for several years. I started with a copy of nr13-romeo-08.com, registered the domain name am01-echo-09.com, and began publishing the cell score.

Last year I started working on a Hugo theme for it. The theme downloads the CSV version of the Google Sheet I have been using to record the cell score, applies the template, and publishes the resulting HTML in Cloudflare Pages.

To make things easier, I added a function this Google Apps Script function:

1
2
3
4
5
6
function callDeployHook() {
  var options = {
    'method' : 'post'
  };
  UrlFetchApp.fetch('https://webhook.goes.here.com', options);
}

Now I have a cell in the Google Sheet that executes my callDeployHook function whenever I save the sheet. The webhook kicks off the pipeline that publishes a current copy of the site using the latest version of the theme and the current data in the spreadsheet.