Node-Red MQTT on Raspberry Pi Node Red A visual tool for wiring the IoT. Gateway to The IoT. Rapidly developing popular platform device data information. To install Node-Red > bash <(curl -sL https://raw.githubusercontent.com/node-red/raspbian-deb-package/master/resources/update-nodejs-and-nodered) > node-red-start After this you can access the node-red dashboard from url http://<raspberrypi ip addr>:1880 Auto Start on Reboot > sudo systemctl enable nodered.service Install MQTT Broker > npm install node-red-contrib-mqtt-broker Reference [1] Install Node-Red [2] Install node-red-contrb-mqtt-broker [3] First time mqtt-broker MQTT Publish Getting started install MQTT client > sudo pip install paho-mqtt Note: GPIO. Stands for " General Purpose Input/Output ." MQTT stands for "Message Queue Telemetry Transport"
1. use uPyCraft https://randomnerdtutorials.com/install-upycraft-ide-windows-pc-instructions/ 2. Tools > Burn Firmware - m5stack-20180516-v0.4.0.bin Connect to Putty 1. Open Putty 2. Select 'Serial' Connection 3. Port: COM7, Speed 115200 4. exec(open('./main.py').read(),globals()) M5Cloud How to make it connect to wifi 1. Burn with M5Cloud firmware https://github.com/m5stack/M5Cloud/tree/master/firmwares 2. Connect to wifi using http://192.168.4.1/ 3. Add device via http://io.m5stack.com M5 UI-Flow 1 Instruction https://medium.com/mmp-li/m5stack-with-ui-flow-b6d1a37385b0 1.1 How to burn firmware https://docs.makerfactory.io/m5stack/related-documents/burn-firmware/ 1.2 M5Burner https://github.com/m5stack/M5Stack-Firmware Arduino 1 Install Arduino IDE - [1] arduino ide - [2] arduino on vscode 2. Install ESP32 board on Arduino IDE https://randomnerdtutorials.com/installing-the-esp32-board-...
Prerequisite - Node Js Command > npm -v //check nodejs version > npm install -g @angular/cli //install angular client > ng new app --style=scss --routing //create application, default style=css, add routing flag to create routing file\ > ng serve -o //start server File 1. index.html (specify app-root) 2. app.component.ts (descript app-root which contains ...) 2.1 app.component.html 2.2 app.component.scss Add component > ng generate component sidebar OR > ng g c posts //create file necessary files e.g. html, scss, ts Add service > ng generate service data Install angular animation >npm install @angular/animation@latest --save Build >ng build //To reduce the size >ng build --prod This will create /dist folder under project folder However, you may have to change base href at index.html e.g. <base href="/ng7/dist/ng7/"> ---------------------------------- ...
Comments
Post a Comment