{"id":22859977,"url":"https://github.com/reelyactive/barnowl-thethingsstack","last_synced_at":"2026-04-17T01:02:15.129Z","repository":{"id":205855259,"uuid":"715256340","full_name":"reelyactive/barnowl-thethingsstack","owner":"reelyactive","description":"Collect ambient LoRaWAN packets as standard JSON radio decodings using The Things Stack.  We believe in an open Internet of Things.","archived":false,"fork":false,"pushed_at":"2023-11-07T11:59:14.000Z","size":59,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-08T20:18:22.449Z","etag":null,"topics":["barnowl","lorawan","node-js","pareto-anywhere","raddec","the-things-industries","the-things-stack"],"latest_commit_sha":null,"homepage":"https://www.reelyactive.com/pareto/anywhere/","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}},"created_at":"2023-11-06T19:23:53.000Z","updated_at":"2024-09-12T12:40:43.000Z","dependencies_parsed_at":"2023-11-07T02:30:37.999Z","dependency_job_id":"f4a55bb2-3e8e-4039-8bdc-2b0a8e41c604","html_url":"https://github.com/reelyactive/barnowl-thethingsstack","commit_stats":null,"previous_names":["reelyactive/barnowl-thethingsstack"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reelyactive%2Fbarnowl-thethingsstack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reelyactive%2Fbarnowl-thethingsstack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reelyactive%2Fbarnowl-thethingsstack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reelyactive%2Fbarnowl-thethingsstack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reelyactive","download_url":"https://codeload.github.com/reelyactive/barnowl-thethingsstack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246436951,"owners_count":20777124,"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":["barnowl","lorawan","node-js","pareto-anywhere","raddec","the-things-industries","the-things-stack"],"created_at":"2024-12-13T09:08:35.377Z","updated_at":"2026-04-17T01:02:15.042Z","avatar_url":"https://github.com/reelyactive.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"barnowl-thethingsstack\n======================\n\n__barnowl-thethingsstack__ converts the decodings of _any_ ambient LoRaWAN devices by [The Things Stack](https://www.thethingsindustries.com/stack/) into standard developer-friendly JSON that is vendor/technology/application-agnostic.\n\n![Overview of barnowl-thethingsstack](https://reelyactive.github.io/barnowl-thethingsstack/images/overview.png)\n\n__barnowl-thethingsstack__ is a lightweight [Node.js package](https://www.npmjs.com/package/barnowl-thethingsstack) 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\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-thethingsstack__ will indiscriminately accept HTTP POSTs of [uplink messages](https://www.thethingsindustries.com/docs/the-things-stack/concepts/data-formats/#uplink-messages) on localhost:3001/thethingsstack and output (flattened) __raddec__ JSON to the console.\n\n\nHello barnowl-thethingsstack!\n-----------------------------\n\nDeveloping an application directly from __barnowl-thethingsstack__?  Start by pasting the code below into a file called server.js:\n\n```javascript\nconst Barnowl = require('barnowl');\nconst BarnowlTheThingsStack = require('barnowl-thethingsstack');\n\nlet barnowl = new Barnowl({ enableMixing: true });\n\nbarnowl.addListener(BarnowlTheThingsStack, {},\n                    BarnowlTheThingsStack.HttpListener, { 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-thethingsstack` 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: \"70b3d57ed8001e9e\",\n  transmitterIdType: 1,\n  rssiSignature: [\n    {\n      receiverId: \"001bc50940840000\",\n      receiverIdType: 1,\n      rssi: -99,\n      numberOfDecodings: 1\n    }\n  ],\n  packets: [ \"1d02ba02ca00\" ],\n  timestamp: 1645568542222\n}\n```\n\nSee the [Supported Listener Interfaces](#supported-listener-interfaces) below to adapt the code to listen for your stack(s).\n\n\nSupported Listener Interfaces\n-----------------------------\n\nThe following listener interfaces are supported by __barnowl-thethingsstack__.  Extend the [Hello barnowl-thethingsstack!](#hello-barnowl-thethingsstack) 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: \"/thethingsstack\" }; \nbarnowl.addListener(BarnowlTheThingsStack, {},\n                    BarnowlTheThingsStack.HttpListener, options);\n```\n\nNonetheless, for testing purposes, __barnowl-thethingsstack__ 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(BarnowlTheThingsStack, {},\n                    BarnowlTheThingsStack.HttpListener, { 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(BarnowlTheThingsStack, {},\n                    BarnowlTheThingsStack.TestListener, {});\n```\n\n\nIs that owl you can do?\n-----------------------\n\nWhile __barnowl-thethingsstack__ may suffice standalone for simple real-time applications, its functionality can be greatly extended with the following software packages:\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) 2023 [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-thethingsstack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freelyactive%2Fbarnowl-thethingsstack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freelyactive%2Fbarnowl-thethingsstack/lists"}