{"id":22859989,"url":"https://github.com/reelyactive/barnacles-webhook","last_synced_at":"2026-02-07T15:03:14.908Z","repository":{"id":34075496,"uuid":"168851337","full_name":"reelyactive/barnacles-webhook","owner":"reelyactive","description":"Forward ambient IoT sensor \u0026 location data from Pareto Anywhere open source middleware to a target server via HTTP POST. We believe in an open Internet of Things.","archived":false,"fork":false,"pushed_at":"2024-09-11T13:42:32.000Z","size":102,"stargazers_count":0,"open_issues_count":1,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-03T09:27:26.616Z","etag":null,"topics":["barnacles","dynamb","pareto-anywhere","raddec","webhook","webhooks"],"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}},"created_at":"2019-02-02T16:26:13.000Z","updated_at":"2024-09-12T16:08:12.000Z","dependencies_parsed_at":"2023-01-15T04:26:54.220Z","dependency_job_id":null,"html_url":"https://github.com/reelyactive/barnacles-webhook","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-webhook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reelyactive%2Fbarnacles-webhook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reelyactive%2Fbarnacles-webhook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reelyactive%2Fbarnacles-webhook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reelyactive","download_url":"https://codeload.github.com/reelyactive/barnacles-webhook/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229517375,"owners_count":18085490,"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":["barnacles","dynamb","pareto-anywhere","raddec","webhook","webhooks"],"created_at":"2024-12-13T09:08:37.362Z","updated_at":"2026-02-07T15:03:09.889Z","avatar_url":"https://github.com/reelyactive.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"barnacles-webhook\n=================\n\nWebhook interface for [barnacles](https://github.com/reelyactive/barnacles/) and/or [chimps](https://github.com/reelyactive/chimps/) open source software packages.  A webhook provides event notifications via HTTP POST.\n\n__barnacles-webhook__ POSTs the following events as JSON:\n- raddec (RADio DECoding data)\n- dynamb (DYNamic AMBient data)\n- spatem (SPAtial-TEMporal data)\n\n\nInstallation\n------------\n\n    npm install barnacles-webhook\n\n\nHello barnacles-webhook\n-----------------------\n\nThe following code will POST _simulated_ [raddec](https://github.com/reelyactive/raddec/) data to the /raddecs route on a local server running on port 80.  The simulated data is provided by [barnowl](https://github.com/reelyactive/barnowl/) which is typically run in conjunction with [barnacles](https://github.com/reelyactive/barnacles/).  Install the _barnowl_, _barnacles_ and _barnacles-webhook_ packages using npm before running the code.\n\n```javascript\nconst Barnowl = require('barnowl');\nconst Barnacles = require('barnacles');\nconst BarnaclesWebhook = require('barnacles-webhook');\n\nlet barnowl = new Barnowl();\nbarnowl.addListener(Barnowl, {}, Barnowl.TestListener, {});\n\nlet barnacles = new Barnacles({ barnowl: barnowl });\nbarnacles.addInterface(BarnaclesWebhook, { /* See options below */ });\n```\n\n\nOptions\n-------\n\n__barnacles-webhook__ supports the following options:\n\n| Property      | Default     | Description                                    | \n|:--------------|:------------|:-----------------------------------------------|\n| useHttps      | false       | POST via HTTPS (true) or HTTP (false)          |\n| hostname      | \"localhost\" | Hostname of the target server                  |\n| port          | 80          | Port of the target server                      |\n| raddecPath    | \"/raddecs\"  | Path for raddec objects on the target server   |\n| dynambPath    | \"/dynambs\"  | Path for dynamb objects on the target server   |\n| spatemPath    | \"/spatems\"  | Path for spatem objects on the target server   |\n| printErrors   | false       | Print errors to the console (for debug)        |\n| customHeaders | {}          | Dictionary of additional key/values for the header |\n\nBy default __barnacles-webhook__ will POST to http://localhost/raddecs.\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-webhook/badge.svg)](https://snyk.io/test/github/reelyactive/barnacles-webhook)\n\n\nLicense\n-------\n\nMIT License\n\nCopyright (c) 2019-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-webhook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freelyactive%2Fbarnacles-webhook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freelyactive%2Fbarnacles-webhook/lists"}