{"id":22859963,"url":"https://github.com/reelyactive/barnowl-impinj","last_synced_at":"2025-08-11T09:31:40.889Z","repository":{"id":57698938,"uuid":"495537471","full_name":"reelyactive/barnowl-impinj","owner":"reelyactive","description":"Collect ambient RAIN RFID packets as standard JSON radio decodings using Impinj readers.  We believe in an open Internet of Things.","archived":false,"fork":false,"pushed_at":"2025-05-08T15:36:06.000Z","size":408,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-09T02:23:54.729Z","etag":null,"topics":["barnowl","impinj","pareto-anywhere","r700","r720","raddec","rain-rfid","reelyactive","rfid"],"latest_commit_sha":null,"homepage":"https://www.reelyactive.com/pareto/anywhere/infrastructure/impinj/","language":"JavaScript","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/reelyactive.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-05-23T18:57:52.000Z","updated_at":"2025-05-17T19:32:51.000Z","dependencies_parsed_at":"2025-04-30T17:46:04.798Z","dependency_job_id":"47530040-91d7-44f9-8f50-0ee7434cb5e7","html_url":"https://github.com/reelyactive/barnowl-impinj","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/reelyactive/barnowl-impinj","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reelyactive%2Fbarnowl-impinj","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reelyactive%2Fbarnowl-impinj/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reelyactive%2Fbarnowl-impinj/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reelyactive%2Fbarnowl-impinj/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reelyactive","download_url":"https://codeload.github.com/reelyactive/barnowl-impinj/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reelyactive%2Fbarnowl-impinj/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269681551,"owners_count":24458596,"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-08-10T02:00:08.965Z","response_time":71,"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":["barnowl","impinj","pareto-anywhere","r700","r720","raddec","rain-rfid","reelyactive","rfid"],"created_at":"2024-12-13T09:08:32.212Z","updated_at":"2025-08-11T09:31:40.869Z","avatar_url":"https://github.com/reelyactive.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"barnowl-impinj\n==============\n\n__barnowl-impinj__ converts the decodings of _any_ ambient RAIN RFID tags by Impinj readers supporting the IoT Device Interface (ex: R700) into standard developer-friendly JSON that is vendor/technology/application-agnostic.\n\n![Overview of barnowl-impinj](https://reelyactive.github.io/barnowl-impinj/images/overview.png)\n\n__barnowl-impinj__ is a lightweight [Node.js package](https://www.npmjs.com/package/barnowl-impinj) that can run on resource-constrained edge devices as well as on powerful cloud servers and anything in between.  It is included in reelyActive's [Pareto Anywhere](https://www.reelyactive.com/pareto/anywhere/) open source middleware suite, and can just as easily be run standalone behind a [barnowl](https://github.com/reelyactive/barnowl) instance, as detailed in the code examples below.\n\n\nGetting Started\n---------------\n\nFollow our step-by-step tutorial to get started with __barnowl-impinj__ or __Pareto Anywhere__ using a the R700 reader:\n- [Configure an Impinj R700 Reader](https://reelyactive.github.io/diy/impinj-r700-config/)\n\nLearn \"owl\" about the __raddec__ JSON data output:\n-  [reelyActive Developer's Cheatsheet](https://reelyactive.github.io/diy/cheatsheet/)\n\n\nQuick Start\n-----------\n\nClone this repository, install package dependencies with `npm install`, and then from the root folder run at any time:\n\n    npm start\n\n__barnowl-impinj__ will indiscriminately accept HTTP POSTs on localhost:3001/impinj and output (flattened) __raddec__ JSON to the console.\n\n\nHello barnowl-impinj!\n---------------------\n\nDeveloping an application directly from __barnowl-impinj__?  Start by pasting the code below into a file called server.js:\n\n```javascript\nconst Barnowl = require('barnowl');\nconst BarnowlImpinj = require('barnowl-impinj');\n\nlet barnowl = new Barnowl({ enableMixing: true });\n\nbarnowl.addListener(BarnowlImpinj, {}, BarnowlImpinj.HttpListener,\n                    { port: 3001 });\n\nbarnowl.on('raddec', (raddec) =\u003e {\n  console.log(raddec);\n  // Trigger your application logic here\n});\n```\n\nFrom the same folder as the server.js file, install package dependencies with the commands `npm install barnowl-impinj` and `npm install barnowl`.  Then run the code with the command `node server.js` and observe the stream of radio decodings (raddec objects) output to the console:\n\n```javascript\n{\n  transmitterId: \"a00000000000000000001234\",\n  transmitterIdType: 5,\n  rssiSignature: [\n    {\n      receiverId: \"001625ffffff\",\n      receiverIdType: 2,\n      receiverAntenna: 3,\n      rssi: -42,\n      numberOfDecodings: 1\n    }\n  ],\n  timestamp: 1645568542222\n}\n```\n\nSee the [Supported Listener Interfaces](#supported-listener-interfaces) below to adapt the code to listen for your reader(s).\n\n\nSupported Listener Interfaces\n-----------------------------\n\nThe following listener interfaces are supported by __barnowl-impinj__.  Extend the [Hello barnowl-impinj!](#hello-barnowl-impinj) example above by pasting in any of the code snippets below.\n\n### HTTP\n\nThe _recommended_ implementation is using [express](https://expressjs.com/) as follows:\n\n```javascript\nconst express = require('express');\nconst http = require('http');\n\nlet app = express();\nlet server = http.createServer(app);\nserver.listen(3001, function() { console.log('Listening on port 3001'); });\n\nlet options = { app: app, express: express, route: \"/impinj\" }; \nbarnowl.addListener(BarnowlImpinj, {}, BarnowlImpinj.HttpListener, options);\n```\n\nNonetheless, for testing purposes, __barnowl-impinj__ can also create a minimal HTTP server as an alternative to express, and attempt to handle any POST it receives:\n\n```javascript\nbarnowl.addListener(BarnowlImpinj, {}, BarnowlImpinj.HttpListener,\n                    { port: 3001 });\n```\n\n### Test\n\nProvides a steady stream of simulated IoT Device Interface messages for testing purposes.\n\n```javascript\nbarnowl.addListener(BarnowlImpinj, {}, BarnowlImpinj.TestListener, {});\n```\n\n\nRequired Impinj IoT Device Interface fields\n-------------------------------------------\n\nIn order to populate the __raddec__ data structure, the following fields must be selected in the reader's Event Configuration:\n\n| Field           | Corresponding raddec property     | \n|:----------------|:----------------------------------|\n| Reader Hostname | receiverId \u0026 receiverIdType       |\n| EPC or TID      | transmitterId \u0026 transmitterIdType |\n| Antenna Port    | receiverAntenna                   |\n| Last seen time  | timestamp                         |\n| Peak RSSI       | rssi                              |\n\n\nIs that owl you can do?\n-----------------------\n\nWhile __barnowl-impinj__ may suffice standalone for simple real-time applications, its functionality can be greatly extended with the following software packages:\n- [advlib-epc](https://github.com/reelyactive/advlib-epc) to decode the Electronic Product Code (EPC) into JSON\n- [barnowl](https://github.com/reelyactive/barnowl) to combine parallel streams of RF decoding data in a technology-and-vendor-agnostic way\n\nThese packages and more are bundled together as the [Pareto Anywhere](https://www.reelyactive.com/pareto/anywhere) open source middleware suite, which includes a variety of __barnowl-x__ listeners, APIs and interactive web apps.\n\n\nContributing\n------------\n\nDiscover [how to contribute](CONTRIBUTING.md) to this open source project which upholds a standard [code of conduct](CODE_OF_CONDUCT.md).\n\n\nSecurity\n--------\n\nConsult our [security policy](SECURITY.md) for best practices using this open source software and to report vulnerabilities.\n\n\nLicense\n-------\n\nMIT License\n\nCopyright (c) 2022-2025 [reelyActive](https://www.reelyactive.com)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR \nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, \nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE \nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER \nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, \nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN \nTHE SOFTWARE.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freelyactive%2Fbarnowl-impinj","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freelyactive%2Fbarnowl-impinj","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freelyactive%2Fbarnowl-impinj/lists"}