{"id":18777318,"url":"https://github.com/tomgidden/mqtt-blinkt","last_synced_at":"2026-04-17T07:31:55.182Z","repository":{"id":149244048,"uuid":"129154237","full_name":"tomgidden/mqtt-blinkt","owner":"tomgidden","description":"More capable version of the Pimoroni Blinkt MQTT example, packaged as Docker image","archived":false,"fork":false,"pushed_at":"2018-04-11T22:23:22.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-19T23:55:02.963Z","etag":null,"topics":["blinkt","docker","iot","mqtt","pimoroni","raspberry-pi"],"latest_commit_sha":null,"homepage":null,"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/tomgidden.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,"zenodo":null}},"created_at":"2018-04-11T21:07:05.000Z","updated_at":"2019-05-17T02:19:27.000Z","dependencies_parsed_at":"2023-07-17T16:11:37.832Z","dependency_job_id":null,"html_url":"https://github.com/tomgidden/mqtt-blinkt","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tomgidden/mqtt-blinkt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomgidden%2Fmqtt-blinkt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomgidden%2Fmqtt-blinkt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomgidden%2Fmqtt-blinkt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomgidden%2Fmqtt-blinkt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tomgidden","download_url":"https://codeload.github.com/tomgidden/mqtt-blinkt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomgidden%2Fmqtt-blinkt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31919926,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"online","status_checked_at":"2026-04-17T02:00:06.879Z","response_time":62,"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":["blinkt","docker","iot","mqtt","pimoroni","raspberry-pi"],"created_at":"2024-11-07T20:09:43.626Z","updated_at":"2026-04-17T07:31:55.172Z","avatar_url":"https://github.com/tomgidden.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"A simple Python script from Pimoroni's sample code for Blinkt -- a Raspberry Pi add-on with 8 RGB LEDs in a strip.\n\nhttps://github.com/pimoroni/blinkt\n\nI wrote this before realising it'd already been done more than once before, eg. the JS-based https://github.com/pinkkis/mqtt_blinkt\n\nThis script takes a configuration file for an MQTT host (see `config.py.dist` and customise) and subscribes to the topic given;  in particular, the sub-topics `/clear` and `/set`.\n\nIt passes the parameters for `/set` through `demjson` (ie. loose JSON) and passes the result to the `Color()` constructor for the Python `colour` module.  In addition, it takes a `mask` parameter from that result first and uses it as a bitmask for the LEDs.\n\nSo, send:\n```\nmosquitto_pub -h mqtt.home -t /actuator/blinkt1/set -m '{mask:255,red:1,blue:1,green:0}'\n```\nand you should see bright magenta.\n\nThis way, simple rules can be built in Node-RED and piped direct to a Raspberry Pi Zero W sitting in the corner of the room with a Blinkt plugged in; a very simple but powerful notification.\n\nIn time I may add fading, animation, etc.  Saying that, such a thing can be scripted in Node-RED and passed using MQTT, albeit less efficiently.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomgidden%2Fmqtt-blinkt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomgidden%2Fmqtt-blinkt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomgidden%2Fmqtt-blinkt/lists"}