Cov txheej txheem:

Xa-Cov Ntaub Ntawv-ntawm-IOT-Wireless-Kub-thiab-Vaum-Sensor-rau-MySQL: 41 Cov Kauj Ruam
Xa-Cov Ntaub Ntawv-ntawm-IOT-Wireless-Kub-thiab-Vaum-Sensor-rau-MySQL: 41 Cov Kauj Ruam

Video: Xa-Cov Ntaub Ntawv-ntawm-IOT-Wireless-Kub-thiab-Vaum-Sensor-rau-MySQL: 41 Cov Kauj Ruam

Video: Xa-Cov Ntaub Ntawv-ntawm-IOT-Wireless-Kub-thiab-Vaum-Sensor-rau-MySQL: 41 Cov Kauj Ruam
Video: Nkauj Ntos ntaub thiab Tub Musa xov( qub dab neeg) 10/9/2023 2024, Hlis ntuj nqeg
Anonim
Xa-Cov Ntaub Ntawv-ntawm-IOT-Wireless-Kub-thiab-Vaum-Sensor-rau-MySQL
Xa-Cov Ntaub Ntawv-ntawm-IOT-Wireless-Kub-thiab-Vaum-Sensor-rau-MySQL

Qhia NCD Qhov Ntev Ntev IoT Kub thiab Vaum Sensor. Kev khav theeb txog li 28 mais, thiab kev sib txuas wireless network sib txuas, lub ntsuas cua no xa cov av noo (± 1.7%) thiab ntsuas kub (± 0.3 ° C) cov ntaub ntawv ntawm cov neeg siv txhais ua ntu zus, pw hauv nruab nrab kom ua haujlwm ntau dua roj teeb.

Tsim los ntawm tsuas yog 2 AA roj teeb thiab lub neej ua haujlwm ntawm 500, 000 kev xa xov wireless, 10-xyoo roj teeb lub neej tuaj yeem ua tiav nrog kev ntsuas kom raug. Xaiv tau, qhov ntsuas no tuaj yeem siv sab nraud.

Ib qho kev sib tham qhib kev tso cai yooj yim kev koom ua ke nrog tsuas yog hais txog ib qho kev tswj hwm lossis lub qhov rooj. Cov ntaub ntawv tuaj yeem xa mus rau PC, Raspberry Pi, lossis txawm tias Arduino, thiab xa mus rau Microsoft Azure®, AWS lossis Google Cloud Platform. Kev teeb tsa kev xa xov wireless tuaj yeem hloov pauv siv qhov kev sib tham qhib kev sib tham muab kev teeb tsa siab tshaj plaws nyob ntawm qhov xav tau daim ntawv thov. Qhov ntev-ntau, tus nqi, raug, lub roj teeb lub neej thiab kev nyab xeeb ntawm peb Wireless Wireless Kub thiab Vaum Sensor ua rau nws yog qhov kev xaiv zoo tshaj los pib, lossis nthuav dav, koj tus kheej lub wireless sensor network siv lub cuab yeej uas tshaj qhov xav tau rau feem ntau ntawm kev lag luam raws li zoo li daim ntawv thov kev lag luam.

Kauj ruam 1: Kho vajtse thiab Software xav tau:

Kho vajtse thiab Software xav tau
Kho vajtse thiab Software xav tau
Kho vajtse thiab Software xav tau
Kho vajtse thiab Software xav tau

Kho vajtse:

  • NCD Ntev Ntau Yam Kub thiab Vaum Sensor
  • NCD Ntev Ntau Yam Wireless Mesh Modem nrog USB Interface

Software:

  • Node-Liab
  • XAMPP

Kauj Ruam 2: Teeb XAMPP

XAMPP yog qhov tseem ceeb tshaj plaws, pub dawb qhib-qhov chaw hla-platform uas yog ib qho kev daws teeb meem los khiav koj cov kev pabcuam web. XAMPP yog tsim los ntawm ApacheFriends uas tau tso tawm rau lub Tsib Hlis 2002. XAMPP Sawv Cev rau Hla-Platform (X), Apache (A), MySQL (M) kuj Qee zaum (M) hais txog MariaDB, PHP (P) thiab Pearl (P).

XAMPP tso cai rau koj ua haujlwm ntawm ib tus neeg rau zaub mov hauv nroog thiab sim cov ntawv luam hauv zos ntawm cov vev xaib siv PHP code thiab MySQL databases. Thaum XAMPP tau ua haujlwm, koj tuaj yeem nkag mus rau koj daim ntawv hauv zos nrog lub browser siv URL zoo li https:// localhost/lossis https:// localhost/

Rub tawm thiab Txhim Kho XAMPP

Mus rau XAMPP lub vev xaib thiab rub tawm lub installer raws koj lub operating system. Kev teeb tsa yuav tsum zoo ib yam li kev teeb tsa software ib txwm koj ua hauv koj lub operating system. Thaum txhim kho, yuav muaj kev xaiv los xaiv seb koj puas xav khiav Apache thiab MySQL li kev pabcuam. Yog tias koj xaiv nws, Apache thiab MySQL yuav pib ntawm qhov system boot-up uas yuav tsis xav tau yog tias koj lub khoos phis tawj nruj nrog cov peev txheej nco lossis yog tias koj tsis ua PHP kev txhim kho nquag. Koj tuaj yeem hloov cov chaw no tom qab teeb tsa.

Kauj Ruam 3: Pib Apache thiab MySQL

Pib Apache thiab MySQL
Pib Apache thiab MySQL

Mus rau qhov chaw uas koj tau teeb tsa XAMPP (feem ntau yog C: / Program Files / xampp) thiab ob npaug nias rau XAMPP Tswj Vaj Huam Sib Luag (xampp-control.exe). Qhov no yuav coj koj lub vijtsam hauv qab no. Nyem rau Pib khawm tom ntej ntawm Apache thiab MySQL rau pib lawv.

Kauj Ruam 4: Tam sim no Qhib Koj Tus browser thiab Ntaus Http: // localhost/lossis

Tam sim no qhib koj tus browser thiab ntaus Http: // localhost/lossis Http://127.0.0.1
Tam sim no qhib koj tus browser thiab ntaus Http: // localhost/lossis Http://127.0.0.1

Kauj Ruam 5: Qhov no Yuav Qhib Ib Nplooj Ntawv Hauv Qab No. Nyem rau ntawm PhpMyAdmin

Qhov no Yuav Qhib Ib Nplooj Ntawv Hauv Qab No. Nyem rau ntawm PhpMyAdmin
Qhov no Yuav Qhib Ib Nplooj Ntawv Hauv Qab No. Nyem rau ntawm PhpMyAdmin

Kauj Ruam 6: Qhov no Yuav Coj Koj Mus Hauv Qab Qhov screen. Tam sim no Nyem rau ntawm lub pob "Tshiab" Raws li qhia hauv daim duab hauv qab no los Tsim Tus Qauv Tshiab

Qhov no yuav coj koj mus tom ntej Screen. Tam sim no Nyem rau ntawm
Qhov no yuav coj koj mus tom ntej Screen. Tam sim no Nyem rau ntawm

Kauj Ruam 7: Tam sim no Tsim Cov Ntaub Ntawv Tshiab Raws Li Qhia hauv Daim Duab hauv qab no

Tam sim no Tsim Cov Ntaub Ntawv Tshiab Raws Li Qhia hauv Daim Duab hauv qab no
Tam sim no Tsim Cov Ntaub Ntawv Tshiab Raws Li Qhia hauv Daim Duab hauv qab no

Kauj Ruam 8: Tam sim no Tsim Lub Rooj kom pom cov ntaub ntawv raws li qhia hauv daim duab hauv qab no

Tam sim no Tsim Cov Lus kom pom cov ntaub ntawv raws li qhia hauv daim duab hauv qab no
Tam sim no Tsim Cov Lus kom pom cov ntaub ntawv raws li qhia hauv daim duab hauv qab no

Kauj Ruam 9: Tam sim no Npe Thawj Kab Raws li "id"

Tam sim no Npe Thawj Kab Raws Li
Tam sim no Npe Thawj Kab Raws Li

Kauj Ruam 10: Tam sim no scroll mus rau sab xis ntawm lub Vijtsam Koj Yuav Pom "A_I Comments" I.e. Nws pib nce ntxiv thiab Nws tau siv teeb tsa Tus Thawj Ntsiab Tseem Ceeb uas Cim Cim Rau Txhua Cov Ntaub Ntawv Hauv Cov Lus. Nyem rau ntawm lub npov hauv qab Nws

Tam sim no scroll mus rau sab xis ntawm lub Vijtsam Koj Yuav Pom
Tam sim no scroll mus rau sab xis ntawm lub Vijtsam Koj Yuav Pom

Kauj Ruam 11: Qhov no Yuav Nqa Koj Tom Ntej Screen. Tam sim no Nyem rau ntawm "Mus" Khawm

Qhov no yuav coj koj mus tom ntej Screen. Tam sim no Nyem rau ntawm
Qhov no yuav coj koj mus tom ntej Screen. Tam sim no Nyem rau ntawm

Kauj Ruam 12: Tam sim no nkag mus rau qhov muaj txiaj ntsig ntawm Peb Peb Kab

Tam sim no nkag mus rau qhov muaj txiaj ntsig ntawm Lwm Peb Kab
Tam sim no nkag mus rau qhov muaj txiaj ntsig ntawm Lwm Peb Kab

Lub npe = ntsuas kub, Hom = DECIMAL, Ntev/Qhov muaj txiaj ntsig = 10, 2 (piv txwv li txog 2 lub zauv zauv zauv) thiab zoo ib yam rau cov av noo thiab hauv kab kawg koj tuaj yeem qhia lub sijhawm tsim thiab nyem rau ntawm lub pob txuag raws li qhia hauv daim duab hauv qab no.

Kauj Ruam 13: Tam sim no Nyem rau ntawm koj lub npe Database kom nthuav dav nws thiab nws yuav qhia koj lub npe lub npe, Tom qab ntawv nyem rau nws kom pom li cas Cov Ntaub Ntawv Qhia, Raws li tau qhia hauv daim duab hauv qab no

Tam sim no Nyem rau ntawm koj lub npe Database kom nthuav dav nws thiab nws yuav qhia koj lub npe Lub Npe, Tom qab ntawd nyem rau nws kom pom Cov Ntaub Ntawv Qhia Li Cas, Raws li pom hauv daim duab hauv qab no
Tam sim no Nyem rau ntawm koj lub npe Database kom nthuav dav nws thiab nws yuav qhia koj lub npe Lub Npe, Tom qab ntawd nyem rau nws kom pom Cov Ntaub Ntawv Qhia Li Cas, Raws li pom hauv daim duab hauv qab no
Tam sim no Nyem rau ntawm koj lub npe Database kom nthuav dav nws thiab nws yuav qhia koj lub npe Lub Npe, Tom qab ntawd nyem rau nws kom pom Cov Ntaub Ntawv Qhia Li Cas, Raws li pom hauv daim duab hauv qab no
Tam sim no Nyem rau ntawm koj lub npe Database kom nthuav dav nws thiab nws yuav qhia koj lub npe Lub Npe, Tom qab ntawd nyem rau nws kom pom Cov Ntaub Ntawv Qhia Li Cas, Raws li pom hauv daim duab hauv qab no

Qhov ntawd yog txhua yam nrog kev teeb tsa XAMPP.

Kauj Ruam 14: Teeb Node-liab

Tam sim no koj muaj cov ntsuas ntsuas ua haujlwm, peb xav tau txoj hauv kev los ua qee yam muaj txiaj ntsig nrog cov ntaub ntawv ntawd.

  • Ua ntej tshaj plaws, koj yuav tsum teeb tsa Node-Red.
  • Thaum ua tiav qhov no, koj yuav tsum nkag mus rau koj kab lus hais kom ua, lossis Lub Hwj Chim Lub Hwj Chim rau Windows cov neeg siv, taug kev mus rau cov npe Node-RED tau teeb tsa.
  • Tam sim no ntaus "npm i ncd-red-wireless node-red-dashboard". Qhov no yuav teeb tsa cov node xav tau kom tau txais cov ntaub ntawv los ntawm koj lub wireless sensors thiab koj tuaj yeem pib Node-RED thaum qhov no ua tiav.
  • Txhawm rau pib node server sau node-liab hauv qhov hais kom ua lossis davhlau ya nyob twg thiab nias nkag mus.

Kauj Ruam 15: Cov Kauj Ruam los Tsim Cov Dej

Cov Kauj Ruam Los Tsim Cov Dej
Cov Kauj Ruam Los Tsim Cov Dej

Txog ntawm qhov no koj yuav pom qhov khoob loj nrog cov npe ntev ntawm cov nodes nyob rau sab laug, sab tes no hu ua palette.

Kauj Ruam 16: Mus Ua Ntej thiab Luag Lub Wireless Gateway Node Tshaj rau Koj Cov Canvas Flow kom Pib

Mus Ua Ntej thiab Luag Lub Wireless Gateway Node Tshaj rau Koj Cov Canvas Flow kom Pib
Mus Ua Ntej thiab Luag Lub Wireless Gateway Node Tshaj rau Koj Cov Canvas Flow kom Pib

NCD-liab-wireless Muab cov nodes uas tswj kev sib txuas, txheeb xyuas cov ntaub ntawv khoom xa tuaj, lim nws los ntawm qhov tshwj xeeb, thiab tso cai rau koj teeb tsa lub wireless sensors.

Kauj Ruam 17: Nrhiav Koj Li Wireless Sensors:

Nrhiav Koj Cov Wireless Sensors
Nrhiav Koj Cov Wireless Sensors

Thaum koj tau xa cov node koj yuav tuaj yeem pom cov ntaub ntawv tab, uas muaj cov ntaub ntawv hais txog ntawm lub peev xwm muaj peev xwm, lub tab no tau muaj neeg nyob zoo rau qhov siab tshaj plaws ntawm cov pob liab thiab muaj cov txheeb cais muaj txiaj ntsig, feem ntau koj yuav tam sim no tsis xav tau txhawm rau saib lwm cov ntaub ntawv sab nraum ntawm cov ntaub ntawv tab, yog li tuav nws hauv kev xav txawm tias koj tab tom tsim koj cov dej ntws thaum koj muaj lus nug kwv yees li cas ntawm cov node ua haujlwm. Lub ntsiab lus tom ntej peb xav ua yog teeb tsa lub node, thaum koj thawj zaug ntxiv nws koj yuav nco ntsoov tias muaj daim duab peb sab me me nyob rau ntawm kaum sab xis saum toj ntawm lub cim xiav, daim duab peb sab qhia tias lub hauv paus xav tau kev teeb tsa ntxiv, xiav dot qhia tias lub node tsis muaj lawm tab sis tau muab tso ua ib feem ntawm qhov ntws.

  • Nyem ob npaug rau ntawm qhov kom qhib qhov kev xaiv teeb tsa.
  • Nyem rau ntawm tus xaum cim nyob ib sab ntawm Serial Device teb txhawm rau teeb tsa koj lub USB router, qhov no yuav qhib lub rooj teeb tsa thib ob uas tsuas muaj qee qhov kev xaiv.

Kauj Ruam 18: Nyem rau ntawm lub iav tsom iav tom ntej ntawm Serial Port Field thiab Xaiv Chaw Nres Nkoj uas Sib Raug Zoo Nrog Koj Lub Router, Tom qab ntawd nyem rau "Ntxiv" Khawm rau saum

Nyem rau ntawm lub iav tsom iav tom ntej ntawm Serial Port Field thiab Xaiv Qhov Chaw Nkaum uas Sib Xws Nrog Koj Tus Router, Tom qab ntawd Nyem rau "Ntxiv" Khawm rau saum
Nyem rau ntawm lub iav tsom iav tom ntej ntawm Serial Port Field thiab Xaiv Qhov Chaw Nkaum uas Sib Xws Nrog Koj Tus Router, Tom qab ntawd Nyem rau "Ntxiv" Khawm rau saum

Kauj Ruam 19: Cov Khoom Siv Hauv Ntej Yuav Tam Sim No Muaj Neeg Nyob Raws Li Qhov Xaiv, thiab Koj tuaj yeem Nyem "Ua tiav", Tam sim no koj muaj kev nkag ncaj qha rau koj lub Wireless Sensors! los Saib Cov Ntaub Ntawv Los Hauv

Cov Khoom Siv Hauv Zos Tam Sim No Yuav Muaj Cov Neeg Raws Li Qhov Kev Xaiv, thiab Koj tuaj yeem Nyem "Ua tiav", Tam sim no koj muaj kev nkag tau ncaj qha rau koj lub Wireless Sensors! los Saib Cov Ntaub Ntawv Los Hauv
Cov Khoom Siv Hauv Zos Tam Sim No Yuav Muaj Cov Neeg Raws Li Qhov Kev Xaiv, thiab Koj tuaj yeem Nyem "Ua tiav", Tam sim no koj muaj kev nkag tau ncaj qha rau koj lub Wireless Sensors! los Saib Cov Ntaub Ntawv Los Hauv

Kauj Ruam 20: Tam sim no rov qab mus rau koj lub Palette thiab ntaus "debug" rau hauv Chaw Tshawb Nrhiav nyob rau sab saum toj, Lob Ib qho ntawm Cov Nodes no thiab Drag Nws mus rau sab xis ntawm Koj Lub Rooj vag Wireless

Tam sim no rov qab mus rau koj lub Palette thiab ntaus "debug" rau hauv Chaw Tshawb Nrhiav nyob rau sab saum toj, Lob Ib qho ntawm Cov Nodes no thiab Luag Nws mus rau sab xis ntawm Koj Lub Rooj vag Wireless
Tam sim no rov qab mus rau koj lub Palette thiab ntaus "debug" rau hauv Chaw Tshawb Nrhiav nyob rau sab saum toj, Lob Ib qho ntawm Cov Nodes no thiab Luag Nws mus rau sab xis ntawm Koj Lub Rooj vag Wireless

Kauj ruam 21: Nyem ob npaug rau nws thiab hloov "msg." kom "ua tiav Msg Object" Nyem Ua tiav

Nyem ob npaug rau nws thiab Hloov "msg." kom "ua tiav Msg Object" Nyem Ua tiav
Nyem ob npaug rau nws thiab Hloov "msg." kom "ua tiav Msg Object" Nyem Ua tiav

Kauj Ruam 22: Tam sim no Kos Kab Kab Ntawm Ob Lub Nodes, thiab Nyem rau "Deploy" nyob rau sab xis saum toj ntawm lub qhov rais

Tam sim no Kos Kab Kab Ntawm Ob Lub Nodes, thiab Nyem "Deploy" nyob rau sab saum toj sab xis ntawm lub qhov rais
Tam sim no Kos Kab Kab Ntawm Ob Lub Nodes, thiab Nyem "Deploy" nyob rau sab saum toj sab xis ntawm lub qhov rais

Kauj Ruam 23: Ua Haujlwm Nrog Cov Ntaub Ntawv:

Ua haujlwm nrog cov ntaub ntawv
Ua haujlwm nrog cov ntaub ntawv

Tam sim no tawm ntawm koj cov wireless cov ntaub ntawv tau sib sau thiab nws tau tso tawm rau "debug" tab, qhov no "debug tab" tau muab tso rau hauv sab xis sab tom qab cov ntaub ntawv tab. Txhawm rau pom cov ntaub ntawv muaj nyob rau ntaus lub khawm pib dua. Hauv cov ntaub ntawv-liab cov ntaub ntawv tau dhau ntawm cov nodes hauv pob JSON. Thaum cov khoom msg tuaj rau hauv qhov debug tab koj tuaj yeem ua rau nws loj dua los saib cov npe tag nrho cov ntaub ntawv uas los nrog nws. Qhov no muaj txiaj ntsig tshwj xeeb hauv qhov xwm txheej koj yuav tsum tau pom sai sai uas cov sensors tau tshuaj xyuas hauv. ntawm lub node thiab cov cuab yeej yuav hloov mus rau lub network teeb tsa, ntaus nws ib zaug ntxiv kom rov qab mus rau hom mloog. Thaum peb tau txais cov cuab yeej wi-fi ntawm cov teeb tsa, lawv yuav raug teeb tsa ib txwm teeb tsa lub teeb tsa thaum nws nkag mus rau hauv kev teeb tsa hom, yog li nws ib txwm muaj los tswj xyuas cov rooj vag ntawm no tam sim no ntawm qhov nrawm rau teeb tsa lub cuab yeej.

Kauj Ruam 24: Ntxiv Cov Wireless Sensors:

Ntxiv Wireless Sensors
Ntxiv Wireless Sensors

peb yuav tsum tau cais cov ntaub ntawv tsis siv lub tshuab hluav taws xob hauv tsev kom peb muaj peev xwm tso tawm nws, peb tuaj yeem siv qhov hloov pauv los cais tawm cov lus los ntawm lub qhov rooj raws li tag nrho ntawm mac chaw nyob nrog lossis hom sensor, tab sis raws li kuv hais txog, wireless nodes tiag tiag suav nrog kev ua haujlwm ntxiv rau teeb tsa cov cim, yog li peb yuav pib nrog lawv los muab koj cov duab ntxiv ntawm qhov uas cov qauv no tuaj yeem ua haujlwm li cas. Yog tias koj tseem tsis tau pom cov pob ntawv los ntawm ob qho ntawm koj lub ntsuas, hla ua ntej thiab ntaus lub pob pib dua ntawm qhov tsuas yog tsis tau pib. Thaum lub ntsuas ntsuas ntsuas los ntawm ib qho txheej txheem teeb tsa ntawm lub cuab yeej, qhov chaw nyob mac thiab hom kev ntsuas tau kaw rau hauv pas dej ua ke yog li peb tuaj yeem pom sai sai rau lub sijhawm ntawm cov kauj ruam tom ntej no.

Lob Wireless Node los ntawm lub palette thiab rub nws mus rau qhov ntws, ob npaug nias rau nws kom nws teeb tsa

Kauj Ruam 25: Xaiv Cov Khoom Siv Los Ntawm Qhov Tso Tawm Uas Koj Siv Rau Wireless Gateway, Tam sim no Nyem rau lub iav tsom iav tom ntej rau “Mac Chaw Nyob” thiab Xaiv Ib qho ntawm Cov Kev Xaiv Muaj

Xaiv Cov Khoom Siv Los Ntawm Qhov Tso Tawm Uas Koj Siv Rau Wireless Gateway, Tam sim no Nyem rau lub iav tsom iav tom ntej rau “Mac Chaw Nyob” thiab Xaiv Ib qho ntawm Cov Kev Xaiv Muaj
Xaiv Cov Khoom Siv Los Ntawm Qhov Tso Tawm Uas Koj Siv Rau Wireless Gateway, Tam sim no Nyem rau lub iav tsom iav tom ntej rau “Mac Chaw Nyob” thiab Xaiv Ib qho ntawm Cov Kev Xaiv Muaj

Kauj ruam 26: Nyem Ua tiav

Nyem Ua tiav
Nyem Ua tiav

Koj yuav pom qhov no cia li teeb tsa lub hom sensor rau koj, koj tseem tuaj yeem muab nws lub npe los ua kom yooj yim txheeb xyuas. Raws li tau sau tseg hauv cov ntaub ntawv tab, Serial Device for Config field yog nyob ntawm yeem, thiab peb yuav tsis txhawj txog nws tam sim no. Lub node koj nyuam qhuav ntxiv ua haujlwm tau zoo raws li lub lim ntawm cov ntaub ntawv sensor nkag, tsuas yog hla cov ntaub ntawv rau mac chaw nyob, lossis hom sensor yog tias tsis muaj mac chaw nyob.

Kauj Ruam 27: Tam sim no rov qab mus rau koj lub Palette thiab ntaus "debug" rau hauv Chaw Tshawb Nrhiav nyob rau Sab Saum Toj, Rub Ib qho ntawm Cov Nodes no thiab rub nws mus rau sab xis ntawm koj lub Wireless Gateway

Tam sim no rov qab mus rau koj lub Palette thiab ntaus "debug" rau hauv Chaw Tshawb Nrhiav nyob rau sab saum toj, Lob Ib qho ntawm Cov Nodes no thiab Luag Nws mus rau sab xis ntawm Koj Lub Rooj vag Wireless
Tam sim no rov qab mus rau koj lub Palette thiab ntaus "debug" rau hauv Chaw Tshawb Nrhiav nyob rau sab saum toj, Lob Ib qho ntawm Cov Nodes no thiab Luag Nws mus rau sab xis ntawm Koj Lub Rooj vag Wireless

Kauj ruam 28: Nyem ob npaug rau nws thiab Nyem Ua li cas

Nyem ob npaug rau nws thiab Nyem Ua tiav
Nyem ob npaug rau nws thiab Nyem Ua tiav

Kauj Ruam 29: Ntxiv Txoj Haujlwm Nodes

Ntxiv qhov Function Nodes
Ntxiv qhov Function Nodes

Txoj haujlwm ua haujlwm tau siv los khiav JavaScript code tiv thaiv cov khoom msg. Lub luag haujlwm ua haujlwm lees txais cov khoom msg raws li kev nkag thiab tuaj yeem xa rov qab 0 lossis ntau dua cov khoom lus raws li tso tawm. Cov lus xa xov no yuav tsum muaj cov peev txheej them (msg.payload), thiab feem ntau muaj lwm yam khoom nyob ntawm qhov ua raws.

Tam sim no lob tus "ua haujlwm" ntawm lub palette, thiab tso nws mus rau sab xis ntawm Temp/Hum node

Kauj Ruam 30: Ob Nyem Nyem rau ntawm Node txhawm rau kho qhov Function Node

Nyem ob npaug rau ntawm Node txhawm rau kho qhov Function Node
Nyem ob npaug rau ntawm Node txhawm rau kho qhov Function Node

Ntawm no koj yuav tsum sau me ntsis javascript code los tsim qhov xwm txheej, yog li ntawm qhov kub tshwj xeeb, yuav ceeb toom email yuav xa mus rau tus lej email tshwj xeeb.

Kauj Ruam 31: Tam sim no Koj Muaj Ntxiv "mysql" Node kom Khaws Cov Ntaub Ntawv, Txheeb Xyuas Koj Cov Palette Yog Nws Muaj Tam Sim No Los Yog Koj Muaj Nyem Rau Ntawm Peb Lub Nroog Tam Sim No Sab Nrauv Sab Ntawm Kev Siv Lub Pob Raws Li Qhia hauv Duab hauv qab no

Tam sim no koj muaj Ntxiv
Tam sim no koj muaj Ntxiv

Kauj ruam 32: Tam sim no Nyem rau ntawm "Manage Palette" Khawm

Tam sim no Nyem rau ntawm
Tam sim no Nyem rau ntawm

Kauj Ruam 33: Tam Sim No Nrhiav Mysql thiab Nyem rau ntawm 'install' Button Raws li pom hauv daim duab

Tam sim no Tshawb rau Mysql thiab Nyem rau ntawm 'install' Button Raws li pom hauv daim duab
Tam sim no Tshawb rau Mysql thiab Nyem rau ntawm 'install' Button Raws li pom hauv daim duab

Thaum nws ua tiav, koj yuav pom "mysql" ntawm qhov tam sim no nyob hauv cov xim.

Kauj Ruam 34: Tam sim no Lob tus "mysql" Node From the Palette and Double Click on It to Open Up Configuration Options

Tam sim no Grab qhov
Tam sim no Grab qhov

Kauj Ruam 35: Sau Koj Lub Npe Database Raws Li Koj Tsim Ua Ntej thiab Muab Lub Npe Rau Nws, Tom qab ntawd Nyem rau ntawm Daim Duab Mem hluav Tom ntej no mus rau Database txhawm rau Kho Sqldatabase Node

Sau Koj Lub Npe Database Raws Li Koj Tsim Ua Ntej thiab Muab Lub Npe rau Nws, Tom qab ntawd Nyem rau ntawm Daim Duab Mem hluav Tom ntej no mus rau Database los kho Sqldatabase Node
Sau Koj Lub Npe Database Raws Li Koj Tsim Ua Ntej thiab Muab Lub Npe rau Nws, Tom qab ntawd Nyem rau ntawm Daim Duab Mem hluav Tom ntej no mus rau Database los kho Sqldatabase Node

Kauj Ruam 36: Tam Sim No Ntxiv Tus Neeg Siv = Root I.e los ntawm Default hauv Xampp thiab Password Yog Blank. You Koj Tseem Muaj Tus Tsim Tus Kheej thiab Tus Kheej Nkag Rau Qhov No, Tom qab ntawd Sau Koj Lub Npe Lub Npe thiab Lub Sij Hawm Sijhawm (otional) thiab Tom Qab Nyem Hloov Tshiab thiab Ua tiav

Tam sim no Ntxiv Tus Neeg Siv = Root I.e los ntawm Default hauv Xampp thiab Lo Lus zais Yog Koj Tsis Muaj
Tam sim no Ntxiv Tus Neeg Siv = Root I.e los ntawm Default hauv Xampp thiab Lo Lus zais Yog Koj Tsis Muaj

Kauj Ruam 37: Tam sim no Koj Yuav Pom Koj Tus Database Node Qhia Txuas

Tam sim no koj yuav pom Koj Lub Database Node Qhia Txuas
Tam sim no koj yuav pom Koj Lub Database Node Qhia Txuas

Kauj Ruam 38: Tam sim no Txuas Tag Nrho Cov Hluav Taws Xob Raws Li Pom Hauv Daim Duab

Tam sim no Txuas Tag Nrho Cov Hluav Taws Xob raws li qhia hauv daim duab
Tam sim no Txuas Tag Nrho Cov Hluav Taws Xob raws li qhia hauv daim duab

Kauj Ruam 39: Tam sim no Ntaus Tus Khawm Deploy thiab Koj Yuav Database Node Qhia "ok", Nws txhais tau tias Cov Ntaub Ntawv Xa

Tam sim no ntaus lub pob Tso thiab koj yuav Database Node Qhia
Tam sim no ntaus lub pob Tso thiab koj yuav Database Node Qhia

Kauj ruam 40: NTUJ

OUTPUT
OUTPUT

Ntawm no koj tuaj yeem pom cov ntaub ntawv nkag los.

Pom zoo: