Cov txheej txheem:
- Kauj Ruam 1: Txhua Yam Xav Tau
- Kauj ruam 2: Programming
- Kauj Ruam 3: Xeem Nws
- Kauj Ruam 4: Ua kom tiav
Video: DIY Raspberry Pi Ntse Google Calendar Clock: 4 Cov Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:29
Nov yog Smart moos Kuv tau ua rau Kev Sib Tw Clocks, Kuv vam tias koj nyiam nws!
Nws muaj Raspberry Pi nyob hauv nws uas tab tom ua Tus Txheej Txheem thiab Python txhawm rau nkag mus rau kuv li Google Calendar cov ntaub ntawv thiab luam tawm 10 hnub tom ntej uas koj muaj qee yam ntawm lub vijtsam.
Qhov kev pab cuam nab nab nkag mus rau cov ntaub ntawv qhia hnub, txuag nws rau hauv cov ntawv ntawm Raspberry Pi, uas Ua Haujlwm nyeem thiab tso rau ntawm lub vijtsam.
Kauj Ruam 1: Txhua Yam Xav Tau
Raspberry Pi:
www.amazon.com/Raspberry-Pi-MS-004-0000002…
(yog tias koj xav tau, koj tuaj yeem tau txais 3 B+ uas yuav nrawm dua)
Ib qho screen:
www.amazon.com/Elecrow-RPA05010R-800x480-D…
Thiab yog tias koj tsis muaj lub hwj chim muab, koj tuaj yeem pom ib qho ntawm no:
www.amazon.com/CanaKit-Raspberry-Supply-Ad…
Koj tseem yuav xav tau USB nas thiab keyboard (Nws tsis muaj teeb meem dab tsi hom lawv yog)
Kauj ruam 2: Programming
Yog tias koj muaj lub ntsuas loj dua, Kuv xav kom pom zoo siv qhov ntawd rau theem no vim tias lub vijtsam me me thiab nws nyuaj rau pom cov ntawv.
Ua ntej, koj yuav tsum tau teeb tsa Ua:
processing.org/download/
Xaiv (Khiav ntawm Pi?) Ntawm Linux daim ntawv teev npe, tom qab ntawd nyem Rub thiab ua raws cov lus qhia teeb tsa.
Thaum koj tau ua tiav, koj tuaj yeem rub tawm qhov program uas yog qhov kawg ntawm cov kauj ruam no, koj tseem tuaj yeem rub tawm qhov program nab hab sej, tom qab ntawd txav lawv mus rau hauv cov ntawv tais ceev tseg hauv tsev.
Koj yuav tsum tau siv Python 2.7 vim Python 3 tsis txhawb los ntawm Googles Python Calendar API.
Mus ntawm no thiab ua raws cov lus qhia rau teeb tsa API, (Kuv yuav qhia yuav ua li cas, tab sis tsuas yog Google tuaj yeem teeb tsa API)
developers.google.com/calendar/quickstart/…
Yog tias koj muaj txhua yam uas ua tiav, koj yuav tsum muaj peev xwm khiav qhov program nab nab tsis muaj qhov yuam kev.
Koj yuav tsum tau muab qhov no tso rau hauv ~/.config/lxsession/LXDE-pi/autostart file:
/usr/local/bin/processing-java --sketch =/home/pi/Clock.pde --run
thiab qhov no hauv /etc/rc.local cov ntaub ntawv:
nab hab sej /home/pi/Clock.py &
Thiab qhov ntawd yog txhua yam rau cov kauj ruam no!
Kauj Ruam 3: Xeem Nws
Cov kauj ruam no yooj yim zoo nkauj, tsuas yog ntsaws Pi rau hauv lub vijtsam, qhib lub zog (Tej zaum yuav muaj kev hloov pauv ntawm ib sab ntawm lub vijtsam kom qhib thiab tua lub teeb nraub qaum) thiab TADA! koj muaj Google Calendar Moos!
Yog tias nws tsis ua haujlwm, tsuas yog nug, Kuv yuav nyiam pab!
Kauj Ruam 4: Ua kom tiav
Qhov ntawd yog txhua yam! thov tsis txhob yig tau nug cov lus nug, thiab yog tias koj xav tsis thoob txog qhov xwm txheej, Kuv tsuas yog txiav kuv daim cardboard. (PS tsis txhob hnov qab pov npav hauv Kev Sib Tw Clocks!)
Pom zoo:
Yuav Ua Li Cas DIY Ntse Cov Menyuam Qhov Muag Nrog SONOFF Ntse Hloov?: 14 Cov Kauj Ruam
Yuav Ua Li Cas DIY Ntse Cov Menyuam Qhov Muag Nrog SONOFF Ntse Hloov?: Siv Interlock Mode hauv SONOFF ntse hloov los tig koj cov menyuam qhov muag tsis pom kev/qhov muag tsis pom mus rau qhov ntse Koj puas yuav feem ntau ntawm koj pom zoo qhov no yog txoj haujlwm uas koj rub cov menyuam qhov muag/qhov muag tsis pom thaum sawv ntxov thiab rub nws thaum yav tsaus ntuj? Txawm li cas los xij, kuv
Ntse Tswb Tswb: Ntse Tswb Tswb Ua Nrog Raspberry Pi: 10 Kauj Ruam (nrog Duab)
Ntse Tswb Tswb: Ntse Tswb Tswb Ua Nrog Raspberry Pi: Koj puas tau xav tau lub moos ntse? Yog tias yog, qhov no yog kev daws teeb meem rau koj! Thaum lub tswb nrov tawm, yuav muaj lub suab (buzzer) thiab 2 lub teeb yuav
Lub Hnab Ntse Hnab Ntse Ntse Computer: 4 Kauj Ruam (nrog Duab)
Lub Hnab Ntse Hnab Ntse Ntse Computer: Qhov no yog "hnab looj tes ntse" nas lub computer uas tuaj yeem siv nrog ib lub PC, Mac, lossis Linux computer. Nws tau tsim los siv Binho Nova ntau tus txheej txheem USB host adapter, uas tso cai rau koj txuas cov ntsuas thiab lwm yam khoom siv rau koj lub khoos phis tawj thiab tom qab ntawd txuas ntxiv
Tsis Siv Neeg Ntim Txheeb Xyuas Qhov Ntse Ntse: 4 Cov Kauj Ruam
Tsis Siv Neeg Ntsuas Ntsuas Qhov Ntsuas Zoo: Lub ntsiab lus yog ua tus qauv uas tuaj yeem tshuaj xyuas thiab txheeb xyuas ob daim duab sib txawv thiab tso tawm nws ntim. Ntawm no peb xaiv mus nrog lub voos xwmfab thiab lub tog raj kheej ua ob yam sib txawv. Nws tuaj yeem txheeb xyuas cov duab, txheeb xyuas thiab xam lub ntim los ntawm nws tus kheej. Ua haujlwm
WiFi Pab Kom Kub Kub Tswj Ntse Ntse: 4 Cov Kauj Ruam
WiFi Pab Kom Kub Kub Tswj Ntse Ntse Plug: Hauv phau ntawv qhia no peb yuav saib seb yuav tsim WiFi li cas ntsuas kub ntsuas nrog siv ESP8266 yooj yim rau kev nqa hnyav thiab DHT11 ntsuas kub/av noo. Peb tseem yuav siv lub rooj tsav xwm uas kuv tau tsim thiab kuv