{"id":20149168,"url":"https://github.com/prasha-au/pico-alertdisplay","last_synced_at":"2025-03-03T00:41:14.010Z","repository":{"id":250632582,"uuid":"834991712","full_name":"prasha-au/pico-alertdisplay","owner":"prasha-au","description":"CircuitPython Pico P5 LED alert display system.","archived":false,"fork":false,"pushed_at":"2024-09-20T13:40:18.000Z","size":998,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-13T11:30:13.124Z","etag":null,"topics":["circuitpython-pico-w"],"latest_commit_sha":null,"homepage":"","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/prasha-au.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-28T23:25:59.000Z","updated_at":"2024-09-20T13:40:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"5d74d6d0-be1d-47c9-8329-3c8612ff59c3","html_url":"https://github.com/prasha-au/pico-alertdisplay","commit_stats":null,"previous_names":["prasha-au/pico-alertdisplay"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prasha-au%2Fpico-alertdisplay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prasha-au%2Fpico-alertdisplay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prasha-au%2Fpico-alertdisplay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prasha-au%2Fpico-alertdisplay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prasha-au","download_url":"https://codeload.github.com/prasha-au/pico-alertdisplay/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241587784,"owners_count":19986628,"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":["circuitpython-pico-w"],"created_at":"2024-11-13T22:42:06.806Z","updated_at":"2025-03-03T00:41:13.989Z","avatar_url":"https://github.com/prasha-au.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pico AlertDisplay\n\nA CircuitPython project to integrate a simple P5 LED Panel with my [Homenode](https://prasha.au/project/homenode) automation system.\n\nA Pi Pico W listens for MQTT messages and shows:\n- timers from Google Home\n- the weather\n- other various alerts from the system as icons\n\n\n## Preview\n\nhttps://github.com/user-attachments/assets/800a4657-f4b4-47d5-b7f3-ee6615eddd4a\n\n\n## Initial setup\n\n### Python venv\n1. Install `python3`\n2. Create a virtualenv using `python -m venv .venv`\n3. Activate the virtualenv using `.\\.venv\\Scripts\\Activate.ps1`\n4. Install the requirements using `pip install -r host-requirements.txt`\n\n\n### CircuitPython Device Deps\n```shell\ncircup install -r device-requirements.txt\n```\n\n\n## Developing\n\nUsing REPL is the best way to quickly test things. The [displaytest.py](./src/displaytest.py) file has rough code for quickly displaying things.\n\n### REPL\n```shell\n// Windows\nplink -serial \\\\.\\COM5 -sercfg 115200,8,1,N,N\n// OSX\nscreen /dev/cu.xxxxxxx\n```\n\n\n\n### Sample MQTT Invokes\n```pip i\nmqtt publish -t alertdisplay/setTimer -m pan,60\nmqtt publish -t alertdisplay/removeTimer -m pan\nmqtt publish -t alertdisplay/setIcon -m chicken,true\nmqtt publish -t alertdisplay/setPower -m true\n```\n\n\n### Screen Item Layouts\n```\nI I W         // (x: (2, 22, 45), y: 1)\nI I W         // (x: (2, 22, 45), y: 16)\n\nT T T\nI I I\n\nT T T\nT T T\n```\n\n\n### Creating Icons\n\nYou can use [Piskel](https://www.piskelapp.com/) and import the BMP files to edit them.\n\nPiskel can export to PNG and you can use the command below (on OSX) to convert it to BMP.\n\n```bash\nsips -s format jpeg test.png --out test.jpg\n```\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprasha-au%2Fpico-alertdisplay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprasha-au%2Fpico-alertdisplay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprasha-au%2Fpico-alertdisplay/lists"}