eChook GPT Documentation
  • Welcome to the eChook nano documentation
  • System Overview
  • The eChook Nano Kit
    • Versions
  • Build Instructions (Kit V1.x)
    • Build Steps Photos
    • First Power On
  • Build Instructions (Kit V2+)
  • Programming the Arduino
    • Install Arduino IDE
    • Arduino Drivers
    • Download the eChook Arduino Code
    • Programming the Arduino
  • Setting up the Bluetooth
    • Pairing with a phone
  • Connecting the eChook to the Car
    • Power and Voltage
    • Current Sensor
    • Throttle Input
    • External Buttons and Brake
    • Temperature Sensors
    • Wheel and Motor RPM
    • PWM Output
  • Calibrating the eChook
    • Wheel Speed and Motor RPM
    • Temperature
    • Voltage
    • Current
  • Using the App
    • Pair eChook to Phone
    • Setting up the App
    • Logging Data
    • Lap Counting
  • Telemetry (Live Data)
    • eChook Live Data
    • Node-Red Integration
    • DIY Web Dashboard
  • Using the Data
  • Circuit Schematics
    • 12 and 24v Inputs
    • Temperature Inputs
    • Bluetooth Module
    • Throttle Input
    • Current Input
    • Button Inputs
    • RPM Inputs
    • PWM Output
    • Power Regulator
    • Expansion Port
  • All about the Arduino nano
    • The eChook nano Code
  • Bluetooth Communication
    • Bluetooth Packet Encoding
    • Bluetooth Packet Decoding
  • Experimental Section
    • GUI Calibration
  • eChook Accessories
  • DIY eChook
  • Spare Parts
  • Troubleshooting
    • Power
    • Arduino
    • Bluetooth
    • Current Sensor
    • Incorrect Data
  • Contributing
Powered by GitBook
On this page

Was this helpful?

  1. Telemetry (Live Data)

Node-Red Integration

PreviouseChook Live DataNextDIY Web Dashboard

Last updated 27 days ago

Was this helpful?

This page assumes a knowledge of Node-Red and Javascript. If you are familiar with Node-Red then the eChook is simple to integrate. If you've not used it before, best path would be to go to or your search engine of choice to get started, and return to this once you're up and running.

There is a node-red getting started guide here:

Farewell Dweet.io

This section used to rely on the dweet.io service provided by Bug Labs, which has unfortunately been suspended. The work around is in some ways an improvement - as it uses eChook's own server, your telemetry data is no longer publicly exposed, and as a result the apps will allow location to be sent. The only downside being you do need to create an account on .

Connecting Node Red to eChook Live Data

This section assumes that node-red is already installed and running.

  1. Create an account for your car at , then bring up the developer tools in your browser (normally F12, or Ctrl+Shift+i) and select the 'Console' tab. After a fresh login to the website, near the top of the console should be a printed web address, along the lines of https://data.echook.uk/api/get/-----Long-Unique-Key------. This address is unique to your car. Copy it for later.

  1. In the Omni app, select upload to eChook Private Live Data enter your login details.

  2. For node-red setup, download the json file below and import it to your node red dashboard by right clicking on the background > insert > import, and selecting the downloaded file.

You should now have a dashboard that looks like this:

Double click the http request block, and enter the URL you copied in step 1, then deploy the changes.

How it works

Every 2 seconds the inject block on the left triggers the HTTP request. This asks the server for the latest data from the car, which is formatted into a JSON object by the JSON block, and then split out into separate flows in the 'eChook Data Split' block. Mouse over the output connectors to see what data each provides. The output data is in the format of '{name:xyz, value:123}, so is accessible in later blocks using msg.payload.value and msg.payload.name.

PLEASE PLEASE PLEASE - stop node red, or disable the inject node when you are not using it. Node red runs continually in the background, and it would be very easy to leave it pinging the eChook server 24/7 unnecessarily, which will just increase it's load, increase my costs and degrade the service for everyone.

nodered.org
https://nodered.org/docs/getting-started/
data.echook.uk
data.echook.uk
3KB
eChook-node-red-flows.json