Cov txheej txheem:

Ntse Daim iav: 5 Cov Kauj Ruam
Ntse Daim iav: 5 Cov Kauj Ruam

Video: Ntse Daim iav: 5 Cov Kauj Ruam

Video: Ntse Daim iav: 5 Cov Kauj Ruam
Video: ntshiabsi Hawj, kuv tus txiv yog khws kho mob 5/21/23 [ MV OFFICIAL] 2024, Hlis ntuj nqeg
Anonim
Ntse Daim iav
Ntse Daim iav

Cov lus qhia no yuav qhia koj yuav ua li cas thiaj tsim Smart Mirror uas qhia koj tus email inbox, xov xwm tshiab thiab hloov tshiab los ntawm The New York Times, thiab hnub tim thiab sijhawm nyob rau keeb kwm yav dhau los ntawm Unsplash.

Txuas ntawm nws ua haujlwm:

Cov khoom siv xav tau:

Ib lub thav duab rau tus saib, ob txoj kev tsom iav, cov khoom siv dub (tsuas yog xav tau yog saib xyuas me dua ob txoj kev tsom iav), saib, raspberry pi 2, HDMI qaum lossis txuas rau HDMI (Kuv tau siv ob txoj kev DVI rau HDMI adapter), suav nrog raspberry pi 2 lub zog txuas hluav taws xob, daim npav micro sd, daim npav micro sd daim npav, thiab nas thiab keyboard ua ke kom txav mus rau raspberry pi zaub ntawm lub monitor.

Cov kev kawm xav tau:

Raspbian, Balena.io, thiab MagicMirror2

Cov vev xaib siv:

Github (rau kev teeb tsa tus neeg thib peb tus qauv), MagicMirror2 txhawm rau txhim kho qhov program mus rau pi, thiab Unsplash los tsim cov duab keeb kwm yav dhau

Kauj Ruam 1: Txhim Kho Raspbian thiab Daim iav Khaub Ncaws

Txhim kho Raspbian thiab Daim iav Khaub Ncaws
Txhim kho Raspbian thiab Daim iav Khaub Ncaws
Txhim kho Raspbian thiab Daim iav Khaub Ncaws
Txhim kho Raspbian thiab Daim iav Khaub Ncaws
Txhim kho Raspbian thiab Daim iav Khaub Ncaws
Txhim kho Raspbian thiab Daim iav Khaub Ncaws

Siv lub khoos phis tawj rub tawm Raspbian thiab Balena mus rau micro sd siv sd. Tom qab cov program tau rub tawm ntxig lub micro sd hauv lub adapter rau hauv lub computer. Siv Balena xaiv txoj haujlwm raspbian thiab sd kom hloov cov ntaub ntawv. Tom qab qhov no ntxig lub micro sd rau hauv raspberry pi. Ntawm kuv nws yog hauv qab ntawm pi rau sab. Nqa tus pi mus rau tus hloov pauv uas koj tab tom siv thiab ua tiav cov teeb tsa kev qhia. Txhawm rau ua qhov no ntsaws cov hlua hluav taws xob rau hauv phab ntsa thiab pi. Tom qab ntawd ntsaws lub HDMI cable rau hauv koj lub adapter lossis HDMI ntsaws ntawm tus saib. Tom qab hloov kho thiab teeb tsa software mus rau Magic Mirror software mus rau pi. Qee cov lus txib yuav muab rau khiav mus rau pi uas yuav ua kom sai rau kev teeb tsa ntawm qhov program. Nws yuav nug koj cov lus nug thoob plaws kev teeb tsa txog kev nyiam. Teb cov lus nug thiab ua raws cov cai nws qhia rau koj kom luam mus rau kab hais kom ua. Nws yuav tom qab ntawd pib qhov program yooj yim yog ua tiav tom qab nkag mus npm pib pib.

Qee cov lus txib kuv tau kawm uas yog qhov tseem ceeb kom nco ntsoov hauv lub vev xaib no thaum mus qhia cov lus qhia thiab cov haujlwm:

*cov ntaub ntawv rhiab*

Mus rau hauv paus cov npe = cd ~

Mus rau phau ntawv teev npe dhau los = cd -

Mus rau phau ntawv teev npe tom ntej = cd..

Mus rau Magic Mirror directory = cd MagicMirror/

Mus rau cov ntawv teev npe module = cd module

Thaum nyob hauv Magic Mirror directory (tsis yog module) los ua haujlwm Magic Mirror program = npm khiav pib

Txhawm rau txiav tawm txoj haujlwm = ntaus ALT thiab nyem tawm

Kauj Ruam 2: Tshem Tawm Cov Qauv Ua Ntej

Tshem tawm Preset Modules
Tshem tawm Preset Modules

Thaum qhib qhov iav Magic program thawj zaug tus neeg siv yuav tau txais tos nrog lub sijhawm, hnub tim, daim ntawv qhia hnub, thiab tshaj tawm xov xwm tshiab. Koj tuaj yeem yooj yim tshem tawm ib qho qauv ua ntej los ntawm kev tshem nws los ntawm txoj cai. Txhawm rau nkag mus rau tus lej no nkag mus rau hauv cov ntawv raspberries thiab qhib lub Khaub Ncaws Daim iav. Koj tuaj yeem nkag mus rau cov ntawv tais ceev tseg los ntawm txhaj rau lub cim icon nyob rau sab saum toj sab laug ntawm qhov screen. Tom qab qhov no mus rau hauv daim nplaub tshev teeb tsa, koj yuav pom cov ntawv kho tau hu ua config/config.js hauv daim nplaub tshev. Nyem ob npaug rau ntawm cov ntawv thiab cov qauv txheej txheem rau Daim iav yuav tshwm. Ceev faj kom tsis txhob tshem ib qho kab ntawv lossis kab ntawv lossis qhov program yuav tsis ua haujlwm. Raws li pom hauv daim duab saum toj no kuv tshem daim ntawv qhia hnub hli los ntawm kuv qhov program raws li kuv pom kuv tus kheej tsis siv nws. Lwm qhov qauv tuaj yeem raug tshem tawm ib yam nkaus tab sis rov ua tib zoo tshem tawm cov chunks ntawm cov cai los ntawm txoj haujlwm.

Kauj Ruam 3: Txhim Kho Cov Qauv

Txhim Kho Cov Qauv
Txhim Kho Cov Qauv
Txhim Kho Cov Qauv
Txhim Kho Cov Qauv

Txhawm rau teeb tsa tus neeg thib peb cov qauv rau daim iav Github tau siv. Lub vev xaib no yog qhov ua tiav ntawm cov qauv siv tau muaj rau siv. Muaj ntau ntau uas suav nrog cov cuab yeej sib txawv, keeb kwm yav dhau, lossis kev tshaj xov xwm hauv social media. Cov phiaj xwm zoo li Alexia thiab Zes tuaj yeem muab tso rau hauv Daim iav nrog kev siv qee qhov ntxiv. Tom qab tshawb xyuas lub vev xaib Kuv txiav txim siab ntawm Email Pub module thiab tus qauv uas rub cov duab los ntawm Unsplash.

Email Pub -

github.com/shaneapowell/MMM-GmailFeed

Random Duab -

github.com/diego-vieira/MMM-RandomPhoto

GitHub -

github.com/MichMich/MagicMirror/wiki/3rd-p…

Muaj ob txoj hauv kev los teeb tsa cov qauv, rho tawm cov ntaub ntawv zip thiab txav lawv mus rau hauv daim nplaub tshev module lossis siv cov lej muab rau hauv qhov hais kom ua sai. Kuv siv qhov kev xaiv thib ob tab sis ob qho tib si ua haujlwm thiab yooj yim zoo nkauj los siv. Tej zaum koj yuav tau pom cov ntawv tshaj tawm ntawm GitHub muaj kab ntawm kab ntawv tso rau hauv nplooj ntawv qhia. Peb siv cov no txhawm rau rub daim qauv thiab tom qab rub tawm npm rau hauv daim nplaub tshev. Npm sawv rau Node Pob Tus Thawj Tswj thiab yog pob uas rub tawm thaum lub chaws npm nruab. Txhawm rau pib txheej txheem rub tawm ua raws cov kauj ruam no tom qab qhib qhov hais kom ua.

1) cd MagicMirror/

2) cd modules

3) git clone "txuas ntawm nplooj ntawv git hub"

4) (nkag rau daim nplaub tshev tshiab) cd "lub npe nplaub tshev"

Yuav tshuaj xyuas lub npe ntawv li cas:

Feem ntau lub npe nplaub tshev yog lub npe ntawm tus qauv nws tus kheej. Piv txwv li MMM-EmailFeed tau yooj yim hu ua MMM-EmailFeed. Tab sis puas yog koj tab tom siv lub npe ntawm tus qauv thiab nws tau hais tias tsis muaj cov npe ntawd, ntaus ls thaum nyob hauv kab ntawv teev npe kom tau txais cov npe ntawm txhua qhov teeb tsa uas tau teeb tsa hauv cov ntawv tais ceev tseg. Qhov no yuav muab lub npe ntawm daim nplaub tshev uas koj yuav mus rau.

*Nco tseg cov lus hais tsuas yog siv ntawm no ua piv txwv thiab yuav tsum raug tshem tawm thaum nkag mus rau qhov txuas thiab lub npe npe*

6) (thaum tam sim no hauv daim nplaub tshev tshiab) npm nruab

Zoo kawg! Tam sim no peb tau rub cov ntawv tais ceev tseg, tab sis peb tseem xav tau daim ntawv nkag mus rau hauv config/config.js nplaub tshev. Txhawm rau ua qhov no rov qab mus rau hauv cov ntawv peb tau nkag mus rau tshem tawm cov qauv ua ntej thiab muab cov ntawv uas tau muab rau koj. Ceev faj thaum tso cov cai kom tsis txhob ua ib qho kab zauv. Yog tias koj saib hauv cov duab suav nrog saum toj no koj yuav pom qhov chaw nyab xeeb los muab cov lej tso rau. Yog tias nws tsis meej muab nws tso tom qab kawg], hauv kab lus. Nco ntsoov tias feem ntau cov qauv xav tau qee cov ntawv hloov pauv lossis qee cov ntaub ntawv nkag mus. Piv txwv li email pub xav tau kuv li gmail account cov ntaub ntawv txhawm rau nkag mus saib cov ntaub ntawv nthuav tawm. Tom qab npm tau teeb tsa, nkag tau muab tso rau hauv txoj cai, thiab koj tau nkag mus rau cov ntaub ntawv xav tau pib ntawm Magic Mirror program thiab xyuas kom nws ua haujlwm tau zoo. Cov kauj ruam tom ntej yuav muab ntau daim duab ntawm kuv cov txheej txheem thaum txhim kho cov qauv yog tias tseem muaj kev tsis meej pem.

Kauj Ruam 4: Txhim Kho Kuv Cov Qauv

Txhim Kho Kuv Cov Qauv
Txhim Kho Kuv Cov Qauv
Txhim Kho Kuv Cov Qauv
Txhim Kho Kuv Cov Qauv
Txhim Kho Kuv Cov Qauv
Txhim Kho Kuv Cov Qauv

Cov duab saum toj no qhia meej qhov kuv muab tso rau hauv kuv Pi kom tau txais cov haujlwm ua haujlwm. Thawj plaub daim duab tau rub los ntawm GitHub cov vev xaib ua piv txwv rau cov lus qhia kuv ua raws. Daim duab kawg yog piv txwv ntawm kev nkag mus rau hauv tus lej config.js. Kuv vam tias qhov no ua haujlwm ua piv txwv pom tau zoo dua piv rau theem kawg.

Kauj Ruam 5: Tsim Daim iav Qhov Tseeb

Tsim Daim iav Qhov Tseeb
Tsim Daim iav Qhov Tseeb

Tam sim no tias Raspberry Pi tab tom khiav nws yog lub sijhawm los tsim daim iav. Cov kauj ruam no nyuaj tshaj plaws vim tias nws nyuaj rau nrhiav lub thav duab uas yuav haum rau tus saib. Txawm tias tom qab disassembling lub monitor, nws tseem yog 19x15x3 thiab kuv tseem muaj teeb meem nrog cov kauj ruam no. Kuv tau saib ntau lub khw thiab online nres kom sim thiab nrhiav tus ncej uas yuav haum rau tus saib tab sis kuv zoo li tsis muaj hmoo.

Cov kauj ruam rau thaum kuv tau txais tus ncej thiab kuv ob txoj kev tsom iav:

1) Muab ob daim iav tso rau hauv tus ncej

2) Teeb tus saib nrog rau raspberry pi thiab hlua

3) Tuaj nrog txoj hauv kev los khiav cov hlua hla tus ncej (tejzaum nws yuav khawb qhov?)

4) Muab cov khoom dub hla tus saib kom muab tus saib saib zoo thiab muab nraub qaum tso rau hauv tus ncej

5) Dai nws ntawm kuv phab ntsa

Pom zoo: