{"id":16908091,"url":"https://github.com/cjrh/debussy","last_synced_at":"2026-02-12T21:30:58.954Z","repository":{"id":66651626,"uuid":"559214910","full_name":"cjrh/debussy","owner":"cjrh","description":"CLI emitting json when song changes on Linux. Uses MPRIS and dbus to receive events","archived":false,"fork":false,"pushed_at":"2025-12-29T21:35:38.000Z","size":136,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-02T04:30:22.868Z","etag":null,"topics":["cli","cli-app","dbus","mpris","mpris-dbus-interface","mpris2"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cjrh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["cjrh"]}},"created_at":"2022-10-29T12:24:41.000Z","updated_at":"2025-12-29T21:35:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"9ad8bce9-b33c-42e2-b55f-2089d8546ead","html_url":"https://github.com/cjrh/debussy","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/cjrh/debussy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjrh%2Fdebussy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjrh%2Fdebussy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjrh%2Fdebussy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjrh%2Fdebussy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cjrh","download_url":"https://codeload.github.com/cjrh/debussy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjrh%2Fdebussy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29381746,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T20:34:40.886Z","status":"ssl_error","status_checked_at":"2026-02-12T20:23:00.490Z","response_time":55,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cli","cli-app","dbus","mpris","mpris-dbus-interface","mpris2"],"created_at":"2024-10-13T18:50:08.413Z","updated_at":"2026-02-12T21:30:58.939Z","avatar_url":"https://github.com/cjrh.png","language":"Rust","funding_links":["https://github.com/sponsors/cjrh"],"categories":[],"sub_categories":[],"readme":"# debussy\nCLI emitting json when song changes on Linux. Uses MPRIS and dbus to receive events\n\n## demo\n\nIn the example below, I'm using the Gnome application _Shortwave_ to listen to \ninternet radio. The app is detected, and then each track change is received, \nand logged, and a json payload generated:\n\n```bash\n$ RUST_LOG=info debussy\n INFO  debussy \u003e Found Shortwave (on bus org.mpris.MediaPlayer2.de.haeckerfelix.Shortwave)\n INFO  debussy \u003e Radio Paradise (320k)::::Mark Knopfler - Don't You Get It\n{\"player\":\"Radio Paradise (320k)\",\"artist\":\"Radio Paradise (320k)\",\"title\":\"Mark Knopfler - Don't You Get It\"}\n```\n\nThe logs go to stderr, but the json goes to stdout. This means that \noutput can be received by other tools in a unix pipeline. For example, streaming \nthe json data to the program _jq_:\n\n```bash\n$ debussy | jq\n   Compiling debussy v0.1.0 (/home/caleb/tmp/dbustest/debussy)\n    Finished dev [unoptimized + debuginfo] target(s) in 0.63s\n     Running `target/debug/debussy`\n{\n  \"player\": \"Radio Paradise (320k)\",\n  \"artist\": \"Radio Paradise (320k)\",\n  \"title\": \"Heilung - Anona\"\n}\n{\n  \"player\": \"Radio Paradise (320k)\",\n  \"artist\": \"Radio Paradise (320k)\",\n  \"title\": \"The Beatles - Help!\"\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcjrh%2Fdebussy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcjrh%2Fdebussy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcjrh%2Fdebussy/lists"}