{"id":13851887,"url":"https://github.com/brainexe/node-metawear","last_synced_at":"2025-03-20T01:34:04.207Z","repository":{"id":94370598,"uuid":"42366343","full_name":"brainexe/node-metawear","owner":"brainexe","description":"nodejs library for MetaWear devices","archived":false,"fork":false,"pushed_at":"2019-02-10T10:32:56.000Z","size":134,"stargazers_count":28,"open_issues_count":15,"forks_count":12,"subscribers_count":12,"default_branch":"master","last_synced_at":"2024-10-17T21:43:46.004Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/brainexe.png","metadata":{"files":{"readme":"readme.md","changelog":"changelog.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2015-09-12T17:32:49.000Z","updated_at":"2023-11-06T09:06:05.000Z","dependencies_parsed_at":"2023-03-13T17:00:19.889Z","dependency_job_id":null,"html_url":"https://github.com/brainexe/node-metawear","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brainexe%2Fnode-metawear","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brainexe%2Fnode-metawear/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brainexe%2Fnode-metawear/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brainexe%2Fnode-metawear/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brainexe","download_url":"https://codeload.github.com/brainexe/node-metawear/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221733376,"owners_count":16871863,"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":[],"created_at":"2024-08-04T22:00:45.224Z","updated_at":"2024-10-27T21:07:10.318Z","avatar_url":"https://github.com/brainexe.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/brainexe/node-metawear.svg?branch=master)](https://travis-ci.org/brainexe/node-metawear)\n[![Downloads](https://img.shields.io/npm/dt/node-metawear.svg)]()\n[![Dependencies](https://david-dm.org/brainexe/node-metawear.svg)]()\n\n# Introduction\nnodejs library for MetaWear platform from https://www.mbientlab.com/\n\n# Installation\nBuild package from repository:\n```\ngit clone git@github.com:brainexe/node-metawear.git\ncd node-metawear\nnpm install\n```\nAn alternative is to install the NPM module directly:\n```\nnpm install node-metawear\n```\n\nAdditionally you have to follow some steps, depending of your OS\n\n## Linux (Ubuntu / RaspberryPi)\nInstall required system packages\n```\nsudo apt-get install bluetooth bluez-utils libbluetooth-dev\n```\nThis command grants the node binary cap_net_raw privileges, so it can start/stop BLE advertising. Then you don't need the \"sudo\" prefix anymore:\n```\nsudo setcap cap_net_raw+eip $(eval readlink -f `which node`)\n```\n\n## ChromeOS\nSame as Linux, but the main difference here is that you’ll need to run Node through host-dbus, since it’s accessing the Bluetooth adapter attached through Chrome OS.\n```\nsudo setcap cap_net_raw+eip $(eval readlink -f `which node`)\nexport DEBUG=\"noble-device\" \nhost-dbus node examples/all.js\n```\nthx to [Lance](http://www.polyglotprogramminginc.com/using-metawear-with-node-js/)\n\n## Mac OS\n```\nnpm install\nDEBUG=\"noble-device\" node examples/all.js\n```\n\n## Run\nRun examples in debug output\n```\nDEBUG=\"noble-device\" node examples/all.js\n```\n\n## Functions\nThe functionality is very limited at the moment:\n- Connection Parameters setup\n- Control LED\n- Start buzzer/motor\n- Read/Set Device name\n- Read switch status (+ pressed/release events)\n- Read out battery status\n- Accelerometer / Gyroscope\n- Step counter\n- Temperature sensor\n- Ambient light sensor\n- Barometer sensor\n- BMM150 Magnetometer\n- QUATERNION data from SensorFusion, ONLY FOR METAMOTION R Boards !!\n\n## Next release -\u003e v1.1.0\n- SensorFusion - NDOF mode support for all output types\n- Acceleromter - TAP_CONFIG, ORIENT_CONFIG, FLAT_CONFIG, LOW_HIGH_G_CONFIG\n- Refactoring of the sensor configuration implementation\n\nNote : The versioning restarted at v1.0.0 in order to better handle the major and minor releases as from now.\n\n## Run unit tests\n```\nnpm install -g jasmine\nnpm test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrainexe%2Fnode-metawear","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrainexe%2Fnode-metawear","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrainexe%2Fnode-metawear/lists"}