{"id":22859970,"url":"https://github.com/reelyactive/barnacles-agora","last_synced_at":"2026-04-29T17:38:03.993Z","repository":{"id":69136385,"uuid":"454067517","full_name":"reelyactive/barnacles-agora","owner":"reelyactive","description":"Forward dynamic ambient (dynamb) data from barnacles to Agora Software. We believe in an open Internet of Things.","archived":false,"fork":false,"pushed_at":"2022-02-07T22:32:36.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-08T03:03:48.392Z","etag":null,"topics":["agora-software","barnacles","dynamb","node-js","pareto-anywhere"],"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":"2022-01-31T15:47:37.000Z","updated_at":"2022-03-13T02:22:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"1ba90f25-d8fd-4d10-946b-769a78277efd","html_url":"https://github.com/reelyactive/barnacles-agora","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/reelyactive%2Fbarnacles-agora","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reelyactive%2Fbarnacles-agora/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reelyactive%2Fbarnacles-agora/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reelyactive%2Fbarnacles-agora/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reelyactive","download_url":"https://codeload.github.com/reelyactive/barnacles-agora/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246436925,"owners_count":20777121,"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":["agora-software","barnacles","dynamb","node-js","pareto-anywhere"],"created_at":"2024-12-13T09:08:33.234Z","updated_at":"2026-04-29T17:37:58.962Z","avatar_url":"https://github.com/reelyactive.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"barnacles-agora\n===============\n\nForward dynamic ambient (dynamb) data from [barnacles](https://github.com/reelyactive/barnacles) to Agora Software.\n\n\nInstallation\n------------\n\n    npm install barnacles-agora\n\n\nHello barnacles-agora\n---------------------\n\nThe following code will POST a single source data point via Webhook to Agora Software.\n\n```javascript\nconst Barnacles = require('barnacles');\nconst BarnaclesAgora = require('barnacles-agora');\n\nconst TARGET = 'https://agora.software/.../'; // Change to valid Webhook URL\nconst BARNACLES_OPTIONS = {\n    packetProcessors: [\n      { processor: require('advlib-ble'),\n        libraries: [ require('advlib-ble-services'),\n                     require('advlib-ble-manufacturers') ] }\n    ]\n};\n\nlet dynamb = {\n    deviceId: \"001122334455\",\n    deviceIdType: 3,\n    acceleration: [ 0.01, 0.02, -0.99 ],\n    batteryPercentage: 99,\n    relativeHumidity: 33,\n    temperature: 21,\n    timestamp: Date.now()\n}\n\nlet barnacles = new Barnacles(BARNACLES_OPTIONS);\nbarnacles.addInterface(BarnaclesAgora, { target: TARGET, printErrors: true });\nbarnacles.handleEvent('dynamb', dynamb);\n```\n\n\nSupported Properties/Attributes\n-------------------------------\n\n__barnacles-agora__ translates the standard dynamb properties, [as specified by advlib](https://github.com/reelyactive/advlib#standard-properties) (reelyActive's open source wireless advertising packet decoding library), into standard _attributes_ supported by Agora Software.  The current mapping is listed in the table below:\n\n| dynamb property   | Agora Software attribute | \n|:------------------|:-------------------------|\n| acceleration      | acceleration-g           |\n| angleOfRotation   | angle-degree             |\n| batteryPercentage | battery-percentage       |\n| illuminance       | brightness-lux           |\n| isContactDetected | switch                   |\n| isMotionDetected  | activityDetection        |\n| pressure          | pressure-hpa             |\n| relativeHumidity  | humidity-percentage      |\n| temperature       | temperature-celsius      |\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[![Known Vulnerabilities](https://snyk.io/test/github/reelyactive/barnacles-agora/badge.svg)](https://snyk.io/test/github/reelyactive/barnacles-agora)\n\n\nLicense\n-------\n\nMIT License\n\nCopyright (c) 2022 [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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freelyactive%2Fbarnacles-agora","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freelyactive%2Fbarnacles-agora","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freelyactive%2Fbarnacles-agora/lists"}