# webmo-client

> A javascript library for webmo

Latest version **0.1.1** (published 2016-06-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install webmo-client
pnpm add webmo-client
yarn add webmo-client
bun add webmo-client
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2016-06-04 |
| First published | 2016-05-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 8 |
| Author | mactkg |
| Maintainers | mactkg |
| Keywords | Webmo, WoT, IoT, Cidre, CidreIxD |

## Links

- npm: https://www.npmjs.com/package/webmo-client
- Repository: https://github.com/cidreixd/webmo-library-javascript
- Issues: https://github.com/cidreixd/webmo-library-javascript/issues
- npm.io page: https://npm.io/package/webmo-client

## Dependencies (3)

- [q](https://npm.io/package/q.md) ^1.4.1
- [qwest](https://npm.io/package/qwest.md) ^4.1.0
- [eventemitter2](https://npm.io/package/eventemitter2.md) ^1.0.0

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.1.1 (latest) — 2016-06-04
- 0.1.0 — 2016-05-28

## README

# webmo-client
[Webmo](http://webmo.io/) のためのJavaScript用ライブラリです。

## Examples
### ブラウザからすぐ使う

```
<script src="https://raw.githubusercontent.com/cidreixd/webmo-library-javascript/master/dist/webmo.min.js"></script>
```

でgithubから直接ライブラリをインポートできます。


#### 例: 毎秒90度のスピードで回転して2秒後に止まる
```
<html>
  <head>
    <script src="https://raw.githubusercontent.com/cidreixd/webmo-library-javascript/master/dist/webmo.min.js"></script>
    <script type="text/javascript">
    var webmo = new Webmo.ws("webmo.local") // 引数にはホスト名を指定します。
    
    // クライアントがWebmoに接続したら呼ばれる関数
    webmo.onopen = function () {
      webmo.rotate(90) // 毎秒90度で回転する
      setTimeout(function () {
          // 2秒後に停止
          webmo.stop()
      }, 2000)
    }
    </script>
  </head>
  <body></body>
</html>
```

### Node.jsで使う

```
npm install webmo-client --save
```

#### 例: 毎秒90度のスピードで回転して2秒後に止まる
```
var WebmoWs = require('webmo-client').ws
var motor = new WebmoWs("webmo.local")

webmo.onopen = () => {
  motor.rotate(90)
  setTimeout(() => { motor.stop() }, 2000)
}
```

## document
commming soon...

## サポートするWebmoのソフトウェアバージョン
`v0.1.0`-`v0.1.1`

## License
MIT License

---
_Source: https://npm.io/package/webmo-client · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
