{"id":16525524,"url":"https://github.com/andrewn/radiotag-radio","last_synced_at":"2025-07-26T20:32:48.982Z","repository":{"id":21195012,"uuid":"24504975","full_name":"andrewn/radiotag-radio","owner":"andrewn","description":"A simple radio implementing RadioTAG on a PiFace control and display","archived":false,"fork":false,"pushed_at":"2014-11-20T15:00:11.000Z","size":164,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-03T02:24:18.506Z","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/andrewn.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}},"created_at":"2014-09-26T15:34:44.000Z","updated_at":"2015-02-24T23:44:22.000Z","dependencies_parsed_at":"2022-08-28T00:13:02.963Z","dependency_job_id":null,"html_url":"https://github.com/andrewn/radiotag-radio","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/andrewn/radiotag-radio","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewn%2Fradiotag-radio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewn%2Fradiotag-radio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewn%2Fradiotag-radio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewn%2Fradiotag-radio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andrewn","download_url":"https://codeload.github.com/andrewn/radiotag-radio/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewn%2Fradiotag-radio/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267227830,"owners_count":24056359,"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-07-26T02:00:08.937Z","response_time":62,"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-10-11T17:03:50.175Z","updated_at":"2025-07-26T20:32:48.955Z","avatar_url":"https://github.com/andrewn.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"RadioTAG radio\n===\n\nA simple radio supporting RadioTAG using the PiFace control and display.\n\nSetup\n---\n\nYou will need:\n - a PiFace control and display\n - a Raspberry Pi with the Radiodan software\n\n### Get PiFace working on the Pi\n\n1. Enable SPI\n\nCommenting out the `blacklist spi-bcm2708` line in `/etc/modprobe.d/raspi-blacklist.conf`.\n\nThe /dev/spidev* devices should now appear but they require special privileges for the user pi to access them. You can set these up by adding the following udev rule to `/etc/udev/rules.d/50-spi.rules`:\n\n    KERNEL==\"spidev*\", GROUP=\"spi\", MODE=\"0660\"\n\nThen create the spi group and add the user pi:\n\n$ groupadd spi\n$ gpasswd -a pi spi\n\n2. sudo apt-get install python-pifacecad\n\n3. Stop radiodan-magic and radiodan-example from running\n\n### Install app and dependencies\n\n    $ git clone \u003cthis-repo\u003e radiotag-radio\n    $ cd radiotag-radio\n    $ npm install\n\nRunning\n---\n\nThere are two parts:\n\n- `piface-socket` a small Python script that displays things on the PiFace and listens for button presses.\n- `radio` a node.js app that plays radio streams and does tagging\n\nThe two parts communicate over a unix socket which you specify as an argument when starting them.\n\nStart `piface-socket` first:\n\n    $ bin/piface-socket /tmp/piface.sock\n\nStart the radio next. It required TAG_SERVICE_URL and BBC_SERVICES_URL environment variables\n\n    $ TAG_SERVICE_URL=http://tag.service.example.com BBC_SERVICES_URL=https://bbc-services-api.herokuapp.com bin/radio /tmp/piface.sock\n\nDevelopment\n---\n\nWhen not running on a Pi, you can launch a fake PiFace web UI. Start `piface-socket` with the `DEBUG` variable:\n\n    $ DEBUG=true bin/piface-socket /tmp/piface.sock\n\nThe web UI will be available at http://localhost:4000/static/index.html. Load it to see text to be displayed on the PiFace and to press buttons.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewn%2Fradiotag-radio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrewn%2Fradiotag-radio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewn%2Fradiotag-radio/lists"}