Cov txheej txheem:

IOT Qhov Rooj Sensor - Wi -Fi Raws, Txhawb ntawm 2xAAA Roj Teeb: 6 Cov Kauj Ruam
IOT Qhov Rooj Sensor - Wi -Fi Raws, Txhawb ntawm 2xAAA Roj Teeb: 6 Cov Kauj Ruam

Video: IOT Qhov Rooj Sensor - Wi -Fi Raws, Txhawb ntawm 2xAAA Roj Teeb: 6 Cov Kauj Ruam

Video: IOT Qhov Rooj Sensor - Wi -Fi Raws, Txhawb ntawm 2xAAA Roj Teeb: 6 Cov Kauj Ruam
Video: how to LED floor tiling system #DIY make interactive Aluminum LED Light tilebar profile 2024, Kaum ib hlis
Anonim
IOT Qhov Rooj Sensor - Wi -nkaus Raws, Txhawb ntawm 2xAAA Roj Teeb
IOT Qhov Rooj Sensor - Wi -nkaus Raws, Txhawb ntawm 2xAAA Roj Teeb

Hauv cov lus qhia no peb nthuav qhia yuav ua li cas koj tuaj yeem tsim lub roj teeb uas siv lub Wi-Fi Qhov Rooj sensor nrog IOT Cricket Wi-Fi module. Peb kuj tseem qhia yuav ua li cas ua ke Kab Ke cov lus nrog IFTTT (lossis lwm yam kev pabcuam suav nrog Tus Pab Tsev, MQTT lossis Webhooks nrog thov HTTP POST thov) xa xov tooj ceeb toom. Thaum lub qhov rooj qhib Kab civliv xa ntawv ceeb toom rau koj lub xov tooj.

NCO TSEG: qhov no yog phiaj xwm los qhia yuav ua li cas koj thiaj tuaj yeem yooj yim tso ua ke lub qhov rooj ntsuas qhov rooj hauv ob peb feeb. Txawm li cas los txhawm rau ua kom lub qhov rooj nkag siab zoo koj yuav xav siv sijhawm me ntsis ntxiv los txhawm rau txhim kho qhov tsim rau koj xav tau.

Hauv txoj ntsiab cai nws ua haujlwm zoo li ntawd. Thaum cov hlau nplaum nyob ze rau qhov ntsuas qhov ntsuas qhov ntsuas (qhov rooj kaw) nws txuas IO1 los ntawm BATT, yog tias cov hlau nplaum txav sib nrug los ntawm reed sensor (lub qhov rooj qhib) nws txuas BATT voltage rau IO1_Wakeup teeb liab thiab tsa lub rooj tsavxwm.

Peb teeb tsa Cricket kom xa HTTP POST thov mus rau IFFTT qhov twg nws tau hloov pauv los thawb cov ntawv ceeb toom, uas tau xa mus rau lub xov tooj. Ntxiv rau txhua qhov kev ceeb toom suav nrog cov ntaub ntawv hais txog qib roj teeb thiab qhov kub ib puag ncig los ntawm Cricket lub ntsuas kub ua haujlwm.

Cov lus qhia suav nrog cov kauj ruam hauv qab no: Piav qhia qhov haujlwm siv cov phiaj xwm IFTTT teeb tsa nrog Pushbullet kev pabcuam Configuring IOT Cricket module Txuas IOT Cricket mus rau hauv internet dhau Wi-nkaus

Khoom siv

Cricket Wi-Fi module (https://www.thingsonedge.com/)

Qhov Rooj Qhov Rooj Sib Nqus Hloov

Roj Teeb Nrog 2xAAA roj teeb

Kauj ruam 1: Sib dhos

Los ua ke
Los ua ke
Los ua ke
Los ua ke
Los ua ke
Los ua ke

Peb siv NC reed sensor. Ua raws cov duab hauv qab no txhawm rau txuas txhua yam khoom ua ke.

Thaum koj sib sau ua ke, cov kab hluav taws xob yuav tsum ua haujlwm raws li hauv qab no. Thaum lub qhov rooj qhib, nws tsa lub Kab civliv qhia los ntawm LED ntsais muag. Koj lub cuab yeej yuav luag npaj txhij. Tam sim no cia teeb tsa IFTTT kom xa ceeb toom ntawm qhov rooj qhib qhov rooj.

Kauj Ruam 2: IFTTT Teeb Nrog Kev Pabcuam Pushbullet

IFTTT Teeb Nrog Kev Pabcuam Pushbullet
IFTTT Teeb Nrog Kev Pabcuam Pushbullet
IFTTT Teeb Nrog Kev Pabcuam Pushbullet
IFTTT Teeb Nrog Kev Pabcuam Pushbullet

Cov kauj ruam ua raws:

  • Mus rau:
  • ID nkag mus lossis sau npe
  • Nyem Tsim los ntawm Tus Neeg Siv / Tus lej ntawv qhia zaub mov (kaum sab xis saum toj)
  • Nyem + txhawm rau tsim qhov xwm txheej tshiab
  • Xaiv qhov kev pabcuam Webhooks
  • Nyem Mus Ntxiv
  • Nyem Tau txais lub vev xaib thov (ntawm sab laug tes)
  • Tsim lub npe txheej xwm xws li qhov rooj_sensor
  • Qhov xwm txheej yuav tsum tau teeb tsa tam sim no, nyem + tom qab ntawd tshwm sim
  • Nrhiav qhov kev pabcuam pushbullet
  • Hloov Lub Npe Txheej Txheem rau door_sensor
  • Hloov Title raws li
  • Hloov Cov Lus Rau Qhov Rooj qhib roj teeb = {{Tus nqi 1}} temp = {{Tus nqi 2}}
  • Nyem tag

Yuav luag nyob ntawd, tam sim no koj yuav tsum tau txais HTTP chaw nyob uas peb tuaj yeem tshaj tawm cov xwm txheej los ntawm IoT module. Tshawb nrhiav Webhooks cov kev pabcuam thiab nyem rau ntawm daim ntawv nyob rau ntawm txoj cai kaum.

Tom ntej no luam cov vev xaib txuas hauv qab "Ua POST lossis GET web thov rau:" koj yuav xav tau nws tom qab.

Ua ntej peb pib siv lub cuab yeej nws yuav tsum tau teeb tsa hauv Developer Portal. Thov mus rau ntu tom ntej.

Kauj Ruam 3: Kho Koj Lub Ntaus Hauv Tus Tsim Kho Portal

Qhib TOE Tus Tsim Kho Portal (uas los nrog IOT Cricket module) los ntawm txhua lub browser los ntawm PC lossis txawb. Koj yuav tsum sau npe/nkag mus rau Developer Portal txhawm rau qhib thiab teeb tsa lub cuab yeej hauv koj tus account. Txwv tsis pub lub cuab yeej yuav tsis ua haujlwm.

Tom qab ua tiav kev nkag mus / sau npe koj yuav tsum nyem "Ntxiv tshiab" ntaus ntawv kom qhib koj lub cuab yeej hauv kab ke. Koj yuav tsum siv tus lej cim tshwj xeeb luam tawm ntawm daim ntawv lo rau sab nraum qab ntawm Cricket.

NCO TSEG: Koj yuav tsum khaws tus lej rau koj tus kheej nkaus xwb. Tsis txhob muab nws qhia rau lwm tus.

Teem cov teeb tsa hauv qab no:

RTC: OFFIO2: OFFBattery saib: ON Kub Sensor: ON Force hloov tshiab ntawm - IO1 Wake Up: YogForce hloov tshiab rau - RTC Wake Up: Tsis yog

Tshaj Tawm Cov Txheej Txheem: saib hauv qab no

Luam / paste qhov txuas peb tau theej los ntawm Webhooks hauv io1_wakeup:

URL:

  • hloov https rau
  • hloov qhov xwm txheej rau door_sensor

qhov txuas yuav tsum zoo li qhov hauv qab no:

maker.ifttt.com/trigger/door_sensor/with/key/{key}

Cov Ntaub Ntawv:

Thaum koj teeb tsa koj lub teeb tsa nyem khawm Txuag.

Peb yuav luag nyob ntawd! Peb tsuas yog xav txuas peb lub cuab yeej rau hauv internet hla Wi-nkaus network.

Kauj ruam 4: Txuas rau Wi-nkaus Network (internet)

Txuas rau Wi-nkaus Network (internet)
Txuas rau Wi-nkaus Network (internet)

Nias lub pob ntawm kab civliv rau 5 vib nas this kom txog thaum lub teeb ci LED tas li. Tom qab ntawd txuas los ntawm ib lub cuab yeej nrog lub peev xwm web browser (smartphone, laptop, …) mus rau toe_device Circket tus kheej Wi-nkaus network. Qhib https://192.168.4.1/index.html nplooj ntawv thiab dhau koj li ntawv pov thawj Wi-nkaus. Qhov ntawd yog nws.

Kauj Ruam 5: Nqa Cov Txheej Txheem Los Ntawm Tus Tsim Kho Portal

Tsuas yog ib kauj ruam ntxiv. Nias lub khawm ntawm lub rooj rau 1 thib ob txhawm rau nqa qhov teeb tsa los ntawm Tus Tsim Kho Portal. Tam sim no koj tau teeb tsa tag nrho thiab koj yuav tsum tau txais kev ceeb toom ntawm koj lub xov tooj thaum lub qhov rooj qhib.

Xav paub ntau ntxiv yuav ua li cas koom nrog lwm cov kev pabcuam xws li Tus Pabcuam Hauv Tsev, MQTT lossis HTTP POST thov saib Cricket cov ntaub ntawv:

Kauj Ruam 6: Tawm tswv yim

Peb vam tias nws yog kev lom zem rau koj tsim lub qhov rooj sensor nrog Cricket! Thov pab peb txhim kho thev naus laus zis yog tias koj muaj lus tawm tswv yim lossis tswv yim. Yog tias koj nyiam txoj haujlwm thov pab peb tshaj tawm lo lus.

Ua tsaug!

Pom zoo: