{"_id":"@candy-line/node-red-contrib-omron-2jcie-bu","_rev":"2-9dde9ef6d3968113ea9bcb744c0a2a25","name":"@candy-line/node-red-contrib-omron-2jcie-bu","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@candy-line/node-red-contrib-omron-2jcie-bu","version":"1.0.0","description":"OMRON 2JCIE-BU Environment Sensor (USB Type) Serial Data Translator","repository":{"type":"git","url":"git+https://github.com/CANDY-LINE/node-red-contrib-omron-2jcie-bu.git"},"author":{"name":"Daisuke Baba","email":"baba.daisuke@gmail.com"},"license":"Apache-2.0","bugs":{"url":"https://github.com/CANDY-LINE/node-red-contrib-omron-2jcie-bu/issues"},"scripts":{"build":"gulp build","test":"NODE_ENV=development gulp test","clean":"gulp clean","prepare":"gulp build"},"publishConfig":{"access":"public"},"homepage":"https://github.com/CANDY-LINE/node-red-contrib-omron-2jcie-bu#readme","keywords":["node-red","OMRON","2JCIE-BU","Environment Sensor","CANDY RED","CANDY EGG"],"main":"dist/2jcie-bu.js","devDependencies":{"babel-core":"^7.0.0-bridge.0","babel-plugin-add-module-exports":"^0.2.1","babel-plugin-transform-runtime":"^6.23.0","babel-preset-env":"^1.7.0","babel-preset-minify":"^0.3.0","chai":"^4.2.0","del":"^2.2.2","gulp":"^3.9.1","gulp-babel":"^6.1.3","gulp-clean-css":"^3.9.3","gulp-cli":"^2.0.1","gulp-header":"^2.0.5","gulp-htmlmin":"^4.0.0","gulp-if":"^2.0.2","gulp-jshint":"^2.1.0","gulp-less":"^4.0.0","gulp-manifest":"^0.1.1","gulp-mocha":"^5.0.0","gulp-noop":"^1.0.0","gulp-resources":"^0.5.0","gulp-sourcemaps":"^2.6.4","gulp-uglify-es":"^2.0.0","gulp-yaml":"^1.0.1","jshint":"^2.9.5","jshint-stylish":"^2.2.1","mocha":"^5.0.4","sinon":"^4.5.0","sinon-chai":"^3.0.0","supertest":"^3.0.0"},"dependencies":{"source-map-support":"^0.4.2"},"node-red":{"nodes":{"2jcie-bu":"dist/2jcie-bu.js"}},"gitHead":"9542b6ca8e72889b117bb33f3ce8ab62b4ce7c02","_id":"@candy-line/node-red-contrib-omron-2jcie-bu@1.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.4","_npmUser":{"name":"dbaba","email":"baba.daisuke@gmail.com"},"dist":{"integrity":"sha512-NZKy38ywJQAdYY8K/twCh1F8MD5KZ6dp9v1zNsy9b8IT7tzupmPoqqYlHAq0nUzlN6dBvSrxD0WA7qyYj2yHlw==","shasum":"9dc53010851358d085fb1e0b42b7d0638398c41d","tarball":"https://registry.npmjs.org/@candy-line/node-red-contrib-omron-2jcie-bu/-/node-red-contrib-omron-2jcie-bu-1.0.0.tgz","fileCount":9,"unpackedSize":42775,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdyQHTCRA9TVsSAnZWagAAiDsP/RxbmArOzmR6kZ1kNnjM\nO0h9mk30HEDlvjwKCptG85YR4pKWbRPqujF6J/irUDFKEupqMw2BZhy3zpH/\nckpTtEUjUHihZ5kxwLelDMyGHHLf6rSfjD9MgB1xN/d5Tk5oTezajBQE3+Su\n+rPRS0MVj/6NBMylMvHmMvHhKBKpjUQGvwyPIbUdjjrxfJcpo0zmLpKdGVBJ\n1bTkJKMXiBZnsAERhGiQtRzytYZca9LV4zEsLKdtlTNoFyOZ4Sg56axc7cV1\nUzwgRBNxGsGo3RUTpNh/FjlFgy0QHXdieTs8qSbTO2vfIxH7ZT6Gw9aavyos\nU4bLx8fgDq3IDG977J6y1zpSwvtGIUzd1klWXabLqpEgJ2eCx9Net/Nd2ygU\nOVaQ0jzueHjR81vOZmUSG9r5KfqFyg0KalXCn80sqv2u0CjiDNCuRy4XNP2U\nyHzImUrDcwc8Ig+3c+fDJKN3tRGqBvbvPaaLDVzfGBz8OEpiEC4bXPgTMBgW\nDulR4PVkQQkFxk6zwuaFxng7ZR2zl9KE3iVfoZ93Vlot9s/ZilXnQ1nHHNaN\nI/SU76t7w/YdmUZy1WMC9o+BhQv52Dzkpk4IzhnpVgYsjjR0JUgqIYQA1xXD\neskGmunVaGTVNzy/Xx8ZDLc66uoMpWeqdJxj3WHjgymYSN0PcatbKN4JuWej\njShp\r\n=URIJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG0wdaJLFTGYPzeoZW0TB9N9STSQ1tsfWM1AFkPew0DqAiEAskD9L7fUJrwA4WtApu00aPSLOryoUOpGZ0tcL0IaKE4="}]},"maintainers":[{"name":"dbaba","email":"baba.daisuke@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/node-red-contrib-omron-2jcie-bu_1.0.0_1573454291303_0.2869623866076614"},"_hasShrinkwrap":false},"1.0.1":{"name":"@candy-line/node-red-contrib-omron-2jcie-bu","version":"1.0.1","description":"OMRON 2JCIE-BU Environment Sensor (USB Type) Serial Data Translator","repository":{"type":"git","url":"git+https://github.com/CANDY-LINE/node-red-contrib-omron-2jcie-bu.git"},"author":{"name":"Daisuke Baba","email":"baba.daisuke@gmail.com"},"license":"Apache-2.0","bugs":{"url":"https://github.com/CANDY-LINE/node-red-contrib-omron-2jcie-bu/issues"},"scripts":{"build":"gulp build","test":"NODE_ENV=development gulp test","clean":"gulp clean","prepare":"gulp build"},"publishConfig":{"access":"public"},"homepage":"https://github.com/CANDY-LINE/node-red-contrib-omron-2jcie-bu#readme","keywords":["node-red","OMRON","2JCIE-BU","Environment Sensor","CANDY RED","CANDY EGG"],"main":"dist/2jcie-bu.js","devDependencies":{"babel-core":"^7.0.0-bridge.0","babel-plugin-add-module-exports":"^0.2.1","babel-plugin-transform-runtime":"^6.23.0","babel-preset-env":"^1.7.0","babel-preset-minify":"^0.3.0","chai":"^4.2.0","del":"^2.2.2","gulp":"^3.9.1","gulp-babel":"^6.1.3","gulp-clean-css":"^3.9.3","gulp-cli":"^2.0.1","gulp-header":"^2.0.5","gulp-htmlmin":"^4.0.0","gulp-if":"^2.0.2","gulp-jshint":"^2.1.0","gulp-less":"^4.0.0","gulp-manifest":"^0.1.1","gulp-mocha":"^5.0.0","gulp-noop":"^1.0.0","gulp-resources":"^0.5.0","gulp-sourcemaps":"^2.6.4","gulp-uglify-es":"^2.0.0","gulp-yaml":"^1.0.1","jshint":"^2.9.5","jshint-stylish":"^2.2.1","mocha":"^5.0.4","sinon":"^4.5.0","sinon-chai":"^3.0.0","supertest":"^3.0.0"},"dependencies":{"source-map-support":"^0.4.2"},"node-red":{"nodes":{"2jcie-bu":"dist/2jcie-bu.js"}},"gitHead":"436684e5db2661253936b61aff828ed54e6d1b94","_id":"@candy-line/node-red-contrib-omron-2jcie-bu@1.0.1","_npmVersion":"5.6.0","_nodeVersion":"8.11.4","_npmUser":{"name":"dbaba","email":"baba.daisuke@gmail.com"},"dist":{"integrity":"sha512-6QBCDAjEj1pTjXJteyDRwznOanPYGecVMJ8OwMg6woC7serpv5C3/J+dej0vSUJAJ7Ln6Tvp5vmpnIw/2ufSeg==","shasum":"55d14d7b4fd920b24d103c0a77553837af8ad243","tarball":"https://registry.npmjs.org/@candy-line/node-red-contrib-omron-2jcie-bu/-/node-red-contrib-omron-2jcie-bu-1.0.1.tgz","fileCount":9,"unpackedSize":42798,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdy2lxCRA9TVsSAnZWagAABBwQAIWA1hXJOBzjsHBwDPAV\nZvtCj1CknoAVtGvZE7s2fy5ohyi6kX2DAO6utTEfOeqS54ttA18p2bE5u4pn\neJi6h3h8DljQmLTZVPHiK+nExI9+FruZtLcCzKUuKAltrPP5YN7VHfA05iIa\nFpAtzpBrvg/q0leXVXVKBd4WXrA+EYBSQ/MUjpcTqGyjlJvOrl0F2ouziqLc\ntRjAToCByhtfeI6mEYp+f39nhDvsYVbi8QyRaIx8E1xmWm9rKIKw4krA3UYM\n6ao2+8j/zRo8gnjyj38NXZ/2FGYB4jxTzKnm7T9LPC9YDj4LMbiqNtJy9f6H\nW4676CeiT/PMq1eFTf2L+lg665k11/mJCCPZYNPhCtMb09uOf3AqvvtyLDhs\n1BJ79li+cu8IUkw3HNsE6WK9RGd9LVQ9nX0wnqD41svKSrBwEerKUJn0lpxV\n9TPQ+tPkvPVdSpRAw7zjKZqZOkoCCOIxv0NTVdBhxlCz2MylytSTGil1xYqp\nCJ6rfgDlNTsBUZISSL47d3C6ydCmsPeFkWL6ut0q4td/6NnSNMCz1UI0SCEs\n74qO5uLo1CvzZYPd5wB+PPtqb9JmVsRlOH3G/+gPMKEGFUtZ4Lc95f3tntQd\neihbH12MPPl35Dl0rfJK2x79zWdz2VZhLxMxtYCySlAMCSUKyBHhnRwmir4L\nWQ6u\r\n=grhz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDkN9Q3+GJJ8wkbzvBeM1s8RCNGORuWvRcuzb81nd9SSQIgTFrcwi7/eo+4CGEnwhvr8w1jmtuj91VClysiGknOhKQ="}]},"maintainers":[{"name":"dbaba","email":"baba.daisuke@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/node-red-contrib-omron-2jcie-bu_1.0.1_1573611889158_0.033299504809479075"},"_hasShrinkwrap":false}},"time":{"created":"2019-11-11T06:38:11.109Z","1.0.0":"2019-11-11T06:38:11.401Z","modified":"2022-04-04T21:36:53.721Z","1.0.1":"2019-11-13T02:24:49.335Z"},"maintainers":[{"name":"dbaba","email":"baba.daisuke@gmail.com"}],"description":"OMRON 2JCIE-BU Environment Sensor (USB Type) Serial Data Translator","homepage":"https://github.com/CANDY-LINE/node-red-contrib-omron-2jcie-bu#readme","keywords":["node-red","OMRON","2JCIE-BU","Environment Sensor","CANDY RED","CANDY EGG"],"repository":{"type":"git","url":"git+https://github.com/CANDY-LINE/node-red-contrib-omron-2jcie-bu.git"},"author":{"name":"Daisuke Baba","email":"baba.daisuke@gmail.com"},"bugs":{"url":"https://github.com/CANDY-LINE/node-red-contrib-omron-2jcie-bu/issues"},"license":"Apache-2.0","readme":"node-red-contrib-omron-2jcie-bu\n===\n\n[![GitHub release](https://img.shields.io/github/release/CANDY-LINE/node-red-contrib-omron-2jcie-bu.svg)](https://github.com/CANDY-LINE/node-red-contrib-omron-2jcie-bu/releases/latest)\n[![master Build Status](https://travis-ci.org/CANDY-LINE/node-red-contrib-omron-2jcie-bu.svg?branch=master)](https://travis-ci.org/CANDY-LINE/node-red-contrib-omron-2jcie-bu/)\n\n[`OMRON 2JCIE-BU` Environment Sensor (USB Type)](https://www.components.omron.com/product-detail?partId=73065) Serial Data Translator node.\n\n**This node DOES NOT SUPPORT Bluetooth Communication Packets but DOES USB Serial Communication Packets.**\n\n![OMRON 2JCIE-BU](images/2jcie-bu01_s.png)\n\nSupported sensor values are as follows.\n\n1. Illuminance (lux)\n1. Temperature (degree Celsius)\n1. Humidity (%)\n1. Barometric Pressure (hPa)\n1. Sound Noise (dB)\n1. eTVOC (ppb)\n1. eCO2 (ppm)\n1. Discomfort Index (DI, Temperature-Humidity Index)\n1. Heat Stroke (degree Celsius)\n1. Spectral Intensity Value (SI Value in cm/s=kine, for small to medium scale vibration)\n1. Seismic Intensity Scale of Japan (for larger scale vibration like earthquake)\n1. Vibration Status (`None`, `Vibration Detected`, or `Earthquake Detected`)\n1. Mounting Position (see below)\n\n![\nFigure 20 Mounting orientation](images/fig-20.mounting-orientation.jpg)\n`\"Figure 20 Mounting orientation\" 2JCIE-BU01 Environment Sensor (USB Type) User's Manual (A279), p.98`\n\nThis node project offers nodes translating the raw packets into easy-to-use JSON objects and vice-versa.\n\nWith `2JCIE-BU out` node, you can query sensor information by sending a command message object. You can set the LED color as well with the node.\n\nWith `2JCIE-BU in` node, you can get a JSON object from a raw data packet in response to a command.\nThe node supports Node-RED Dashboard [Chart node data format](https://github.com/node-red/node-red-dashboard/blob/master/Charts.md), which means you can quickly plot the device sensor data with the Chart node without any data transformation (available for numeric data).\n\n## Where to buy OMRON 2JCIE-BU\n\nLet's visit the [product page](https://www.components.omron.com/product-detail?partId=73065)!\n\n## Example Flow\n\nThe bundled example flow provides the following demonstrations:\n\n- `getLatestSensorData` inject node to send `getLatestSensorData` command\n- `getMountingOrientation` inject node to send `getMountingOrientation` command\n- `getMountingOrientation` inject node to send `getMountingOrientation` command\n- `set LED Color (Light Blue)` inject node to send `setLED` command with Light Blue color number\n- `set LED Color Rule (Temperature)` inject node to send `setLED` command with Temperature display rule\n\nAll outputs are shown on the debug tab.\n\n# Prerequisites\n\n## Software\n\nThe following node is required to send/receive data packets via USB serial.\n\n* [node-red-node-serialport](https://flows.nodered.org/node/node-red-node-serialport) node\n* Linux FTDI Driver (ftdi_sio.ko)\n\n## Hardware\n\n- OMRON 2JCIE-BU\n\n## Supported OS\n\n- Linux\n\n## How to use\n\nIn order to use OMRON 2JCIE-BU, you might need some work as described below.\n\n1. Add Product ID and Vendor ID to the FTDI Driver\n1. Configure the `serial port` config node\n\n### Add Product ID and Vendor ID to the FTDI Driver\n\nMake sure `ftdi_sio.ko` is installed on the linux box and insert `OMRON 2JCIE-BU`.\nThen Run the following commands in order to have the driver to detect `OMRON 2JCIE-BU` as a FTDI device.\nAnd `/dev/ttyUSB[0-9]*` will be available.\n\n```\n$ sudo modprobe ftdi_sio\n$ sudo chmod 777 /sys/bus/usb-serial/drivers/ftdi_sio/new_id\n$ sudo echo 0590 00d4 > /sys/bus/usb-serial/drivers/ftdi_sio/new_id\n```\n\n### Configure the `serial port` config node\n\nAfter starting your Node-RED, configure `serial port` config node.\n\n- Choose Serial Port (typically `/dev/ttyUSB0`)\n- Set 115200 for Baud Rate\n- Choose `after a timeout of` input-split condition (timeout mode)\n- Choose `binary buffers` for the delivery type\n- Leave default timeout to 10 sec (10000ms)\n\n![Serialport Config](images/serialport-config.png)\n\n# How to install\n\n## Node-RED users\n\nUse `Manage Palette` dialog in the browser editor or run the following commands:\n```\ncd ~/.node-red\nnpm install @candy-line/node-red-contrib-omron-2jcie-bu\n```\n\nThen restart Node-RED process.\n\n### Uninstallation\n\n```\ncd ~/.node-red\nnpm uninstall @candy-line/node-red-contrib-omron-2jcie-bu\n```\n\n## CANDY RED users\n\nUse `Manage Palette` dialog in the browser editor or run the following commands:\n```\ncd /opt/candy-red/.node-red\nsudo npm install --unsafe-perm @candy-line/node-red-contrib-omron-2jcie-bu\n```\n\nThen restart `candy-red` service.\n\n```\nsudo systemctl restart candy-red\n```\n\n### Uninstallation\n\n`Manage Palette` dialog should work for uninstallation as well as the following commands:\n\n```\ncd /opt/candy-red/.node-red\nsudo npm uninstall --unsafe-perm @candy-line/node-red-contrib-omron-2jcie-bu\n```\n\n# Appendix\n\n## How to build\n\n```\n# build\n$ NODE_ENV=development npm run build\n# package\n$ NODE_ENV=development npm pack\n```\n\n# License\n\n- Source Code ... ASL 2.0 ©CANDY LINE INC.\n\n# Revision History\n\n* 1.0.1\n  - Fix typo\n\n* 1.0.0\n  - Initial Release\n","readmeFilename":"README.md"}