{"id":22859991,"url":"https://github.com/reelyactive/barnacles-influxdb2","last_synced_at":"2026-02-14T13:34:20.530Z","repository":{"id":207091854,"uuid":"718400803","full_name":"reelyactive/barnacles-influxdb2","owner":"reelyactive","description":"Write ambient IoT sensor timeseries data from Pareto Anywhere open source middleware to InfluxDB v2.  We believe in an open Internet of Things.","archived":false,"fork":false,"pushed_at":"2025-08-19T14:07:14.000Z","size":115,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-23T21:38:06.507Z","etag":null,"topics":["dynamb","influxdb2","iot","pareto-anywhere","timeseries-data"],"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,"zenodo":null}},"created_at":"2023-11-14T01:58:13.000Z","updated_at":"2025-08-19T14:07:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"beab5f3a-4ccc-485a-9dc6-ea6703224eef","html_url":"https://github.com/reelyactive/barnacles-influxdb2","commit_stats":null,"previous_names":["reelyactive/barnacles-influxdb2"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/reelyactive/barnacles-influxdb2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reelyactive%2Fbarnacles-influxdb2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reelyactive%2Fbarnacles-influxdb2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reelyactive%2Fbarnacles-influxdb2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reelyactive%2Fbarnacles-influxdb2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reelyactive","download_url":"https://codeload.github.com/reelyactive/barnacles-influxdb2/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reelyactive%2Fbarnacles-influxdb2/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29444767,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T12:43:28.304Z","status":"ssl_error","status_checked_at":"2026-02-14T12:43:14.160Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["dynamb","influxdb2","iot","pareto-anywhere","timeseries-data"],"created_at":"2024-12-13T09:08:37.517Z","updated_at":"2026-02-14T13:34:20.521Z","avatar_url":"https://github.com/reelyactive.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"barnacles-influxdb2\n===================\n\n__barnacles-influxdb2__ writes ambient IoT timeseries data to InfluxDB v2.\n\n![Overview of barnacles-influxdb2](https://reelyactive.github.io/barnacles-influxdb2/images/overview.png)\n\n__barnacles-influxdb2__ ingests a real-time stream of _dynamb_ objects from [barnacles](https://github.com/reelyactive/barnacles/) which it writes to a given InfluxDB v2 instance.  It couples seamlessly with reelyActive's [Pareto Anywhere](https://www.reelyactive.com/pareto/anywhere/) open source IoT middleware.\n\n__barnacles-influxdb2__ is a lightweight [Node.js package](https://www.npmjs.com/package/barnacles-influxdb2) that can run on resource-constrained edge devices as well as on powerful cloud servers and anything in between.\n\n\nPareto Anywhere integration\n---------------------------\n\nA common application of __barnacles-influxdb2__ is to write IoT data from [pareto-anywhere](https://github.com/reelyactive/pareto-anywhere) to an InfluxDB v2 timeseries database.  Simply follow our [Create a Pareto Anywhere startup script](https://reelyactive.github.io/diy/pareto-anywhere-startup-script/) tutorial using the script below:\n\n```javascript\n#!/usr/bin/env node\n\nconst ParetoAnywhere = require('../lib/paretoanywhere.js');\n\n// Edit the options to specify the InfluxDB v2 instance\nconst BARNACLES_INFLUXDB2_OPTIONS = {};\n\n// ----- Exit gracefully if the optional dependency is not found -----\nlet BarnaclesInfluxDB2;\ntry {\n  BarnaclesInfluxDB2 = require('barnacles-influxdb2');\n}\ncatch(err) {\n  console.log('This script requires barnacles-influxdb2.  Install with:');\n  console.log('\\r\\n    \"npm install barnacles-influxdb2\"\\r\\n');\n  return console.log('and then run this script again.');\n}\n// -------------------------------------------------------------------\n\nlet pa = new ParetoAnywhere();\npa.barnacles.addInterface(BarnaclesInfluxDB2, BARNACLES_INFLUXDB2_OPTIONS);\n```\n\n\nSupported dynamb properties\n---------------------------\n\n__barnacles-influxdb2__ converts standard [dynamb](https://reelyactive.github.io/diy/cheatsheet/#dynamb) properties into the following InfluxDB v2 types:\n\n| Property                     | InfluxDB v2 type | Conversion                | \n|:-----------------------------|:-----------------|:--------------------------|\n| acceleration                 | Float            | RMS of x, y, z            |\n| ammoniaConcentration         | Float            | none                      |\n| amperage                     | Float            | none                      |\n| angleOfRotation              | Float            | none                      |\n| angularVelocity              | Float            | none                      |\n| amperages                    | Float            | RMS of all values         |\n| batteryPercentage            | Float            | none                      |\n| batteryVoltage               | Float            | none                      |\n| carbonDioxideConcentration   | Float            | none                      |\n| carbonMonoxideConcentration  | Float            | none                      |\n| distance                     | Float            | none                      |\n| elevation                    | Float            | none                      |\n| heading                      | Float            | none                      |\n| heartRate                    | Float            | none                      |\n| illuminance                  | Float            | none                      |\n| isButtonPressed              | Boolean          | Logical OR of all values  |\n| isContactDetected            | Boolean          | Logical OR of all values  |\n| isHealthy                    | Boolean          | none                      |\n| isMotionDetected             | Boolean          | Logical OR of all values  |\n| isLiquidDetected             | Boolean          | Logical OR of all values  |\n| levelPercentage              | Float            | none                      |\n| luminousFlux                 | Float            | none                      |\n| magneticField                | Float            | RMS of x, y, z            |\n| methaneConcentration         | Float            | none                      |\n| nitrogenDioxideConcentration | Float            | none                      |\n| numberOfOccupants            | Unsigned Integer | none                      |\n| numberOfReceivedDevices      | Unsigned Integer | none                      |\n| numberOfStrongestReceivedDevices | Unsigned Integer | none                  |\n| passageCounts                | Unsigned Integer | Sum of all values         |\n| pressure                     | Float            | none                      |\n| pressures                    | Float            | RMS of all values         |\n| relativeHumidity             | Float            | none                      |\n| speed                        | Float            | none                      |\n| temperature                  | Float            | none                      |\n| temperatures                 | Float            | RMS of all values         |\n| txCount                      | Unsigned Integer | none                      |\n| uptime                       | Unsigned Integer | none                      |\n| volatileOrganicCompoundsConcentration | Float   | none                      |\n| voltage                      | Float            | none                      |\n| voltages                     | Float            | RMS of all values         |\n\n\nOptions\n-------\n\n__barnacles-influxdb2__ supports the following options:\n\n| Property      | Default                    | Description                    | \n|:--------------|:---------------------------|:-------------------------------|\n| url           | \"http://localhost:8086\"    | Local InfluxDB2 instance       |\n| token         | process.env.INFLUXDB_TOKEN | Secret token                   |\n| org           | \"reelyActive\"              | Organisation                   |\n| bucket        | \"pareto-anywhere\"          | Bucket                         |\n\nTo set the INFLUXDB_TOKEN as an environment variable in Linux:\n\n    export INFLUXDB_TOKEN=pasteTokenHere\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-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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freelyactive%2Fbarnacles-influxdb2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freelyactive%2Fbarnacles-influxdb2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freelyactive%2Fbarnacles-influxdb2/lists"}