{"id":18761305,"url":"https://github.com/patte/cccb-display","last_synced_at":"2025-06-11T10:07:07.835Z","repository":{"id":247229701,"uuid":"824294733","full_name":"patte/cccb-display","owner":"patte","description":null,"archived":false,"fork":false,"pushed_at":"2024-07-11T20:08:49.000Z","size":2813,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-18T03:12:13.371Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/patte.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":"2024-07-04T19:44:16.000Z","updated_at":"2024-07-11T20:08:52.000Z","dependencies_parsed_at":"2024-07-11T22:38:21.553Z","dependency_job_id":null,"html_url":"https://github.com/patte/cccb-display","commit_stats":null,"previous_names":["patte/cccb-display"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patte%2Fcccb-display","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patte%2Fcccb-display/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patte%2Fcccb-display/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patte%2Fcccb-display/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/patte","download_url":"https://codeload.github.com/patte/cccb-display/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239654455,"owners_count":19675291,"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-07T18:15:38.260Z","updated_at":"2025-02-19T12:24:29.218Z","avatar_url":"https://github.com/patte.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CCCB Display\n\nLibrary to show images on the \"Service-Point\" display at Chaos Computer Club Berlin.\n\n![Service-Point LED display showing the CCC logo at Chaos Computer Club Berlin.](./assets/photo.jpg)\n\n\n## Run\n\n1. ENVs\n    ```bash\n    cp .env.example .env\n    ```\n    Adapt `CCCB_IP` to the ip of the screen\n\n1. Run\n    ```bash\n    cargo run --release --example simple\n    cargo run --release --example loop\n    ```\n\n## Example code\n\n```rust\nuse cccb_display::{CccbDisplayImagePackage, CccbImageSender};\nuse image::io::Reader as ImageReader;\n\nfn main() {\n    let img = ImageReader::open(\"assets/ccc.png\")\n        .unwrap()\n        .decode()\n        .unwrap();\n\n    // create package\n    let img_packed = CccbDisplayImagePackage::new(img.clone(), |pix| pix[3] != 0, true);\n\n    // save screenshot\n    img_packed\n        .to_luma8()\n        .save(\"./screenshots/simple-screenshot.png\")\n        .unwrap();\n\n    let mut sender = CccbImageSender::new_from_env();\n    sender.send_package(\u0026img_packed);\n}\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatte%2Fcccb-display","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatte%2Fcccb-display","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatte%2Fcccb-display/lists"}