Skip to main content
  • For: section leaders, and the parents they share it with
  • You get: a calendar feed of every planned meeting this term, with its activities, in Google, Outlook or Apple Calendar
  • Time: about ten minutes
  • Scopes: programme:read
Parents ask “what are they doing on Tuesday?” all term. This feed answers it. It lists every meeting in your programme plans, from four weeks ago to the end of the term, with the evening’s activities in the description. When a leader moves a meeting or changes what it holds in the programme planner, the change reaches every subscriber’s calendar on its own. It works beside Events in your calendar. A meeting a leader has already published as an event is left out here, so nobody sees it twice: subscribe to both feeds, or to this one alone while the term is still being planned.

1. Try the request

Each meeting has a date, a title, its activities, and an eventId once it has been published. Its notes for leaders are never sent.

2. Add the script

Go to script.google.com and choose New project. Call it Scoutworks programme. Delete what is there, paste the script below and choose Save.
Code.gs

3. Add your key

In the script editor, choose Project Settings (the cog), then Script Properties → Add script property. Property: SCOUTWORKS_API_KEY. Value: the sandbox key to try it, or your own key.

4. Publish it and subscribe

Publish the script as a web app and subscribe to its address exactly as Events in your calendar does: Deploy → New deployment → Web app, Execute as: Me, Who has access: Anyone, then add the /exec address to your calendar from URL. For one section, add ?plan= and a word from the plan’s name: …/exec?plan=cubs.
Anyone with the address can see your programme: dates, titles and activities. It never holds a young person’s name, or the leaders’ notes. Share it only with your parents and leaders.

5. Switch to your group

In the script, change api-demo.scoutworks.app to api.scoutworks.app, and replace the sandbox key with your own. Your key needs programme:read and nothing else. After a change, choose Deploy → Manage deployments → Edit, set Version to New version and choose Deploy, so the address stays the same.

Variations

  • Show the badge work. Each meeting’s badgeRequirements lists the badge requirements it covers. Add them to the description so parents know what their child is working towards.
  • Longer meetings. Change MEETING_MINUTES to your section’s meeting length.

If something goes wrong

See Errors for every code. A 403 means the key does not have programme:read.