{"id":16024310,"url":"https://github.com/axelson/piano_ex","last_synced_at":"2025-04-05T04:18:39.061Z","repository":{"id":45033401,"uuid":"162024725","full_name":"axelson/piano_ex","owner":"axelson","description":null,"archived":false,"fork":false,"pushed_at":"2023-04-29T23:41:41.000Z","size":946,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-29T09:05:41.819Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","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/axelson.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":"2018-12-16T17:30:21.000Z","updated_at":"2023-01-23T18:36:49.000Z","dependencies_parsed_at":"2023-02-12T18:15:49.332Z","dependency_job_id":null,"html_url":"https://github.com/axelson/piano_ex","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/axelson%2Fpiano_ex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axelson%2Fpiano_ex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axelson%2Fpiano_ex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axelson%2Fpiano_ex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/axelson","download_url":"https://codeload.github.com/axelson/piano_ex/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247285278,"owners_count":20913778,"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-10-08T19:06:29.296Z","updated_at":"2025-04-05T04:18:39.026Z","avatar_url":"https://github.com/axelson.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# PianoEx\n\nA simple Pandora player visualizer and controller.\n\n![Screenshot](screenshot.png)\n\nRough diagram\n```\npianobar -\u003e command.sh -\u003e PianoCtl.PianoInputReader\n                    beam_notify     |\n                                    v\n                               PianoCtl.Server -\u003e PianoUi\n```\n\nTo test:\n\n    ./test-example.sh\n\nIn IEx run `PianoCtl.Notifier.create_script` to create the command.sh script\n\n## TODO\n\n- [ ] Clean up the parsing code (rather hacky right now)\n- [ ] Gracefully handle when the image cannot be downloaded (should have a placeholder)\n- [x] Cover art should be resized to fit\n- [ ] Extract text into a separate scene\n- [x] Find a good name for the Splash scene\n\nDone:\n- [x] Change PianoParser to be able to accurately detect events\n- [x] Display the current song in the scenic scene\n- [x] Nodes should be configured from config\n- [x] Fetch and display cover art\n- [x] write the OS pid to `~/.config/pianobar/piano_ctl_pid`\n- [x] command.sh should check the pid, and only write to the pipe if the process is still running\n- [x] Add play/pause and next buttons\n- [x] PianoCtl.CommandRunner is broken\n- [x] Tap on cover art to hide\n\n## EventCmd format\n\n```\nevent_name   # The event name\n             # An empty line\nattr1=val1   # A list of attrs\nattr2=val2\nattr2=val2\nattr2=val2\n             # Another empty line\n```\n\nExamples:\n\nsongstart\n\n\u003csong starting details\u003e\n\n// time passes\nsongfinish\n\u003csong finished details\u003e\n\nstationfetchplaylist\n\u003cfetched song\u003e\n\nsongstart\n\u003csong starting details\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxelson%2Fpiano_ex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faxelson%2Fpiano_ex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxelson%2Fpiano_ex/lists"}