Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xmlking/nativescript-ngx-microsoftband
:package: Microsoft Band Plugin for NativeScript with Angular
https://github.com/xmlking/nativescript-ngx-microsoftband
angular4 cocoapods iot microsoft-band mobile nativescript typescript wearable
Last synced: about 2 months ago
JSON representation
:package: Microsoft Band Plugin for NativeScript with Angular
- Host: GitHub
- URL: https://github.com/xmlking/nativescript-ngx-microsoftband
- Owner: xmlking
- License: mit
- Created: 2017-01-16T08:01:22.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-01-12T05:15:44.000Z (about 2 years ago)
- Last Synced: 2024-12-14T03:18:18.446Z (about 2 months ago)
- Topics: angular4, cocoapods, iot, microsoft-band, mobile, nativescript, typescript, wearable
- Language: TypeScript
- Homepage:
- Size: 2.28 MB
- Stars: 1
- Watchers: 3
- Forks: 2
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
MicrosoftBand Plugin for Telerik NativeScript
=============================================
This NativeScript plugin enables building Mobile apps to display [Microsoft Band](https://www.microsoft.com/microsoft-band/en-us) sensors data.
This plugin uses MicrosoftBand [CocoaPod](https://github.com/xmlking/MicrosoftBand) written in **Swift** and [Band SDK](https://developer.microsoftband.com/bandsdk).![Demo](./screenshots/demo.png)
## Install
### Prerequisites
1. Node > 8.0.0
2. NativeScript CLI > 3.0.0
```bash
yarn global add nativescript --ignore-engines
```
3. Cocoapods
```bash
gem install cocoapods
pod repo update
```### Plugin
```sh
tns plugin add @xmlking/nativescript-ngx-microsoftband
```## Usage
### 1. import the MicrosoftBandModule module
```typescript
import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core";
import { NativeScriptModule } from "nativescript-angular/nativescript.module";
import { MicrosoftBandModule } from '@xmlking/nativescript-ngx-microsoftband';import { AppComponent } from "./app.component";
@NgModule({
imports: [
NativeScriptModule,
MicrosoftBandModule.forRoot()
],
declarations: [
AppComponent
],
bootstrap: [
AppComponent
],
schemas: [
NO_ERRORS_SCHEMA
]
})
export class AppModule { }
```### 2. use it in your service/component
Refer [app.component.ts](src/app/app.component.ts) and [heart-rate.component.ts](src/app/components/heart-rate.component.ts)
## Build
> Building and publishing the plugin.
### Setup
```
yarn run setup
```### Build
```bash
yarn run build
```### Publish
```bash
cd dist
npm publish
```## Example App
> Setup and Run Example app
### Setup
```
cd src
tns plugin remove @xmlking/nativescript-ngx-microsoftband; tns plugin add ../dist
# tns platform remove ios # cleanup?
```### Run
```
cd src
tns prepare ios
tns build ios --release
# open src/platforms/ios/src.xcworkspace project in xcode and run on attached iOS devise.
```## Credits
Idea came from [NathanWalker](https://github.com/NathanWalker), [Minko Gechev](https://github.com/mgechev)
## Contributors
# License
[MIT](/LICENSE)