{"id":22859973,"url":"https://github.com/reelyactive/barnacles-logfile","last_synced_at":"2026-02-15T21:02:04.507Z","repository":{"id":69136399,"uuid":"171694642","full_name":"reelyactive/barnacles-logfile","owner":"reelyactive","description":"Write ambient IoT sensor data and radio decodings to logfiles in a spreadsheet-friendly format.  We believe in an open Internet of Things.","archived":false,"fork":false,"pushed_at":"2024-09-13T14:31:46.000Z","size":116,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-19T00:15:04.099Z","etag":null,"topics":["barnacles","csv-files","dynamb","iot","logfile","logfiles","node-js","pareto-anywhere","raddec"],"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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-02-20T15:07:07.000Z","updated_at":"2024-09-13T14:31:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"c38ede7a-794e-4f75-b690-24c84497a27b","html_url":"https://github.com/reelyactive/barnacles-logfile","commit_stats":{"total_commits":19,"total_committers":1,"mean_commits":19.0,"dds":0.0,"last_synced_commit":"bc3ab97ee29e6eb6f33a14df273737f3a9905cc4"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/reelyactive/barnacles-logfile","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reelyactive%2Fbarnacles-logfile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reelyactive%2Fbarnacles-logfile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reelyactive%2Fbarnacles-logfile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reelyactive%2Fbarnacles-logfile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reelyactive","download_url":"https://codeload.github.com/reelyactive/barnacles-logfile/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reelyactive%2Fbarnacles-logfile/sbom","scorecard":{"id":768412,"data":{"date":"2025-08-11","repo":{"name":"github.com/reelyactive/barnacles-logfile","commit":"7ccc2bcd1814361178aa879158e37334cf768f97"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.9,"checks":[{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: SECURITY.md:1","Info: Found linked content: SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: SECURITY.md:1","Info: Found text in security policy: SECURITY.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-23T01:32:17.707Z","repository_id":69136399,"created_at":"2025-08-23T01:32:17.707Z","updated_at":"2025-08-23T01:32:17.707Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29489333,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-15T19:29:10.908Z","status":"ssl_error","status_checked_at":"2026-02-15T19:29:10.419Z","response_time":118,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["barnacles","csv-files","dynamb","iot","logfile","logfiles","node-js","pareto-anywhere","raddec"],"created_at":"2024-12-13T09:08:34.889Z","updated_at":"2026-02-15T21:02:04.488Z","avatar_url":"https://github.com/reelyactive.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"barnacles-logfile\n=================\n\n__barnacles-logfile__ writes IoT data to local logfiles in CSV (or equivalent) format for easy manipulation and analysis in spreadsheets.\n\n![Overview of barnacles-logfile](https://reelyactive.github.io/barnacles-logfile/images/overview.png)\n\n__barnacles-logfile__ ingests a real-time stream of _raddec_ and _dynamb_ objects from [barnacles](https://github.com/reelyactive/barnacles/) which it writes to a local logfile specific to each type.  It couples seamlessly with reelyActive's [Pareto Anywhere](https://www.reelyactive.com/pareto/anywhere/) open source IoT middleware.\n\n__barnacles-logfile__ is a lightweight [Node.js package](https://www.npmjs.com/package/barnacles-logfile) 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-logfile__ is to write IoT data from [pareto-anywhere](https://github.com/reelyactive/pareto-anywhere) to local logfiles.  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 customise the logfiles\nconst BARNACLES_LOGFILE_OPTIONS = {};\n\n// ----- Exit gracefully if the optional dependency is not found -----\nlet BarnaclesLogfile;\ntry {\n  BarnaclesLogfile = require('barnacles-logfile');\n}\ncatch(err) {\n  console.log('This script requires barnacles-logfile.  Install with:');\n  console.log('\\r\\n    \"npm install barnacles-logfile\"\\r\\n');\n  return console.log('and then run this script again.');\n}\n// -------------------------------------------------------------------\n\nlet pa = new ParetoAnywhere();\npa.barnacles.addInterface(BarnaclesLogfile, BARNACLES_LOGFILE_OPTIONS);\n```\n\n\nHello barnacles-logfile\n-----------------------\n\nThe following code will log _simulated_ [raddec](https://github.com/reelyactive/raddec/) data to a file named raddec-YYMMDD-HHMMSS.csv where the date and time represent the local time the log was created.  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-logfile_ packages using npm before running the code.\n\n```javascript\nconst Barnowl = require('barnowl');\nconst Barnacles = require('barnacles');\nconst BarnaclesLogfile = require('barnacles-logfile');\n\nlet barnowl = new Barnowl();\nbarnowl.addListener(Barnowl, {}, Barnowl.TestListener, {});\n\nlet barnacles = new Barnacles({ barnowl: barnowl });\nbarnacles.addInterface(BarnaclesLogfile, { /* See options below */ });\n```\n\n\nOptions\n-------\n\n__barnacles-logfile__ supports the following options:\n\n| Property    | Default                    | Description                      | \n|:------------|:---------------------------|:---------------------------------|\n| eventsToLog | { raddec: {}, dynamb: {} } | See default event-specific properties below |\n\nFor example, the complete (default) options would be specified as:\n\n    {\n      eventsToLog: {\n        raddec: {\n          folderPath: \"./\",\n          logfileExtension: \".csv\",\n          logfileDelimiter: \",\",\n          minutesToRotation: 60,\n          numberOfReceiversToLog: 1\n        },\n        dynamb: {\n          folderPath: \"./\",\n          logfileExtension: \".csv\",\n          logfileDelimiter: \",\",\n          minutesToRotation: 60,\n          propertiesToLog: [ /* acceleration, ..., uptime */ ]\n        }\n      }\n    }\n\n| Event-specific property | Default | Description                           | \n|:------------------------|:--------|:--------------------------------------|\n| folderPath              | \"./\"    | Path to folder where logfiles written |\n| logfileExtension        | \".csv\"  | File extension to use                 |\n| logfileDelimiter        | \",\"     | Field delimiter                       |\n| minutesToRotation       | 60      | Period between logfile rotations      |\n\n| raddec-specific property | Default | Description                           | \n|:-------------------------|:--------|:--------------------------------------|\n| numberOfReceiversToLog   | 1       | Number of receivers to log in columns |\n\n| dynamb-specific property | Default | Description                         | \n|:-------------------------|:--------|:------------------------------------|\n| propertiesToLog          | [ all ] | dynamb properties to log in columns |\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) 2019-2024 [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-logfile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freelyactive%2Fbarnacles-logfile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freelyactive%2Fbarnacles-logfile/lists"}