npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

cordova-plugin-jins-meme-es

v1.0.2

Published

Cordova plugin for using the JINS MEME ES

Downloads

13

Readme

JINS MEME SDK Cordova Plugin

Notice: As of 1.0.2 (2018-02-15,) this repository is frozen and development is moving to cordova-plugin-jins-meme; we are setting this repository to read-only and will maintain it for reference. We will introduce background mode operation in version 2.0 of the JINS MEME cordova plugin (cordova-plugin-jins-meme.)

プラグイン構造 · Plug-in structure

├── README.md                              # 本文書 · This document
├── hooks
│   ├── android_after_plugin_install.js    # インストール時フックスクリプト(Android)
│   ├── android_before_plugin_uninstall.js # アンインストール時フックスクリプト(Android)
│   └── ios_after_plugin_install.js        # インストール時フックスクリプト(iOS)
├── node_modules                           # 依存するnodejsモジュール群(iOS)
│   └── ...
├── plugin.xml                             # Cordovaプラグイン定義ファイル
├── src
│   ├── android                            # Androidソースコード一式
│   │   ├── JinsMemePlugin.java
│   │   ├── MemeLib.jar
│   │   └── Message.java
│   └── ios                                # iOSソースコード一式
│       ├── JinsMemeMessage.h
│       ├── JinsMemeMessage.m
│       ├── JinsMemePlugin.m
│       └── MEMELib.framework
└── www
    └── jins_meme_plugin.js                # JavaScriptインタフェース · Cordova interface

JavaScript API

エラーオブジェクト · Error codes

構造 · Error structure

  • JSONオブジェクトでエラーcodeとmessageを返す · Example JSON error object
{
  code: -100,
  message: "some message" 
}

エラーコード · Error codes

  • プラグイン独自 · Connection status
-100 : 初期化失敗 · Initialization failure
-101 : 未初期化 · Uninitialized
-102 : スキャン中 · Scanning in progress
-103 : 未接続 · Disconnected
  • MemeStatus
 0 : OK
 1 : ERROR
 2 : ERROR_SDK_AUTH
 3 : ERROR_APP_AUTH
 4 : MEME_ERROR_CONNECTION
 5 : MEME_ERROR_LOGICAL  # Android (MEME_DEVICE_INVALIDと同じ意味)
 5 : MEME_DEVICE_INVALID # iOS (MEME_ERROR_LOGICALと同じ意味)
 6 : MEME_CMD_INVALID
 7 : MEME_ERROR_FW_CHECK
 8 : MEME_ERROR_BL_OFF
-1 : その他(UNKNOWN)

CalibStatus

  • isCalibStatusで取得した値を以下の数値に変換して返す · isCalibStatus returns the following codes:
 0 : CALIB_NOT_FINISHED
 1 : CALIB_BODY_FINISHED
 2 : CALIB_EYE_FINISHED
 3 : CALIB_BOTH_FINISHED
-1 : UNKNOWN  # その他

Reported Data

  • JSONオブジェクトでデータを返す · JSON object returned from startDataReport
{
  eyeMoveUp: 0,
  eyeMoveDown: 0,
  eyeMoveLeft: 0,
  eyeMoveRight: 0,
  blinkSpeed: 0,
  blinkStrength: 0,
  walking: 0,
  roll: 0,
  pitch: 0,
  yaw: 0,
  accX: 0,
  accY: 0,
  accZ: 0,
  noiseStatus: 0,
  fitError: 0,
  powerLeft: 0,
}

Android

SDK

  • JINS MEME SDK Android 1.1.4

アプリ設定 · Application settings

Make sure that Bluetooth is enabled

  • 設定 · Settings => Apps => 「該当アプリ」でBluetoothをONにすること · Turn on Bluetooth

依存するライブラリ等 · Dependencies

  • AndroidプラグインではAndroidManifest.xmlのtargetSdkVersionを変更するために以下のスクリプトを使用している · The plugin uses the following script to change the targetSdkVersion of AndroidManifest.xml

android_after_plugin_install.js

  • cordovaのフックスクリプト · Cordova hook script
  • AndroidManifest.xmlのandroid:targetSdkVersionを22に変更 · Change android: targetSdkVersion in AndroidManifest.xml to 22
    • BluetoothのPermission問題を解決するため · Solves Bluetooth permission problem
    • 23以上だとエラーが発生 · Version 23 and above cause an error
      • ACCESS_COARSE_LOCATIONとACCESS_FINE_LOCATIONを記述していても、エラーとなってしまう · Occurs even if ACCESS_COARSE_LOCATION and ACCESS_FINE_LOCATION are listed as permissions
      • gradleのバージョンを上げれば23以上でも対応可能だが、Cordovaコマンドからの更新は難しい · Upgrading Gradle permits 23 and up, but updating from Cordova cli is difficult
    • 元々のtargetSdkVersionをhooks/original_versionファイルに保存 · Save original targetSdkVersion in hooks / original_version file

android_before_plugin_uninstall.js

  • JINS MEMEプラグインを取り除く際に、AndroidManifest.xmlのandroid:targetSdkVersionを元に戻す · When removing the JINS MEME plug-in, undo android: targetSdkVersion in AndroidManifest.xml

iOS

SDK

  • JINS MEME SDK iOS 1.1.2

依存するnodejsモジュール · Node.js modules

iOSプラグインではXcodeのEmbedded BinariesにMEMELib.frameworkを追加するためにnode-xcodeを使用している。node-xcodeとその依存ライブラリは基本的にMIT LicenseとUnlicenseで使用可能である。各種詳細と依存関係は以下の通り。 · The iOS plugin uses node-xcode to add MEMELib.framework to Xcode's Embedded Binaries. Basically, node xcode and its dependency library can be used with MIT License and Unlicense. Various details and dependencies are as follows:

node-xcode

  • MIT License
  • 依存関係 · Dependencies:
├─ node-uuid                  # Dual License under MIT and GPL
├─ pegjs                      # MIT License
└─ simple-plist               # MIT License
    ├─ bplist-creator         # MIT License
    │   └─ stream-buffers     # Unlicense
    ├─ bplist-parser          # MIT License
    └─ plist                  # MIT License
        ├─ base64-js          # MIT License
        ├─ util-deprecate     # MIT License
        ├─ xmlbuilder         # MIT License
        │   └─ lodash-node    # MIT License
        └─ xmldom             # MIT License

node-uuid

  • node-xcodeで使用
  • Dual licensed under the MIT and GPL licenses.
  • 依存関係なし · No dependencies

pegjs

  • node-xcodeで使用
  • MIT License
  • 依存関係なし · No dependencies

simple-plist

  • node-xcodeで使用
  • MIT License
  • 依存関係 · Dependencies:
    • bplist-creator
    • bplist-parser
    • plist

bplist-creator

  • simple-plistで使用
  • MIT License
  • 依存関係 · Dependency:
    • stream-buffers

stream-parser

  • bplist-creatorで使用
  • UNLICENSE
  • 依存関係なし · No dependencies

bplist-creator

  • simple-plistで使用
  • MIT License
  • 依存関係なし · No dependencies

plist

  • bplist-creatorで使用
  • MIT License
    • base64-js
    • util-deprecate
    • xmlbuilder
    • xmldom

base64-js

  • plistで使用
  • MIT License
  • 依存関係なし · No dependencies

util-deprecate

  • plistで使用
  • MIT License
  • 依存関係なし · No dependencies

xmlbuilder

  • plistで使用
  • MIT License
  • 依存関係 · Dependency:
    • lodash-node

lodash-node

  • xmlbuilderで使用
  • MIT License
  • 依存関係なし · No dependencies

xmldom

  • plistで使用
  • MIT License
  • 依存関係なし · No dependencies

その他流用ライブラリ · Other notes & instructions

iOSプラグインではXcodeのEmbedded BinariesにMEMELib.frameworkを追加するために以下のコードを使用している。 · In the iOS plugin, the following code is used to add MEMELib.framework to Xcode's Embedded Binaries.

ios_after_plugin_install.js

  • cordovaのフックスクリプト · Cordova hook script
  • は以下のコードから流用 · hooks/after_plugin_install.js from:
    • https://github.com/btafel/cordova-plugin-braintree の hooks/after_plugin_install.js
    • MIT License