Cov txheej txheem:
- Kauj ruam 1:
- Kauj ruam 2: Cov ntaub ntawv
- Kauj Ruam 3: Txhim Kho InkywHAT
- Kauj Ruam 4: Tau Txais Lub Sijhawm, Xov Xwm thiab Cov Ntaub Ntawv Ib puag ncig
- Kauj ruam 5: Txhim kho LUB
- Kauj Ruam 6: Khiav Cov Ntawv Sau ntawm Sijhawm Teev
- Kauj ruam 7: Reboot
Video: Ua Koj Tus Kheej MQTT EInk Zaub rau Lub Sijhawm, Xov Xwm thiab Cov Ntaub Ntawv Ib Leeg: 7 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
'THE' yog qhov me me MQTT Cov Lus Qhia rau Lub Sijhawm, Xov Xwm thiab Cov Ntaub Ntawv Ib Leeg. Siv lub vijtsam 4.2-nti eInk, nws lub tswvyim yooj yim-los qhia cov ntaub ntawv ntawm qhov sib hloov, hloov kho txhua ob peb feeb. Cov ntaub ntawv tuaj yeem yog ib qho pub mis - los ntawm cov xov xwm tshiab xov xwm dhau mus rau koj lub tsev ntse, siv lub zog, nyob ib puag ncig ib puag ncig ib puag ncig lossis yooj yim lub sijhawm - THE - Lub Sijhawm, Kab Xov Xwm & Ib puag ncig.
'THE' yog tsim los ntawm ob qho yooj yim tawm ntawm cov khoom ntim (ib qho eInk InkyWHAT screen los ntawm Pimoroni thiab Raspberry Pi) cov cai thiab cov ntawv luam tawm 3D yog qhib qhov chaw, tso cai rau koj hloov kho lossis rov tsim kho koj tus kheej. Lub tswv yim los ntawm kev coj noj coj ua ntev ntawm kev saib cov ntaub ntawv ntawm lub vijtsam, los ntawm cov kab ke xws li Teletext, dhau mus rau tus hlub Chumby, txuas mus rau Sony Dash thiab tom qab ntawd lawv tam sim no rov ua dua ntawm Echo Show thiab Google Tsev. Tseem muaj qhov xav tau cov ntaub ntawv qhia yooj yim uas tsis mloog hauv, tsis ua suab paj nruag lossis yeeb yaj kiab thiab tsis vam khom cov ntaub ntawv huab. Ib yam dab tsi uas yooj yim qhia cov ntaub ntawv, ntawm ib nrais muag siv lub vijtsam zoo nkauj uas tsis muaj teeb pom kev zoo, ntawm cov cuab yeej uas hloov pauv ntawm lub sijhawm ua ntej. Ib qho piv txwv ci ntsa iab yog eInk Status Display, siv InkyPhat saib https://jsutton.co.uk/eink-mqtt-status/ kom paub meej. Yog li nrog cov no hauv siab thiab qee txoj cai los ua haujlwm ntawm 'THE' tau yug los, ib lub asthiv txias thaum lub Kaum Ib Hlis hauv qhov tob tshaj plaws Norfolk, thaum xav txog Cov Txheej Txheem Ib Ntus Kev Kawm Rov Qab los ntawm University College London
Kauj ruam 1:
Kauj ruam 2: Cov ntaub ntawv
Txhawm rau Ua Tus Koj xav tau:
- Raspberry Pi (Pi Pi xoom, lossis Pi 3) - peb siv Pi 3 rau peb;
- Ib qho InkywHAT screen;
- Yog tias siv tus Pi 3-txoj cai-angled USB cable (yog li cov cable haum hauv rooj plaub);
- MQTT broker - txawm khiav ntawm koj Pi lossis lwm qhov. Tsis txhob txhawj xeeb yog tias koj tsis muaj lossis tsis paub meej tias MQTT yog dab tsi, nws nrawm thiab yooj yim teeb tsa thiab ib zaug ntsia nws yuav cia li khiav-saib ntawm https://randomnerdtutorials.com/how-to-install -mo … kom puv thiab yooj yim los ua raws kev qhia kom tau txais MQTT khiav -qhov no, tsis ua haujlwm ntawm koj Pi;
- Ib qho yooj yim kom haum cov ntaub ntawv-taub hau mus rau Thingiverse kom rub tawm thiab luam tawm peb cov ntaub ntawv qhib qhov chaw. Our pub dawb thiab qhib qhov ntawv los sau Lub Sijhawm, Xov Xwm thiab Ib puag ncig;
Kauj Ruam 3: Txhim Kho InkywHAT
Kauj Ruam Ib: Txhim Kho InkywHAT Thawj kauj ruam yog teeb tsa thiab teeb tsa koj lub InkyWhat eInk screen. Koj tuaj yeem nruab cov tsev qiv ntawv xav tau rau koj li InkyWHAT los ntawm kev siv yooj yim ib-kab-teeb tsa.
Qhib lub davhlau ya nyob twg tshiab los txuas rau koj Pi, thiab ntaus cov hauv qab no, ua kom ntseeg tau tias y lossis n thaum hais kom ua:
curl https://get.pimoroni.com/inky | tsoo
Ib-kab-kev teeb tsa tso txhua yam nyob hauv qhov chaw kom tau txais koj li eInk npo thiab khiav, peb pom zoo kom koj mus rau Pimoroni Pib Nrog InkyWhat rau cov ntaub ntawv ntau ntxiv thiab piv txwv-tsuas yog los tshuaj xyuas nws ua haujlwm.
Kauj Ruam 4: Tau Txais Lub Sijhawm, Xov Xwm thiab Cov Ntaub Ntawv Ib puag ncig
Qhov hloov kho nws cov ntaub ntawv los ntawm kev sau npe mus rau MQTT lub ncauj lus, peb cov ntawv sau tshwj xeeb rub rau lwm qhov chaw ntawm cov ntaub ntawv thiab tshaj tawm rau lub ncauj lus no, tso cai rau siv tus lej ntawm cov ntaub ntawv siv. Muaj peb daim ntawv tseem ceeb - ib qho rau Lub Sijhawm, thib ob rau Xov Xwm Pub thiab thib peb rau huab cua.
Tau Txais Lub Sijhawm:
Tag nrho peb cov ntaub ntawv muaj nyob ntawm Kev Sib Txuas Ib puag ncig githib rau THE-https://github.com/ucl-casa-ce/THE
Rau lub sijhawm - rub tawm timetomqtt.py.
Tsab ntawv tau txais lub sijhawm tam sim no thiab hloov nws mus rau cov lus rau tso rau ntawm THE - yog li, piv txwv li, 12.14 teev tsaus ntuj dhau los Ua Lub Sijhawm yog Kaum Ob Qhov Tseeb dhau los Kaum Ob Hlis thiab ntxiv rau. Hauv tsab ntawv koj yuav tsum tau kho nws txhawm rau ntxiv rau koj tus kheej MQTT cov ntsiab lus - peb tau hais txog cov ntu los kho hauv cov cai. Luam nws hla koj tus Pi hauv daim nplaub tshev - peb siv/home/pi/scripts - qhov no tuaj yeem nqes los ntawm kab hais kom ua lossis ntawm ftp ntawm Filezilla lossis zoo sib xws.
Tau Xov Xwm:
Txog xov xwm, rub rsstomqtt.py. Tsab ntawv tau txais xov xwm tshiab los ntawm Ntuj thiab tshaj tawm rau MQTT rau THE. Koj tuaj yeem hloov kho cov xov xwm raws li xav tau hauv daim ntawv. Cov ntaub ntawv no tseem tuaj yeem theej los rub ib qho RSS pub ncaj qha rau koj li.
Raws li ua ntej, hauv tsab ntawv koj yuav tsum tau kho nws txhawm rau ntxiv rau koj tus kheej MQTT cov ntsiab lus - peb tau hais qhia qhov tseem ceeb los kho hauv cov cai.
Tau Huab Cua:
Txog huab cua, rub tawm darkskytomqtt.py Koj yuav tsum tau sau npe siv Darksky API (tsis txhob txhawj, nws pub dawb thiab tso cai txog li 1000 hu tauj ib hnub, ntau dua txaus los tso saib huab cua zaum kawg ntawm THE). Hauv peb tsab ntawv, yooj yim tso rau hauv koj tus yuam sij DarkSky, uas koj yuav tau txais thaum koj kos npe rau API thiab tseem koj qhov ntev thiab latitude rau qhov chaw koj xav tau cov ntaub ntawv rau. Koj tuaj yeem pom qhov ntev thiab lat ntawm https://github.com/ucl-casa-ce/THE Yog tias txhua qhov no yog qhov tshiab ces nws yuav suab nyuab tab sis nrog kev sim me ntsis thiab ua yuam kev, koj yuav tuaj yeem kho cov ntaub ntawv, sau koj tus kheej thiab tau txais cov ntaub ntawv koj xav tau ntawm THE tsis muaj sijhawm.
Kauj ruam 5: Txhim kho LUB
Thaum koj muaj cov ntawv sau los sau cov khoom noj koj yuav tsum tau teeb tsa cov ntawv tseem ceeb los ua haujlwm.
Rub tawm THE_pi_what.py
Ib yam li lwm cov ntawv sau, kho qhov twg qhia thiab ntxiv hauv koj tus kheej MQTT cov ntsiab lus. Thaum kho tiav, theej nws hla koj tus Pi nrog koj lwm cov ntawv sau.
Thaum kawg, koj xav tau cov ntawv thiab daim duab keeb kwm yav dhau: Download hm.ttf (font) Download whatbackground-p.webp
Kauj Ruam 6: Khiav Cov Ntawv Sau ntawm Sijhawm Teev
Cov ntawv sau ntawm lub sijhawm teev tseg ntawm pi ntawm kev pabcuam cron. Txhawm rau teeb tsa qhov no, nkag mus rau hauv koj tus pi ntawm ssh thiab ntaus
sudo crontab -e
Qhov no teeb tsa txheej txheem cron tshiab - yog nug nug xaiv '2' los kho nrog nano - luam cov hauv qab no rau hauv cov ntaub ntawv cron thiab txuag (cntl x).
*/5 * * * * python3 /home/pi/scripts/timetomqtt.py
*/12 * * * * python3 /home/pi/scripts/rsstomqtt.py
*/18 * * * * python3 /home/pi/scripts/darkskytomqtt.py
@reboot pw tsaug zog 10 && python3 /home/pi/scripts/THE_pi_what.py
Cov ntawv sau ntawm lub sijhawm teev tseg - hloov lawv mus rau lub sijhawm twg los xav tau. Peb rov pib dua pi txhua teev kom khaws khoom tshiab - qhov no tsis xav tau thiab peb paub tias nws tsis yog qhov ua tau zoo tshaj plaws tab sis peb tau pom tias nws khaws txhua yam ua haujlwm rau peb lub hom phiaj.
Kauj ruam 7: Reboot
Rov pib dua koj Pi thiab zaum rov qab thiab tos - koj cov txau yuav tshwm sim raws li lub sijhawm sib nrug koj teeb tsa hauv koj cov ntawv sau.
Koj tuaj yeem kho cov ntaub ntawv thiab ntxiv ntau qhov chaw ntawm cov ntaub ntawv raws li koj nyiam. Qhia rau peb paub yog tias koj ua ib qho, kho cov ntawv sau lossis rov ua dua rooj plaub.
Cov ncauj lus kom ntxaws thiab ntau ntxiv kuj tseem tuaj yeem nrhiav tau ntawm peb nplooj ntawv ntawm Kev Sib Txuas Ib puag ncig ntawm University College London - ua raws kuv - @digitalurban ntawm twitter rau txhua qhov hloov tshiab
Pom zoo:
Ua Cov Phiaj Xwm Zoo Los Ntawm Cov Ntaub Ntawv Nyob Arduino (thiab Txuag Cov Ntaub Ntawv rau Excel): 3 Cov Kauj Ruam
Ua Cov Phiaj Xwm Zoo Los Ntawm Cov Ntaub Ntawv Nyob Arduino (thiab Txuag Cov Ntaub Ntawv rau Excel): Peb txhua tus nyiam ua si nrog peb tus lej L … cov ntsiab lus tau ntxiv thiab nws tsis tshwj xeeb rau lub qhov muag. Arduino IDE cov phiaj xwm tsis
ARUPI - Tus Nqi Tus Nqi Tus Nqi Uas Tau Txais Tus Nqi Uas Tau Txais Tus Nqi/Tus Kheej Tus Kheej (ARU) rau Soundscape Ecologists: 8 Kauj Ruam (nrog Duab)
ARUPI - Tus Nqi Tus Nqi Uas Tau Txais Tus Nqi Tus Nqi Uas Tau Txais Tus Nqi/Tus Kheej Tus Kheej (ARU) rau Soundscape Ecologists: Cov lus qhia no tau sau los ntawm Anthony Turner. Txoj haujlwm tau tsim los nrog ntau qhov kev pab los ntawm Shed hauv Tsev Kawm Ntawv ntawm Kev Suav, University of Kent (Mr Daniel Knox tau pab zoo!)
IoT Cov Ntaub Ntawv Kev Tshawb Fawb PiNet rau Lub Sijhawm Tiag Smart Screen Cov Ntaub Ntawv Viz: 4 Cov Kauj Ruam
IoT Cov Ntaub Ntawv Kev Tshawb Fawb PiNet rau Lub Sij Hawm Tiag Smart Screen Cov Ntaub Ntawv Viz: Koj tuaj yeem yooj yim ua ke IoT network ntawm cov lus qhia ntse rau cov ntaub ntawv pom tau los ua kom muaj zog ntxiv koj li kev tshawb fawb hauv Cov Ntaub Ntawv Kev Tshawb Fawb lossis ib qho kev ua haujlwm ntau. Koj tuaj yeem hu rau " thawb " ntawm koj cov phiaj rau cov neeg siv khoom raug cai los ntawm koj li
Hloov (tsuas yog Txog) Txhua Cov Ntaub Ntawv Xov Xwm rau (tsuas yog Hais Txog) Lwm Cov Ntaub Ntawv Xov Xwm Dawb!: 4 Cov Kauj Ruam
Hloov (tsuas yog Txog) Txhua Cov Ntaub Ntawv Xov Xwm rau (tsuas yog Hais Txog) Lwm Cov Ntaub Ntawv Xov Xwm Dawb!: Kuv thawj qhov kev qhia, zoo siab! Txawm li cas los xij, Kuv tau nyob hauv Google nrhiav qhov program dawb uas yuav hloov kuv li Youtube.flv cov ntaub ntawv rau hom ntawv uas yog ntau yam thoob ntiaj teb, zoo li.wmv lossis.mov.I tshawb nrhiav ntau lub rooj sib tham thiab cov vev xaib thiab tom qab ntawd pom qhov program hu ua
Dimming Illuminator- rau Lub Sijhawm Ib Leeg Ib Leeg Ib Leeg: 4 Kauj Ruam (nrog Duab)
Dimming Illuminator- rau Lub Sijhawm Lub Sijhawm Ib Leeg Lwm Yam.: Chav no tau los vim kuv tus poj niam yws yws tias nws tsis tuaj yeem pom lub moos chav pw thaum chav pw tsaus ntuj, thiab nws tsis xav tig lub teeb kom tsa kuv . Kuv tus poj niam tsis xav tau lub teeb pom kev ntawm lub moos, tsuas yog ligh txaus