{"id":22053299,"url":"https://github.com/bertrandom/zerokey","last_synced_at":"2026-05-04T04:33:51.334Z","repository":{"id":66843656,"uuid":"508617564","full_name":"bertrandom/zerokey","owner":"bertrandom","description":null,"archived":false,"fork":false,"pushed_at":"2024-09-17T16:33:59.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-23T15:45:04.262Z","etag":null,"topics":[],"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/bertrandom.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":"2022-06-29T08:57:49.000Z","updated_at":"2022-06-29T08:58:01.000Z","dependencies_parsed_at":"2024-09-17T20:16:29.127Z","dependency_job_id":null,"html_url":"https://github.com/bertrandom/zerokey","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bertrandom/zerokey","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bertrandom%2Fzerokey","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bertrandom%2Fzerokey/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bertrandom%2Fzerokey/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bertrandom%2Fzerokey/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bertrandom","download_url":"https://codeload.github.com/bertrandom/zerokey/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bertrandom%2Fzerokey/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32595197,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T22:12:39.696Z","status":"online","status_checked_at":"2026-05-04T02:00:06.625Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-11-30T15:16:12.842Z","updated_at":"2026-05-04T04:33:51.304Z","avatar_url":"https://github.com/bertrandom.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# zerokey\n\nI have a [Raspberry Pi Zero WH](https://www.raspberrypi.com/products/raspberry-pi-zero-w/) with a [Rama M10-A macropad](https://rama.works/m10-a/) connected to it via USB. When the keys are pressed, it sends a command to my [Hubitat Hub](https://hubitat.com/) which telnets to my Lutron Smart Bridge to turn on and off various devices in my house.\n\nThis listens for keypresses on the macropad and sends HTTP calls to the Hubitat Hub.\n\n## installation\n\nStart with a fresh Raspbian image, enable SSH, add your SSH keys to the `pi` account.\n\nInstall [node-pi-zero](https://github.com/sdesalas/node-pi-zero)\n\nInstall PM2\n```\nnpm install -g pm2\n```\n\nAdd the following to the end of your ~/.profile file:\n\n```\n# Add support for node CLI tools\nexport PATH=$PATH:/opt/nodejs/bin\n```\n\nStart PM2 on reboot:\n```\nsudo env PATH=$PATH:/opt/nodejs/bin /opt/nodejs/lib/node_modules/pm2/bin/pm2 startup systemd -u pi --hp /home/pi\n```\n\nInstall dependencies:\n\n```\nnpm install\n```\n\nEnable the Maker API on the Hubitat.\n\nCopy `config/default.json5` to `config/local.json5` and set the host and access token for the Hubitat.\n\n## running\n\nStart the server\n```\npm2 start\n```\n\nTail logs\n```\npm2 logs 0\n```\n\nSurvive reboot\n```\npm2 save\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbertrandom%2Fzerokey","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbertrandom%2Fzerokey","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbertrandom%2Fzerokey/lists"}