{"id":16525512,"url":"https://github.com/andrewn/rfid-publisher","last_synced_at":"2026-06-08T17:32:01.597Z","repository":{"id":9351837,"uuid":"11203295","full_name":"andrewn/rfid-publisher","owner":"andrewn","description":"Publish RFID tag IDs over MQTT","archived":false,"fork":false,"pushed_at":"2013-07-05T16:06:17.000Z","size":468,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-03T02:24:45.631Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/andrewn.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":"2013-07-05T15:59:50.000Z","updated_at":"2013-10-29T17:18:00.000Z","dependencies_parsed_at":"2022-08-27T13:23:49.735Z","dependency_job_id":null,"html_url":"https://github.com/andrewn/rfid-publisher","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/andrewn/rfid-publisher","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewn%2Frfid-publisher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewn%2Frfid-publisher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewn%2Frfid-publisher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewn%2Frfid-publisher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andrewn","download_url":"https://codeload.github.com/andrewn/rfid-publisher/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewn%2Frfid-publisher/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34073745,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-08T02:00:07.615Z","response_time":111,"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":[],"created_at":"2024-10-11T17:03:45.721Z","updated_at":"2026-06-08T17:32:01.577Z","avatar_url":"https://github.com/andrewn.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RFID Publisher\n\nA very small set of scripts to read a tag ID from an RFID reader, transmit it to a host computer over a serial interface and publish using the MQTT protocol.\n\n## Equipment\n\nYou need:\n\n- an [RFID reader](http://www.coolcomponents.co.uk/catalog/rfid-readerwriter-1356mhz-p-504.html)\n- an [Arduino](http://www.arduino.cc/)-[compatible](http://shrimping.it/blog/) microcontroller\n\n## Software\n\n- Arduino IDE\n- node js and npm\n\n## Wiring it up\n\nConnect up the Arduino like this:\n\n![](rfid-arduino_bb.png)\n\nSee the `rfid-arduino.fzz` for the [Fritzing](http://fritzing.org/) file.\n\n## Arduino sketch\n\nUpload `rfid_sketch/rfid_sketch.ino` to your Arduino.\n\nThis will read an ID from the reader and send any cards it finds down the serial port.\n\n## Host code\n\nConnect the Arduino up to a computer and install the app's dependencies:\n\n    $ npm install\n\nThen, run the app specifying what topic it should publish as and teh USB port the arduino is connected to:\n\n    $ MQTT_TOPIC=house/rfid USB_PORT=/dev/cu.usbserial-A600agbw node rfid.js\n\nYou should see the messages connecting to MQTT server and the serial port:\n\n    MQTT connected\n    open!\n\nPlacing a card on the reader should emit its ID, which you can read on the same topic e.g.\n\n    mosquitto_sub -h test.mosquitto.org -t \"house/#\" -v\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewn%2Frfid-publisher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrewn%2Frfid-publisher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewn%2Frfid-publisher/lists"}