{"id":14036443,"url":"https://github.com/domoritz/breakfast","last_synced_at":"2025-04-15T04:13:44.830Z","repository":{"id":82173353,"uuid":"78399301","full_name":"domoritz/breakfast","owner":"domoritz","description":"Friday breakfast","archived":false,"fork":false,"pushed_at":"2022-06-02T00:11:58.000Z","size":191,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-06T20:57:57.566Z","etag":null,"topics":["breakfast","calendar","google-sheets","reminder-emails","sheet","tally"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/domoritz.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-01-09T06:14:17.000Z","updated_at":"2024-09-24T21:12:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"bb5978bd-f078-4fbe-ab6e-8a57fed66c55","html_url":"https://github.com/domoritz/breakfast","commit_stats":{"total_commits":15,"total_committers":4,"mean_commits":3.75,"dds":"0.19999999999999996","last_synced_commit":"8d0c39a42e8e3c201d3a536bc4f31810a701441e"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/domoritz%2Fbreakfast","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/domoritz%2Fbreakfast/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/domoritz%2Fbreakfast/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/domoritz%2Fbreakfast/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/domoritz","download_url":"https://codeload.github.com/domoritz/breakfast/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249003958,"owners_count":21196793,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["breakfast","calendar","google-sheets","reminder-emails","sheet","tally"],"created_at":"2024-08-12T03:01:58.194Z","updated_at":"2025-04-15T04:13:44.812Z","avatar_url":"https://github.com/domoritz.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# Friday breakfast for CSE\n\nThis is the code to manage Friday breakfast at UW CSE. The code is deployed from `/cse/web/community/breakfast`. \n\n## Features\n\n* Sign up in a Google Sheet\n* Send reminder emails to the person who signed up\n* Calendar automatically generated (and updated) from the spreadsheet\n* Breakfast tally that shows how often one has brought breakfast\n\n## How does the magic work?\n\nAll the data is hosted in a Google Sheet at https://docs.google.com/spreadsheets/d/1ofQZCbGJSaHsGjG5v7QOjtN1ksHD_tYIrw0HC17NKP8/edit. The spreadsheet has 5 sheets.\n\n* **SignUp**: Contains the sign ups for the current quarter\n* **Past** (hidden): All the past data. At the end of the quarter, the person in charge has to move data from SignUp here.\n* **All** (hidden): Automatically generated. Union of the data for the current quarter and the past for the tally. This is done with `=UNIQUE({SignUp!A1:C;Past!A1:C})`.\n* **Tally**: Automatically generated as a SQL query that computes the top breakfast bringers. The query is `=QUERY(All!A1:C,\"select max(B), C, count(A) where B !='' and A \u003c now() group by C order by count(A) desc label max(B) 'Name', count(A) 'Count'\")`\n* **Templates** (hidden): A sheet with templates for the reminder emails.\n\nTo send reminder emails and synchronize the calendar, we have a couple of [Google Apps scripts](https://developers.google.com/apps-script/).\n\nThe scripts are in a project at https://script.google.com/macros/d/M0pV2KSX5V009GYhTKLyknTqujjucHJmb/edit. A copy of the scripts are also in the scripts folder.\n\nThe functions in these scripts get run by a set of [triggers](https://developers.google.com/apps-script/guides/triggers/).\n\n![Triggers](triggers.png)\n\nThe send reminder script goes through the sign up sheet and sends an email either 1 or 4 days before the set date. The template for the email is defined in the spreadsheet.\n\nThe calendar synchronization adds or updates events in this calendar: https://goo.gl/BdOI7K. To keep track of the events, there is a hidden column in the sign up sheet with the event id.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdomoritz%2Fbreakfast","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdomoritz%2Fbreakfast","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdomoritz%2Fbreakfast/lists"}