Cov txheej txheem:

Kev Ceeb Toom Tshuab Ntxhua Khaub Ncaws: 3 Kauj Ruam
Kev Ceeb Toom Tshuab Ntxhua Khaub Ncaws: 3 Kauj Ruam

Video: Kev Ceeb Toom Tshuab Ntxhua Khaub Ncaws: 3 Kauj Ruam

Video: Kev Ceeb Toom Tshuab Ntxhua Khaub Ncaws: 3 Kauj Ruam
Video: Plab Plab Ntswg..(Pluav Pluav Ntswg) Maiv Twm New Song 2023-2024 2024, Hlis ntuj nqeg
Anonim
Image
Image
Kev Ceeb Toom Tshuab Ntxhua Khaub Ncaws
Kev Ceeb Toom Tshuab Ntxhua Khaub Ncaws

Kuv muaj "ruam" pheej yig tshuab ntxhua khaub ncaws rau txog £ 150. Qhov loj me yog qhov txwv loj tshaj, yog li tsis txhob txiav txim siab hnyav rau kuv. Qhov tsis meej pem hauv kuv tsev neeg yog kuv.

Ntxuav ris tsho hauv qab dawb nrog lub tsho liab yog ib qho ntawm kuv kev txhaum. Lwm tus tsis nco qab tias qee yam tau muab tso rau hauv lub tshuab ntxhua khaub ncaws. Qhov txiaj ntsig, Kuv tau ntxuav tib pawg li 3 zaug ib zaug, tso nws tseg rau hnub tom ntej. Nws yog lub sijhawm los kho kuv tus cwj pwm, tshwj xeeb yog kev ua tsis tiav yuav ua rau muaj kev sib nrauj.

Kuv laus lawm, kuv tsis tuaj yeem muaj qhov no tshwm sim. Lub sijhawm rau lub tshuab ntxhua khaub ncaws ceeb toom, tsis muaj tshuaj kho rau khaub ncaws liab, kuv twv kuv tsuas yog yuav tsum hnav nws.

Nta:

  • Google Tsev koom ua ke nrog (xaiv tau) nagging
  • Random nagging ceeb toom txhua 5 feeb
  • Cov ntawv ceeb toom Android
  • Tus nqi ntxuav thiab tag nrho lub sijhawm ntxuav
  • duab zoo (vim yog cov ntaub ntawv loj)
  • kiag li tsis muaj kho vajtse hacks rau lub tshuab ntxhua khaub ncaws (lav tag nrho khaws cia)
  • tsis xav tau caj npab lossis tshem tawm lub tswb (Pib ntxuav kom pib, tua lub tshuab ntxhua khaub ncaws kom nres)

Kauj Ruam 1: Kev Ceeb Toom Tshuab Ntxhua Khaub Ncaws

Kev Ceeb Toom Tshuab Ntxhua Khaub Ncaws
Kev Ceeb Toom Tshuab Ntxhua Khaub Ncaws

Muaj ntau tshaj ib txoj hauv kev los ntxuav cov miv no. Kuv xav tias kuv tus kheej yog qhov tsim nyog tshaj plaws thiab tej zaum yog ib qho ntawm cov kev xaiv uas pheej yig tshaj plaws los xaiv. Yog tias koj sim hnyav, koj yuav tsis txawm tias yuav tsum tau kov lub tshuab ntxhua khaub ncaws, pib nrog, thiab tseg nws qhov kev lees paub.

Kuv xav kom muaj kev ceeb toom ntawm kuv lub xov tooj ntawm tes/khoos phis tawj/Google Tsev thaum ntxuav tas lawm. Kuv tsis xav ceeb toom kuv tus kheej txog teeb tsa timers, tso dab tsi, tsuas yog muab ntxuav hauv thiab tau txais lwm tus uas tsis yog kuv tus poj niam los qhia rau kuv tias kev ntxhua khaub ncaws xav tau

Yog li txhawm rau txuag kuv txoj kev sib yuav los ntawm kev puas tsuaj uas yuav los, thiab ua qee qhov nyiaj ntxiv los ntawm kev koom nrog kev muag khoom (uas tseem txuag kuv txoj kev sib yuav los ntawm kev puas tsuaj uas yuav los txog), Kuv pom qhov kev daws teeb meem.

Cov lus teb yog Sonoff POW R2

Tos, koj yuav tawm tsab ntawv ceeb toom tshuab ntxhua khaub ncaws nrog Sonoff li cas? - Cia kuv qhia koj txhua yam txog nws!

Koj yuav tsum tau txais Sonoff POW R2 - Kuv txuas ob peb lub khw rau koj, tab sis yog tias koj pom qhov kev pom zoo dua, nws tseem zoo dua:

  • Bangood
  • Gearbest
  • Aliexpress
  • AmazonUK
  • AmazonUS
  • ITEAD (Sonoff khw)

(Tsuas yog tsis xav tias kuv zoo nkauj heev, cov kev txuas no muab rau kuv me me kickback yog tias koj siv nws - ua tsaug!)

Sonoff POW R2

Tsis muaj ib lub luag haujlwm xav tau tiag tiag muaj nyob rau hauv lub khoos phis tawj version ntawm lub cuab yeej yog li kuv yuav nyem Tasmota firmware rau nws. Txoj kev no, Kuv tuaj yeem ua txhua yam kuv xav tau nrog cov ntaub ntawv los ntawm Sonoff POW R2.

Lub peev xwm tshwj xeeb ntawm Sonoff POW R2 yog qhia cov ntaub ntawv hais txog lub zog siv los ntawm lub cuab yeej txuas nrog ntawm Sonoff. Kuv tuaj yeem qhia thaum lub tshuab ntxhua khaub ncaws ua haujlwm, thiab thaum twg tsis ntxuav ntxiv lawm. Txhua yam kuv yuav tsum tau ua nyob rau lub sijhawm no yog hnav nws nrog qee lub logic los tsim lub tshuab ntxhua khaub ncaws ceeb toom. Tsis tas yuav hloov kho lub tshuab ntxhua khaub ncaws! Tsuas yog nco ntsoov xyuas lub zog ntsuas rau koj lub tshuab ntxhua khaub ncaws. Qhov Sonoff POW R2 no tuaj yeem ua haujlwm 15A nrog 3500W ntawm lub zog - Kuv nyob rau sab nyab xeeb raws li kuv lub tshuab ntxhua khaub ncaws raug ntsuas rau 2000W.

Yog tias koj ntse txaus, koj tuaj yeem txuas cov hlua los ntawm qhov txuas txuas ntxiv tsis txhob txiav cov hlua hluav taws xob. Txoj hauv kev no koj lub tshuab ntxhua khaub ncaws "ruam" tseem nyob zoo thiab tau txais txhua yam ntse.

Kauj Ruam 2: Siv NodeRED rau Kev Ceeb Toom Tshuab Ntxhua Khaub Ncaws

Siv NodeRED rau Kev Ceeb Toom Tshuab Ntxhua Khaub Ncaws
Siv NodeRED rau Kev Ceeb Toom Tshuab Ntxhua Khaub Ncaws
Siv NodeRED rau Kev Ceeb Toom Tshuab Ntxhua Khaub Ncaws
Siv NodeRED rau Kev Ceeb Toom Tshuab Ntxhua Khaub Ncaws
Siv NodeRED rau Kev Ceeb Toom Tshuab Ntxhua Khaub Ncaws
Siv NodeRED rau Kev Ceeb Toom Tshuab Ntxhua Khaub Ncaws
Siv NodeRED rau Kev Ceeb Toom Tshuab Ntxhua Khaub Ncaws
Siv NodeRED rau Kev Ceeb Toom Tshuab Ntxhua Khaub Ncaws

Koj paub tam sim no, Kuv nyiam NodeRED. Koj tuaj yeem sib cav tau txias npaum li cas yog Tus Pab Tsev Hauv Tsev txhua hnub, tab sis koj yuav tsis los ze rau qhov koj tuaj yeem ua tiav nrog NodeRED. Kuv muaj koob rau cov pib tshiab yog tias koj npaj txhij ua qhov dhia.

Kuv yeej yuav rov siv lub tswv yim uas kuv muaj rau kuv li 3D Tshuab Luam Ntawv ceeb toom. Kuv suav lub zog siv ua ntej, tsis muaj ib qho ntsiab lus hauv kev rov kho lub log. Lub sij hawm los hloov nws.

Kuv tabtom sim ua qhov no raws li tus neeg siv-phooj ywg zoo li ua tau yog li koj tsis tas yuav hloov pauv ntau tus lej rau koj tus kheej, yog li ntawd, ntau yam tau coded rau koj. Qhov no txhais tau tias peb yuav tsum teeb tsa cov dej ntws los ua haujlwm nrog koj lub tshuab ntxhua khaub ncaws. Muaj ob peb yam uas koj yuav tsum tau muab:

  • Tus nqi hluav taws xob (tus khoom JSON uas muaj 2 tus nqi se. Sau tus nqi thiab lub sijhawm tus nqi pauv, yog tias koj tsuas muaj ib tus nqi xwb, theej koj tus nqi)
  • Lub sijhawm tag sijhawm (sijhawm hauv feeb tom qab uas yuav tshaj tawm qhov kev ceeb toom. Nws tau teeb tsa rau 5 feeb, tab sis xav tias yuav hloov nws.
  • Lub Hwj Huam Standby (lub hwj chim kos ntawm koj lub tshuab ntxhua khaub ncaws ntsuas thaum nyob tos - siv tau, tab sis tsis siv)
  • Nagging (on/off rov hais qhia Google Tsev txhua txhua 5 feeb kom txog thaum lub tshuab ntxhua khaub ncaws raug tua, nagging yuav tsum tau qhib txhua lub sijhawm)

Nws ua haujlwm li cas? Kuv siv txoj kev ntse ntse ntawm kev txiav ib qho array rau tus lej ntawm qhov muaj txiaj ntsig uas sib npaug rau kev siv sijhawm hauv feeb. Qhov no txhais tau tias qhov ntws ib txwm tshuaj xyuas lub zog nruab nrab ntawm lub tshuab ntxhua khaub ncaws.

nruab nrab === 0 (tshuab ntxhua khaub ncaws tawm)

nruab nrab 0 (tshuab ntxhua khaub ncaws hauv tos) nruab nrab> 0 (tshuab ntxhua khaub ncaws siv)

Txij li thaum kuv tab tom tshuaj xyuas lub tshuab siv lub tshuab ntxhua khaub ncaws txhua 60 vib nas this (tus nqi qis tshaj kuv tau sau tseg yog 3W), Kuv tuaj yeem qhia tau yooj yim thaum lub tshuab ntxhua khaub ncaws, nyob tos lossis tawm. Nws yog lub sijhawm los qhwv txoj haujlwm ua haujlwm nyob ib puag ncig nws thiab ntxiv qee qhov kev ceeb toom.

FUNCTION NODE: Xam lub zog

var zog = msg.payload. StatusSNS. ENERGY. Power; var timer = flow.get ("sij hawm"); var tag nrho = flow.get ("Total"); var tus nqi = flow.get ("CostArray");

// xyuas yog tias muaj nyob

yog (! tag nrho ||! total.length || tag nrho === undefined) {tag nrho = ; }

// laub ntsiab

total.unshift (hwj chim); // tshem X elementh yog (tag nrho [timer] === undefined) {flow.set ("Tag nrho", tag nrho); } lwm {total.splice (timer, 1); flow.set ("Tag nrho", tag nrho); }

Thaum lub tshuab ntxhua khaub ncaws nkag mus rau qhov tos tom qab coj txawv txawv, tsis muaj dab tsi tshwm sim tiag tiag. Thawj qhov xwm txheej tau sau tseg thaum lub zog siv tshaj li tus nqi tos. Kev ntxuav tau pib (ntxiv/rho tawm 60 vib nas this) thiab lub sijhawm tau sau tseg. Txij ntawm no mus, Kuv kuj pib suav ntau npaum li cas txhua feeb nqi rau kuv thiab thawb tus nqi ntawd mus rau lwm qhov. Kuv tseem tab tom npaj ceeb toom.

Yog tias lub tshuab ntxhua khaub ncaws nres, Kuv suav tus nqi ntawm lub zog siv (suav tag nrho txhua qhov ntawm cov khoom), lub sijhawm ua tiav (rho tawm lub sijhawm) thiab thawb qhov ntawd raws li kev ceeb toom rau Google Tsev lossis Android ntawm Kev Koom Tes. Yog tias koj tsis tau siv Koom nrog hauv NodeRED Kuv muaj cov lus qhia yooj yim kom koj pib. Kuv kuj tsim loa op uas mus rau txhua 5 feeb, thiab tshaj tawm ceeb toom nagging rau Google Tsev. Lub voj ntawd tau nres thaum lub zog siv los ntawm lub tshuab ntxhua khaub ncaws = 0. Kuv kuj tseem yuav tsum tshem tawm cov ntawv ceeb toom.

FUNCTION NODE: tshaj tawm tsis tseeb

muaj nuj nqi secondsToHms (d) {d = Tus lej (d); var h = Math.floor (d / 3600); var m = Math.floor (d % 3600 /60); return ('0' + h).slice (-2) + "h" + ('0' + m).slice (-2) + "min"; }

flow.set ("tshaj tawm", tsis tseeb);

var pib = flow.get ("WashStart"); var timer = flow.get ("sijhawm");

// xam lub sijhawm ntxuav

var hnub = tshiab Hnub (); var ms = hnub tim.getTime ();

var totaltimeinsec = (ms -pib)/1000 - 60 *timer;

var totalWashTime = secondsToHms (totaltimeinsec);

flow.set ("TotalWashTime", totalWashTime);

flow.set ("WashStart", 0);

// txuag qhov kev sib tham ntxuav lub zog

var washtotal = flow.get ("WashTotal"); var sum = washtotal;

muaj nuj nqi ntxiv (accumulator, a) {

rov qab accumulator + a; }

var nruab nrab = sum.reduce (ntxiv);

msg.average = nruab nrab / washtotal.length; flow.set ("WashTotal", tsis muaj);

// tag nrho tus nqi

var sum = flow.get ("CostArray");

muaj nuj nqi ntxiv (accumulator, a) {

rov qab accumulator + a; }

var costofpower = sum.reduce (ntxiv);

var totalcost = Math.round (tus nqi zog * 100) / 100; flow.set ("CostArray", tsis muaj); flow.set ("TotalCost", suav tag nrho);

msg = {};

msg.payload = "Koj ntxuav tau npaj txhij";

msg.ms = sib; msg.totalWashTime = totalWashTime;

rov qab msg;

Kuv cov ntawv ceeb toom tau muab rau 3 lub cuab yeej (xov tooj, desktop thiab laptop) Kuv tau siv lub peev txheej pov thawj los ua haujlwm rau API tus yuam sij, thiab kuv kuj tau qhib cov ntsiab lus khaws cia rau kuv NodeRED.

FUNCTION NODE: rov ceeb toom ceeb toom

flow.set ("tshaj tawm", tseeb); var power = msg.payload; var tag nrho = flow.get ("WashTotal"); var pib = flow.get ("WashStart"); // nyuam qhuav pib ntxuav yog (pib === 0) {var date = Hnub Tshiab (); var sec = hnub tim.getTime (); flow.set ("WashStart", ntu); } // kos yog tias muaj tshwm sim yog (! tag nrho ||! total.length || tag nrho === tsis tau txhais) {tag nrho = ; } // thawb lub caij total.unshift (lub zog); flow.set ("WashTotal", tag nrho); msg.payload = tag nrho; rov qab msg;

Kuv tsim lub tshuab hluav taws xob me me uas xaiv qhov nag nag txhua lub sijhawm Google Tsev xav tau ceeb toom rau koj. Muaj qhov haujlwm tseem ceeb los xaiv tus lej tsis raug los ntawm qhov ntau tau teev tseg los ntawm tus lej ntawm cov ntsiab lus los ntawm cov lus tsis txaus ntseeg.

Kauj Ruam 3: Cov Lus Kawg

Lo Lus Kawg
Lo Lus Kawg
Lo Lus Kawg
Lo Lus Kawg

Tsawg dua $ 15 koj tuaj yeem ntse dua koj lub tshuab ntxhua khaub ncaws thiab tej zaum txuag koj tus kheej ntau nagging! Qhov ntawd yog qhov zoo. Kuv tab tom nrhiav rau pem hauv ntej rau cov tshuaj tiv thaiv ntawm kuv nco, raws li nws nyob deb. Nws tsis cia siab tias lub tshuab ntxhua khaub ncaws tham nrog nws nrog nws cov lus "nyiam"!

Ib qho ntxiv, yog tias koj xav tau txais kev ceeb toom txog qhov hloov tshiab rau qhov no lossis lwm qhov haujlwm - txiav txim siab ua raws kuv ntawm lub platform uas koj xaiv:

  • Instagram
  • YouTube

thiab yog tias koj xav zoo li yuav kuv kas fes lossis txhawb kuv txoj hauv kev txuas ntxiv mus:

  • PayPal
  • Patreon

Kuv vam tias koj tau txaus siab rau txoj haujlwm! Txheeb xyuas ntau txoj haujlwm tawm ntawm notenoughtech.com

Pom zoo: