{"id":21374823,"url":"https://github.com/banool/amaranta_record","last_synced_at":"2025-03-16T09:20:50.568Z","repository":{"id":152376330,"uuid":"332662349","full_name":"banool/amaranta_record","owner":"banool","description":null,"archived":false,"fork":false,"pushed_at":"2023-04-10T21:28:23.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-03-14T23:43:22.296Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/banool.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":"2021-01-25T07:18:19.000Z","updated_at":"2023-04-10T09:56:21.000Z","dependencies_parsed_at":"2023-06-13T21:15:36.569Z","dependency_job_id":null,"html_url":"https://github.com/banool/amaranta_record","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/banool%2Famaranta_record","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/banool%2Famaranta_record/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/banool%2Famaranta_record/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/banool%2Famaranta_record/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/banool","download_url":"https://codeload.github.com/banool/amaranta_record/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243848007,"owners_count":20357482,"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":[],"created_at":"2024-11-22T08:45:36.889Z","updated_at":"2025-03-16T09:20:50.523Z","avatar_url":"https://github.com/banool.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Amaranta Record\n\nCode and configs related to our record player setup at Amaranta.\n\nRead on for a guide on how to set this up.\n\n## Install dependencies\n\nFirst, install these:\n- Python 3.7 (pip and virtualenv)\n- ices2\n- icecast\n\n```\nsudo apt install python3-pip python3-venv ices2 icecast2\n```\n\nIf prompted, do not configure icecast2, we will use our own files.\n\n## Copy code into server\nYou can copy this full repo over into the server like this:\n```\n./copy.sh dport@pi\n```\n\n## Set up virtual env\nIn the server:\n```\ncd /opt/amaranta_record\npython3 -m venv myvenv --system-site-packages\n. myvenv/bin/activate\npip install -r requirements.txt\n```\n\nWe use `--system-site-packages` because on the Raspberry Pi, some packages are already installed at the system level, e.g. gpiozero.\n\n## Copy configs \n\nMove the following files in `configs/` into place:\n- ices.xml -\u003e /etc/ices.xml\n- icecast.xml -\u003e /etc/icecast2/icecast.xml\n- amaranta_record.service -\u003e /etc/systemd/system/amaranta_record.service\n- icecast.service -\u003e /etc/systemd/system/icecast.service\n\n## Update configs\nYou'll have to update `/etc/ices.xml` to use the correct audio input. So instead of `hw:1,0` it might be `hw:3,0`. You can figure it out by using this command: `aplay -l`.\n\n## Start the service\n\nDo this once you've copied all the config files in.\n\n```\nsudo mkdir -p /var/log/icecast2\nsudo mkdir -p /var/log/ices\nsudo chown nobody:nogroup /var/log/icecast2/\n```\n```\nsudo systemctl daemon-reload\n```\n```\nsudo systemctl enable amaranta_record\nsudo systemctl start amaranta_record\n```\n```\nsudo systemctl enable icecast\nsudo systemctl start icecast\n```\n\nDone!\n\n---\n\nThis section contains helpful tips for debugging / production.\n\n## Discovering cast destinations\nTo find cast destinations do this. First, open up a python shell in the virtual environment. Then:\n```\nimport pychromecast\nservices, browser = pychromecast.discovery.discover_chromecasts()\n```\n\n## Production\nTo check what's going on (look at the logs) run these:\n\n```\n# ices2\ncat /var/log/ices/ices.log\n# icecast\nsudo journalctl -u icecast -f\n# amaranta_record script\nsudo journalctl -u amaranta_record -f\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbanool%2Famaranta_record","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbanool%2Famaranta_record","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbanool%2Famaranta_record/lists"}