{"id":17949938,"url":"https://github.com/noook/google-home-webhooks","last_synced_at":"2025-04-03T15:43:42.715Z","repository":{"id":123779264,"uuid":"264022400","full_name":"noook/google-home-webhooks","owner":"noook","description":"Webhook server for IFTTT services triggered by Google Home","archived":false,"fork":false,"pushed_at":"2020-05-24T16:11:35.000Z","size":4803,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-09T04:28:00.023Z","etag":null,"topics":["golang","google-home","ifttt","ifttt-webhooks","wakeonlan"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/noook.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":"2020-05-14T20:51:24.000Z","updated_at":"2022-11-06T04:32:29.000Z","dependencies_parsed_at":"2024-06-19T05:04:42.635Z","dependency_job_id":"16064472-7a66-4443-b03d-d6cb4ee90ebf","html_url":"https://github.com/noook/google-home-webhooks","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/noook%2Fgoogle-home-webhooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noook%2Fgoogle-home-webhooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noook%2Fgoogle-home-webhooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noook%2Fgoogle-home-webhooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/noook","download_url":"https://codeload.github.com/noook/google-home-webhooks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247031368,"owners_count":20872288,"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":["golang","google-home","ifttt","ifttt-webhooks","wakeonlan"],"created_at":"2024-10-29T09:35:46.917Z","updated_at":"2025-04-03T15:43:42.700Z","avatar_url":"https://github.com/noook.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Google Home Webhooks\n\n## Context\n\nI just bought a Google Home Mini, and was wondering what was possible to make with it.\nThe goal was mainly to trigger code behind voice, so I tried to trigger something that I already\ndo through CLI: turning on my computer remotely with a WakeOnLAN.\n\nI also heard about [IFTTT](https://ifttt.com) that allows you to automate a lot of things,\nand an interesting feature is the webhooks. They allow me to make HTTP requests with JSON body\nto a given URL, when an event (Google Home action) occurs.\n\n## Idea\n\nWebhooks are not secure, and everybody with the URL can trigger it, so I had to find a way\nto be authenticated so only IFTTT can make requests. So I created a command that generates\na [JWT](https://en.wikipedia.org/wiki/JSON_Web_Token) that also attaches data to it. So when\nthe webhook receives the request, I can verify that I am the creator of the token, and can also \nread what's inside it. In this example, I'm attaching the MAC address of my computer.\n\n## Usage\n\nSetup your environment variables either by exporting it in your shell or by creating a `.env` file.\nYou need to fill in the `JWT_SECRET` and `SERVER_PORT` variables.\n\nYou can build the command then run it with :\n```sh\ngo build -o ifttt-wol\n\n./ifttt-wol generate \u003cyour-mac-address-here\u003e\n# ey.................\n```\n\nKeep this token and configure your IFTTT action, then pass the token in the `POST` request JSON\npayload:\n```json\n{\n  \"token\": \"\u003cyour-token-here\u003e\"\n}\n```\n\nThen run the server with\n```sh\n./ifttt-wol server\n```\n\nYour server is ready to accept hooks !","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoook%2Fgoogle-home-webhooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnoook%2Fgoogle-home-webhooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoook%2Fgoogle-home-webhooks/lists"}