Cov txheej txheem:

Raspberry Pi PhotoBooth: HTML5 & NodeJS: 4 Cov Kauj Ruam
Raspberry Pi PhotoBooth: HTML5 & NodeJS: 4 Cov Kauj Ruam

Video: Raspberry Pi PhotoBooth: HTML5 & NodeJS: 4 Cov Kauj Ruam

Video: Raspberry Pi PhotoBooth: HTML5 & NodeJS: 4 Cov Kauj Ruam
Video: Raspberry Pi PhotoBooth 2024, Kaum ib hlis
Anonim
Image
Image

Ib qho HTML5 thiab NodeJS photobooth nrog saib ua ntej thiab kev cai ciam teb.

Txoj haujlwm no pib ua ib yam uas kuv tau ua rau kuv tus ntxhais lub tsev kawm seev cev. Kuv xav tau qee yam lom zem rau nws thiab nws cov phooj ywg kom nco txog qhov xwm txheej (uas yog zaum kawg uas lawv txhua tus yuav nyob ua ke hauv lawv lub tsev kawm ntawv). Nws hloov mus rau hauv kev txaj muag rau kev tshaj tawm rau lub tuam txhab kuv ua haujlwm ntawm (qhov uas kuv vam tias cov neeg siv khoom tuaj ntsib yuav siv daim duab los teev cia lawv mus ntsib peb lub chaw haujlwm). Thov, rub tawm thiab sim nws koj tus kheej.

Xav paub cov ntaub ntawv ntau ntxiv ntawm https://github.com/raymondljones/photobooth/wiki Qhov no xav tias koj muaj Raspberry Pi mob siab rau txoj haujlwm no. Thaum WiFi AP tau teeb tsa, Pi yuav tsis muaj kev siv internet txuas ntxiv tshwj tsis yog tias txuas nrog ntawm Ethernet. Nco tseg: tias koj yuav tsum muaj cov zaub ntawm qee yam txuas nrog Pi. Thiab nws yuav tsum tau teeb tsa kom khau raj rau hauv GUI tsis yog lub taub hau. Tom qab teeb tsa koj Pi (nrog lossis tsis muaj lub vijtsam kov) thiab ntsaws rau hauv lub vev xaib ntawm USB. Tsuas yog ua raws cov lus qhia. Tom qab kev teeb tsa: Kev teeb tsa nrawm yuav saib xyuas qhov yuav tsum tau muaj kev vam khom (nodejs, php, chromium, thiab lwm yam), ntxiv rau teeb tsa chromium-browser kiosk thiab Wifi AP. Thaum tus pi reboots, Wifi AP yuav muaj los ntawm SSID: PhotoBooth Password: photoboothpass Tus Pi yuav tsum khau raj hauv chromium kiosk puv npo (thawj zaug tso tawm yuav xav kom koj `` Access Access 'rau lub koob yees duab) … Txhua lub khoos phis tawj ntawm PhotoBooth network tuaj yeem kuj mus saib https://192.168.100.1/booth.html (nco ntsoov siv https) los ua tus PhotoBooth ntxiv hauv lub network (Tsuav yog muaj lub koob yees duab txuas). Ib qho ntxiv, txhua lub khoos phis tawj ntawm PhotoBooth network tseem tuaj yeem mus ntsib https://192.168.100.1/booth.html (tawm raws li http). Nplooj ntawv no yuav tso cai nkag mus rau txhua daim duab thaij (muab koj lub peev xwm los luam lossis rho tawm). Txhawm rau ntxiv koj tus kheej ciam teb, koj tuaj yeem yooj yim kho lub rooj muag khoom.html pom ntawm/var/www/html/, saib rau `li` cim npe uas muaj cov ciam teb cov duab (xaiv-1.png, xaiv -2png, thiab lwm yam). Ntxiv rau koj tus kheej li li cim npe, khaws cov ntaub ntawv-xaiv tus yam ntxwv tshwj xeeb. Siv ib qho ntawm cov ciam teb muab hauv/var/www/html/cov duab ua cov lus qhia rau qhov loj me.

Khoom siv

  1. Raspberry Pi
  2. Ib lub USB Webcam (tsis yog Rpi Cam raug cai)
  3. Ib lub vijtsam kov, lossis ib qho zaub rau Pi

Kauj ruam 1: Rub tawm los ntawm Github

Rub tawm qhov haujlwm @ https://github.com/raymondljones/photobooth rau hauv cov npe uas koj xaiv.

Kauj ruam 2: Unzip

Unzip (yog rub tawm ua zip) thiab mus rau txoj haujlwm npe los ntawm kab hais kom ua: 'cd project'

Kauj Ruam 3: Txhim Kho Koj Cov Ntawv Tso Cai

Ua hauv paus: `sudo bash`

Kauj Ruam 4: Khiav Quick Installer

Khiav qhov lus txib `sh quick-install.sh`

Pom zoo: