{"id":21299734,"url":"https://github.com/ericoporto/rgbleddaemon","last_synced_at":"2026-05-20T19:35:08.439Z","repository":{"id":85940444,"uuid":"41223511","full_name":"ericoporto/RGBLedDaemon","owner":"ericoporto","description":"A tiny simple daemon for controlling a single RGB Led for Raspberry Pi written in Python.","archived":false,"fork":false,"pushed_at":"2016-02-18T21:39:58.000Z","size":593,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-22T07:44:13.536Z","etag":null,"topics":["daemon","python","raspberry-pi","rgb-led","tiny"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ericoporto.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-22T20:37:57.000Z","updated_at":"2020-07-02T14:19:42.000Z","dependencies_parsed_at":"2023-03-13T07:33:54.152Z","dependency_job_id":null,"html_url":"https://github.com/ericoporto/RGBLedDaemon","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/ericoporto%2FRGBLedDaemon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericoporto%2FRGBLedDaemon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericoporto%2FRGBLedDaemon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericoporto%2FRGBLedDaemon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ericoporto","download_url":"https://codeload.github.com/ericoporto/RGBLedDaemon/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243769986,"owners_count":20345217,"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":["daemon","python","raspberry-pi","rgb-led","tiny"],"created_at":"2024-11-21T15:05:23.333Z","updated_at":"2026-05-20T19:35:08.381Z","avatar_url":"https://github.com/ericoporto.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RGBLedDaemon\nA tiny daemon for controlling a single RGB Led for Raspberry Pi written in Python.\n\nWhile this daemon requires being sudo to start it, it doesn't require being sudo\n to change color and blink state of the LED in the GPIO.\n\n\nUsage\n-----\n\nFor starting the daemon, type:\n\n    sudo python rgbled.py start\n\nYou can change color by typing the color:\n\n    python rgbled.py color blue\n\nYou can turn blinking on by typing:\n\n    python rgbled.py blink on\n\nFor stopping the daemon, type:\n\n    sudo python rgbled.py stop\n\n\nSchematic\n---------\n\nThis code uses GPIOs 5, 6 and 13, which are the pins 29, 31 and 33 in the Raspberry\nPi 2 Board. Pin 6 is the GND on the same board, and I'm using it.\n\n\n![RGB Led pinout](https://github.com/ericoporto/RGBLedDaemon/raw/master/images/rgbled_raspi_small.png \"Raspberry Pi with RGB Led pinout\")\n\n\n![Real Board](https://github.com/ericoporto/RGBLedDaemon/raw/master/images/real_board.jpg \"Raspberry Pi with RGB Led mounted\")\n\n\nMy pin selection comes from the example right here: https://www.hackster.io/windowsiot/rgb-led-sample .\nYour RGB Led may be different.\n\n\nWarnings\n--------\n\nRight now every time you call the script is called using `color` or `blink`, it\nuses writing on `/tmp/` to communicate with the daemon.\nSo I recommend mounting `/tmp/` on RAM. To do this, is simple, first, edit the\nraspberry pi fstab. If you are away, just connect in it using ssh.\n\nTo edit the fstab use `sudo nano fstab` . Once you are connected, add the following\nline:\n\n    tmpfs    /tmp    tmpfs    defaults,noatime,nosuid,size=100m    0 0\n\nThan, just reboot with `sudo reboot`.\n\nIf you want to check if you have already done it before, just use `mount` or `df -h`.\n\nI would like to point the following article as source: http://www.zdnet.com/article/raspberry-pi-extending-the-life-of-the-sd-card/ and also thank to dAnjou.\n\nTo avoid this, I'm planning to change this communication, but don't know how to\nright now.\n\n\n\nDependencies\n------------\n\nThis code uses Sander's Python Daemon from here: http://www.jejik.com/articles/2007/02/a_simple_unix_linux_daemon_in_python/ .\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericoporto%2Frgbleddaemon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fericoporto%2Frgbleddaemon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericoporto%2Frgbleddaemon/lists"}