{"id":15019642,"url":"https://github.com/bmedicke/aruna","last_synced_at":"2025-09-12T23:41:49.064Z","repository":{"id":45927206,"uuid":"377769955","full_name":"bmedicke/aruna","owner":"bmedicke","description":"✨🧵  Raspberry Pi based LED strip control (with individual LEDs) ","archived":false,"fork":false,"pushed_at":"2022-04-10T08:49:45.000Z","size":1351,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-28T20:03:07.067Z","etag":null,"topics":["create-react-app","docker","docker-compose","eslint","led-control","plpgsql","postgresql","psycopg3","raspberry-pi","react","react-three-fiber","threejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/bmedicke.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":"2021-06-17T09:08:11.000Z","updated_at":"2023-10-06T04:25:42.000Z","dependencies_parsed_at":"2022-09-24T18:51:58.533Z","dependency_job_id":null,"html_url":"https://github.com/bmedicke/aruna","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bmedicke/aruna","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmedicke%2Faruna","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmedicke%2Faruna/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmedicke%2Faruna/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmedicke%2Faruna/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bmedicke","download_url":"https://codeload.github.com/bmedicke/aruna/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmedicke%2Faruna/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274894418,"owners_count":25369562,"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","status":"online","status_checked_at":"2025-09-12T02:00:09.324Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["create-react-app","docker","docker-compose","eslint","led-control","plpgsql","postgresql","psycopg3","raspberry-pi","react","react-three-fiber","threejs"],"created_at":"2024-09-24T19:53:49.867Z","updated_at":"2025-09-12T23:41:49.004Z","avatar_url":"https://github.com/bmedicke.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"see https://github.com/bmedicke/smart-mirror for another React project\n\n# Aruna\n\n**Raspberry Pi based LED strip control (with individual LEDs)**\n\n\u003c!-- vim-markdown-toc GFM --\u003e\n\n  * [front-to-back.py](#front-to-backpy)\n  * [back-to-hardware.py](#back-to-hardwarepy)\n* [setup](#setup)\n* [running it](#running-it)\n* [supplemental](#supplemental)\n  * [Power Circuit Diagramm](#power-circuit-diagramm)\n  * [Pin Layout](#pin-layout)\n  * [terminology](#terminology)\n  * [useful links](#useful-links)\n  * [useful repos](#useful-repos)\n\n\u003c!-- vim-markdown-toc --\u003e\n\n## front-to-back.py\n\n* connects Home Assistant via MQTT to the database\n\n## back-to-hardware.py\n\n* translates database changes to the physical world\n\n# setup\n\n```sh\n# install docker:\ncurl -fsSL https://get.docker.com -o get-docker.sh\nsh ./get-docker.sh\nrm get-docker.sh\n\n# install docker-compose and postgres:\napt install docker-compose postgresql -y\n\n# we only need it for the cli tools:\nsystemctl disable --now postgresql\n\n# create and activate virtual environment:\npython3 -m venv env\nsource env/bin/activate\n\n# on rpi4 you might get an error about multiple\n# definitions while installing rpi.gpio,\n# to avoid them use the flag:\nexport CFLAGS=-fcommon\n\n# upgrade/install libs:\npip install --upgrade adafruit-blinka\npip install --upgrade adafruit-circuitpython-neopixel\npip install --upgrade black\n\n# [binary] version not yet supported for ARM.\npip install --upgrade 'psycopg[pool]'\n```\n\n# running it\n\n```sh\n# start db and adminer:\ndocker-compose up -d\n```\n\n# supplemental\n\n## Power Circuit Diagramm\n\n\u003cimg src=\"media/circuit_diagram_LEDs_power.jpg\"\u003e\u003c/img\u003e\n\n## Pin Layout\n\n![image](https://user-images.githubusercontent.com/173962/143683906-a541242c-3bcc-4d4a-ab91-dc928b944fee.png)\n\n## terminology\n\n* **entity**\n\t* sensors, automations, switches, scenes\n* **device**\n\t* physical objects (that might have multiple entities)\n\n## useful links\n\n* [Device Registry](https://developers.home-assistant.io/docs/device_registry_index/)\n* [HA MQTT Light Schemas](https://www.home-assistant.io/integrations/light.mqtt/)\n\t* template: the one tasmota uses\n\t* default: no flashing, transitions\n\t* **[json](https://www.home-assistant.io/integrations/light.mqtt/#json-schema)**: all features\n\t\t* [demo usage](https://community.home-assistant.io/t/mqtt-add-on-works-but-no-discovery/241680)\n* [async-notifications with psycopg](https://www.psycopg.org/docs/advanced.html#asynchronous-notifications)\n\t* get notified of db-updates\n\t* [empty queries and performance impact](https://stackoverflow.com/questions/21117431/how-to-receive-automatic-notifications-about-changes-in-tables)\n* [psycopg writeup](https://github.com/bmedicke/python-notes/blob/main/markdown/psycopg.md)\n\n## useful repos\n\n* https://github.com/bokub/rgb-light-card (Lovelace custom card for RGB lights)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbmedicke%2Faruna","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbmedicke%2Faruna","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbmedicke%2Faruna/lists"}