{"id":15713789,"url":"https://github.com/miharekar/slacker","last_synced_at":"2025-05-12T23:24:00.468Z","repository":{"id":148975084,"uuid":"125611031","full_name":"miharekar/slacker","owner":"miharekar","description":"HomePod + Raspberry Pi + Crystal+ Slack = Magic","archived":false,"fork":false,"pushed_at":"2020-12-16T12:52:12.000Z","size":23,"stargazers_count":10,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-01T04:41:28.451Z","etag":null,"topics":["crystal","crystal-language","homebridge","homepod","raspberry-pi","siri","slack"],"latest_commit_sha":null,"homepage":null,"language":"Crystal","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/miharekar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","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},"funding":{"github":"miharekar"}},"created_at":"2018-03-17T08:38:13.000Z","updated_at":"2024-05-31T08:35:14.000Z","dependencies_parsed_at":"2023-09-02T09:34:36.418Z","dependency_job_id":null,"html_url":"https://github.com/miharekar/slacker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miharekar%2Fslacker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miharekar%2Fslacker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miharekar%2Fslacker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miharekar%2Fslacker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/miharekar","download_url":"https://codeload.github.com/miharekar/slacker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253838548,"owners_count":21972182,"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":["crystal","crystal-language","homebridge","homepod","raspberry-pi","siri","slack"],"created_at":"2024-10-03T21:33:30.065Z","updated_at":"2025-05-12T23:24:00.439Z","avatar_url":"https://github.com/miharekar.png","language":"Crystal","funding_links":["https://github.com/sponsors/miharekar"],"categories":[],"sub_categories":[],"readme":"# slack\n\nA simple utility to turn Slack's snooze mode on and off e.g. when you go into a meeting.\n\nWith the server running you can teach Siri on your HomePod/iPhone to change your Slack status like this (click for video demo):\n\n[![Siri Do Not Disturb](https://pbs.twimg.com/ext_tw_video_thumb/974351899448180736/pu/img/m6ICgZpFm5ku3xci.jpg)](https://twitter.com/mr_foto/status/974351952825016320/video/1)\n\n## Installation\n\nYou'll need `secrets.yml` file with Slack's [legacy token](https://api.slack.com/custom-integrations/legacy-tokens). It needs to have this structure:\n\n```\nslack:\n  token: your-token-goes-here\n```\n\nYou'll also need to install [Crystal](https://crystal-lang.org/). It's trivial to do on a [modern computer](https://crystal-lang.org/docs/installation/).\n\nOn a Raspberry Pi you have to install a semi-official build via [Portalier](http://public.portalier.com/raspbian/).\n\n\n## Usage\n\n### On a modern computer\n\n1. `shards install`\n2. `crystal run server.cr`\n3. http://localhost:6789/\n\n### On a Raspberry Pi\n\n1. `shards install`\n2. `crystal build -p server.cr`\n3. `./server`\n4. http://raspberrypi.local:6789/\n\n| Normal                                           | Snoozed                                           |\n|--------------------------------------------------|---------------------------------------------------|\n| ![Normal Slack](https://i.imgur.com/CtRjI8v.png) | ![Snoozed Slack](https://i.imgur.com/NjYs69D.png) |\n\n\n## Usage with Homebridge\n\nYou'll need:\n- [homebridge](https://github.com/nfarina/homebridge)\n- [homebridge-http](https://github.com/rudders/homebridge-http)\n- Both `homebridge` and `server` running in the background via `systemd`\n- Homebridge config along these lines:\n\n```\n\"accessories\":[\n  {\n    \"accessory\": \"Http\",\n    \"name\": \"Slack\",\n    \"switchHandling\": \"yes\",\n    \"http_method\": \"GET\",\n    \"on_url\":      \"http://127.0.0.1:6789/api/on\",\n    \"off_url\":     \"http://127.0.0.1:6789/api/off\",\n    \"status_url\":  \"http://127.0.0.1:6789/api/status\",\n    \"service\": \"Switch\"\n   }\n],\n```\n\n## Contributing\n\nFeel free to fork and customize with your own API calls: https://api.slack.com/methods\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiharekar%2Fslacker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmiharekar%2Fslacker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiharekar%2Fslacker/lists"}