-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from EdgePi-Cloud/help-info
Helper tab for tc node
- Loading branch information
Showing
5 changed files
with
62 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,29 @@ | ||
# node-red-edgepi-thermocouple | ||
|
||
# node-red-edgepi-thermocouple | ||
## EdgePi thermocouple node | ||
|
||
## Installation: Node-Red on Debian | ||
Install a supported version of Node.js: https://nodered.org/docs/faq/node-versions | ||
``` | ||
$ sudo apt install curl | ||
$ curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash - | ||
$ sudo apt install nodejs | ||
``` | ||
Verify Node.js instalthermocouple: | ||
``` | ||
$ node -v | ||
``` | ||
Verify npm instalthermocouple: | ||
``` | ||
$ npm -v | ||
``` | ||
3. Install Node-Red with npm | ||
``` | ||
$ cd ~ | ||
$ sudo npm install -g --unsafe-perm node-red | ||
``` | ||
EdgePi thermocouple node that reads temperature on input received. | ||
|
||
4. Install Node Red Dashboard | ||
## Install | ||
Install normally through the node-red editor or install with npm in your node-red directory | ||
(typically located at `~/node.red`) by running the following command: | ||
``` | ||
$ cd ~/.node-red | ||
$ npm i node-red-dashboard | ||
npm install @edgepi-cloud/node-red-edgepi-digital-thermocouple | ||
``` | ||
|
||
## Installation of this node | ||
``` | ||
$ npm install @edgepi-cloud/node-red-edgepi-thermocouple | ||
``` | ||
### Properties | ||
- **RPC Server**: The connection to your EdgePi's RPC Server. | ||
- **Output**: What temperature reading(s) will be sent out through the flow. | ||
|
||
## Running Node-Red | ||
``` | ||
$ node-red | ||
``` | ||
### Inputs | ||
Any message can be used to trigger this node. | ||
|
||
### Outputs | ||
- When configured to read only linearized temperature: | ||
- **payload** *number*: Regular temperature reading. | ||
|
||
- When configured to read only cold junction temperature: | ||
- **payload** *number*: Temperature reading of the cold junction sensor. | ||
|
||
- When configured to read both cold junction and linearized temperature: | ||
- **payload** *array[coldJunctionTemp, linearizedTemp]*: An array containing both the cold junction and linearized temperature. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters