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

usb-ud-co2s

v1.0.2

Published

This module provides I/O DATA USB device (UD-CO2S).

Downloads

3

Readme

Overview

このモジュールは**I/O DATAのUSB CO2センサ(UD-CO2S)**をサポートします. 非公式ですので、本モジュールに関してOMRON社様に問い合わせなどは行わないようにお願いします.

This module provides USB environment sensor (UD-CO2S) producted by I/O DATA. This module is informality.

動作確認は UD-CO2 (https://www.iodata.jp/product/tsushin/iot/ud-co2s/index.htm) で行いました.

Install

次に下記コマンドでモジュールをインストールできます.

You can install the module as following command.

npm i usb-ud-co2s

Demos

demo

Here is a demonstration script.

'use strict';

const udco2s = require('usb-ud-co2s');

udco2s.start(  (res, error) => {
	if( error ) {
		console.error( '#', error );
		return;
	}

	console.log( '----------------------------' );
	let dt = new Date();
	console.log( dt );
	console.dir( res );
} );

Data stracture

{ state: 'OK' }
{ state: 'connected', CO2: '623', HUM: '52.5', TMP: '28.9' }

APIs

初期化と実行

  • start(callback) 受信したらcallback関数を呼び出します。 callback関数は下記の形式です。
callback( sensorData, error )
  • stop() 終了してportを開放します。

Authors

神奈川工科大学 創造工学部 ホームエレクトロニクス開発学科; Dept. of Home Electronics, Faculty of Creative Engineering, Kanagawa Institute of Technology

杉村 博; SUGIMURA, Hiroshi

thanks

Thanks to Github users!

  • 参考にしたソース、Reference https://sokosun.tumblr.com/post/705952427815337984/io-data-ud-co2s

License

MIT License

-- License summary --
o Commercial use
o Modification
o Distribution
o Private use
x Liability
x Warranty

Log

  • 1.0.2 Win ver. 変化対応
  • 1.0.1 少し手直し
  • 1.0.0 動作確認済み
  • 0.0.1 開発開始、公開