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

node-red-contrib-envsensor2jciebl01

v0.0.1

Published

omron environment sensor(2jciebl01) on Node-RED

Downloads

2

Readme


デプロイ先環境構築手順

①Node-redを任意のNode.jsで動作させるためのNVM(Nodejsバージョン管理ソフト)をインストール

export LANG=C
sudo mkdir /usr/local/nvm
sudo chmod 777 /usr/local/nvm
git clone https://github.com/creationix/nvm.git /usr/local/nvm

②使用するNode.jsのバージョンを設定

source /usr/local/nvm/nvm.sh
nvm alias default v6.14.0

③noble インストール

npm install noble

環境センサのモード変更

①以下のURLを参考に、環境センサの設定をBroadcasterに変更する

https://qiita.com/komde/items/7209b36159da69ae79d2


パッケージリンク手順

①ソースを以下の場所に格納する

/home/pi/project/envsensor_on_node_red/node-red-contrib-2jciebl01

Note: 拡張子が"js.tmp"のソースファイルがあった場合、"js"ファイルに変更してください。

②Node-REDにリンクする

source /usr/local/nvm/nvm.sh
nvm alias default v6.14.0
cd /home/pi/project/envsensor_on_node_red/node-red-contrib-2jciebl01
sudo npm link
cd ~/.node-red
sudo npm link node-red-contrib-2jciebl01

Node-RED起動手順

①Node-RED起動手順
以下のコマンドでNode-REDを起動してください

source /usr/local/nvm/nvm.sh
nvm alias default v6.14.0
sudo node-red

Note: 現時点(18/4//4)では、node-red-start実行時のNode.jsのバージョン指定方法がわかっていないため、  node-red-startコマンドを使用しないでください。

②以下のURLをブラウザで開く
http://127.0.0.1:1880/


動作確認手順

①Node-REDの画面から以下の操作を行う。

右上メニュークリック⇒読み込みクリック⇒クリップボードクリック⇒ 以下のJsonを貼り付ける

[{"id":"95e0f0e3.157a","type":"debug","z":"5fbb356.1f49acc","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":590,"y":220,"wires":[]},{"id":"f359d118.da771","type":"lower-case","z":"5fbb356.1f49acc","name":"","x":180,"y":240,"wires":[["95e0f0e3.157a"]]}]

書き込みクリック⇒デプロイクリック⇒ デバッグウィンドウを表示して、気温データが表示されたらOK


未確認事項

・Node-REDバージョンについて
⇒Noble動作環境検証時に、Node-REDのバージョンをラズパイのデフォルトから変えたかもしれません。
 動作しなかった場合は、以下のコマンドでNode-REDのバージョンを上げてください。

update-nodejs-and-nodered