项目作者: cdlans

项目描述 :
How to quickly build an IoT connector with Node-RED
高级语言: JavaScript
项目地址: git://github.com/cdlans/node-red-iot-connector.git
创建时间: 2019-07-25T11:31:56Z
项目社区:https://github.com/cdlans/node-red-iot-connector

开源协议:MIT License

下载


Warnings

  • By default, the Node-RED editor is not secured - anyone who can access its IP address can access the editor and deploy
    changes.

    This is only suitable if you are running on a trusted network.

  • The Azure IoT Hub nodes are not developed by
    Microsoft. The package is not maintained and contains several vulnerabilities. Use at your own risk.

Prerequisites

Quick Start

  • Clone the repo and install the NPM packages:

    1. $ git clone https://github.com/cdlans/node-red-iot-connector.git
    2. $ cd node-red-iot-connector
    3. $ npm install
  • Configure the Azure IoT Central device ID, hostname and key in the .env file. Check the tutorial Add a real
    device to your Azure IoT Central application

    for instructions on generating a connection string containing these settings.

    If you are not connecting to Azure IoT Central you can skip this step, but you might want to remove or disconnect the
    Azure IoT Hub nodes to avoid error messages.

  • Start the application:

    1. $ npm start
  • Point your browser to http://localhost:1880 to open the Node-RED editor. Replace localhost with the address of the
    machine running Node-RED, if you are not running Node-RED on your local machine.

  • Point your browser to http://localhost:1880/ui to open the Node-RED dashboard.

Presentation

The PowerPoint slides explaining How to Build an IoT Connector in 10 Minutes.

TODO

  • Add startup options for Raspberry Pi
  • Add mock sensor data
  • Add instructions on setting up Azure IoT central
  • Add instructions on which tabs in the flow to use
  • Add instructions on setting up with globally installed Node-RED
  • Add tests
  • Add photo + description of car
  • Add HTTP authentication?