{"id":23247077,"url":"https://github.com/0bp/rfid-sonos","last_synced_at":"2025-08-20T05:32:23.828Z","repository":{"id":142599507,"uuid":"111654661","full_name":"0bp/rfid-sonos","owner":"0bp","description":"Application to listen to a USB RFID scanner to trigger Sonos playlists","archived":false,"fork":false,"pushed_at":"2017-12-17T14:06:16.000Z","size":24,"stargazers_count":10,"open_issues_count":1,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-06-05T21:46:06.414Z","etag":null,"topics":["php","raspberry-pi","rfid","sonos"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/0bp.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,"zenodo":null}},"created_at":"2017-11-22T08:08:56.000Z","updated_at":"2022-11-29T23:18:01.000Z","dependencies_parsed_at":"2024-04-19T07:49:38.122Z","dependency_job_id":null,"html_url":"https://github.com/0bp/rfid-sonos","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/0bp/rfid-sonos","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0bp%2Frfid-sonos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0bp%2Frfid-sonos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0bp%2Frfid-sonos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0bp%2Frfid-sonos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0bp","download_url":"https://codeload.github.com/0bp/rfid-sonos/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0bp%2Frfid-sonos/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271269230,"owners_count":24730096,"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","status":"online","status_checked_at":"2025-08-20T02:00:09.606Z","response_time":69,"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":["php","raspberry-pi","rfid","sonos"],"created_at":"2024-12-19T07:17:22.395Z","updated_at":"2025-08-20T05:32:23.813Z","avatar_url":"https://github.com/0bp.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rfid-sonos\n\nAn application to listen to keyboard inputs of a RFID reader to start\nplaying playlist on Sonos speakers. Assign playlists to RFID cards and\nstart playing music by scanning RFID cards.\n\n[Read the story behind](http://0xc2a0.com/001/avoiding-screen-devices.html)\n\n## Requirements\n\n1. A Raspberry Pi with Network connectivity\n1. An USB RFID Reader (for example KKmoon M301) \n\n## Install on Raspberry Pi \n\nBuild the executable phar file:\n```\nbox build\n```\n\nInstall the phar file on the Raspberry as `/home/pi/rfid-sonos.phar` \n\n## Configuration\n\nFor a minimal setup you have to configure at least the Sonos room and\nwhich keyboard should be used:\n\n```\n~/rfid-sonos.phar config --room \"Living Room\"\n~/rfid-sonos.phar config --keyboard /dev/input/event0\n```\n\nTo test everything before running the systemd service, start the\napplication manually:\n\n```\n~/rfid-sonos.phar run \n``` \n\nIf you scan a card that has not yet been assigned to a playlist \nyou can do so:\n\n```\n~/rfid-sonos.phar assign --card 2,0,4,8,3,5,1,1,5,2 --playlist Fun\n```\n\n## Install Systemd Service\n\nCreate /etc/systemd/system/rfid-sonos.service\n```\n[Service]\nType=forking\nExecStart=/home/pi/rfid-sonos.phar run\nStandardOutput=null\nRestart=on-failure\nStandardError=syslog\nUser=pi\n\n[Install]\nWantedBy=multi-user.target\nAlias=rfid-sonos.service\n```\n\nStart the service:\n```\nsudo service rfid-sonos start\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0bp%2Frfid-sonos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0bp%2Frfid-sonos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0bp%2Frfid-sonos/lists"}