Cov txheej txheem:

Lora Kub Dashboard: 5 Kauj Ruam
Lora Kub Dashboard: 5 Kauj Ruam

Video: Lora Kub Dashboard: 5 Kauj Ruam

Video: Lora Kub Dashboard: 5 Kauj Ruam
Video: Home lab Dashboard for Apps using Kubeapps install! 2024, Kaum ib hlis
Anonim
Lora Kub Dashboard
Lora Kub Dashboard

Hauv kuv Qhov Kawg Qhia Kuv tau qhia koj yuav ua li cas txuas lub ntsuas kub rau Lora hla TTN. Tam sim no kuv yuav qhia koj li cas koj tuaj yeem nyeem cov ntaub ntawv no thiab qhia nws hauv Dashboard. Peb tseem yuav npog, yuav siv cov ntaub ntawv li cas hauv IFTTT.

Kauj ruam 1: Download Node-red

Download Node-liab
Download Node-liab

Yog tias koj twb tau teeb tsa node-liab koj tuaj yeem hla cov kauj ruam no.

Nruab node-liab

Ua ntej koj yuav tsum nruab Node.js. Tom qab koj ua tiav kev teeb tsa qhib CMD thiab ua cov lus txib no:

npm nruab -g-tsis muaj kev nyab xeeb-perm node-liab

kom pib node-liab qhib CMD thiab ua cov lus txib no:

node-liab

Daim ntawv qhia kev teeb tsa raug cai:

Kauj ruam 2: Nruab Nodes

Nruab Nodes
Nruab Nodes
Nruab Nodes
Nruab Nodes
Nruab Nodes
Nruab Nodes
Nruab Nodes
Nruab Nodes

Tam sim no peb yuav tsum teeb tsa cov node peb yuav xav tau.

Muaj 2 txoj hauv kev:

1) Qhib CMD thiab ua cov lus txib no:

cd./.node-rednpm install node-red-dashboard

2) Nco ntsoov tias cov xim liab tau ua haujlwm, qhib 127.0.0.1:1880, nias 3 kab nyob rau sab saum toj sab xis, mus rau tswj cov xim, mus rau nruab, tshawb rau "node-red-dashboard", nias nruab

Kauj Ruam 3: Qhib Node-liab thiab Nruab Nruab

Qhib Node-liab thiab Nruab Nruab
Qhib Node-liab thiab Nruab Nruab

Qhib ntawm-liab nrog kev ntaus "127.0.0.1:1880" hauv koj tus browser.

Luam cov ntawv hauv kab-red.txt los ntawm hauv qab no

Nias 3 kab ntawv nyob rau sab xis saum toj, mus rau ntshuam thiab nias cov ntawv teev cia. Tam sim no muab cov ntawv koj tau theej ua ntej.

Kauj Ruam 4: Kho MQTT-node

Kho MQTT-node
Kho MQTT-node
Kho MQTT-node
Kho MQTT-node
Kho MQTT-node
Kho MQTT-node
Kho MQTT-node
Kho MQTT-node

Ob npaug nias rau ntawm MQTT ntawm qhov thiab kho nws nrog tus xaum xaum nyob rau sab xis saum toj.

Teeb tus neeg rau zaub mov rau: "eu.thethings.network" thiab chaw nres nkoj rau "1883"

Nias "Kev Ruaj Ntseg" thiab Ntxig koj daim ntawv pov thawj

koj tuaj yeem pom koj daim ntawv pov thawj ntawm qhov chaw thov.

Kauj Ruam 5: Qee Qhov Ntxiv

Hauv kuv tsab ntawv Arduino kuv tau muab ntsuas kub nrog qhov zoo 100 txhawm rau tshem tawm cov lej zauv. Yog tias koj tsis xav tau qhov tshwj xeeb no, koj tuaj yeem tshem tawm qhov yooj yim thiab txuas "Parsefloat" mus rau "Celsius/Farenheit".

Kuv kuj tseem muaj qhov uas tso cai rau koj hloov ntawm c Celsius thiab farenheit. Txhawm rau Hloov mus rau Farenheit, tsuas yog tawm tswv yim thawj kab thiab tshem tawm "//" los ntawm kab thib ob.

Pom zoo: