Cov txheej txheem:

Waterproof Raspberry Pi Powered Wifi DSLR Webcam rau Lub Sijhawm Lapses: 3 Cov Kauj Ruam (nrog Duab)
Waterproof Raspberry Pi Powered Wifi DSLR Webcam rau Lub Sijhawm Lapses: 3 Cov Kauj Ruam (nrog Duab)

Video: Waterproof Raspberry Pi Powered Wifi DSLR Webcam rau Lub Sijhawm Lapses: 3 Cov Kauj Ruam (nrog Duab)

Video: Waterproof Raspberry Pi Powered Wifi DSLR Webcam rau Lub Sijhawm Lapses: 3 Cov Kauj Ruam (nrog Duab)
Video: InfiRay Eye T3 Mini Thermal Scope | 1340 Metres Ultra-far Night Vision | Ultra Clear 2024, Kaum ib hlis
Anonim
Waterproof Raspberry Pi Powered Wifi DSLR Webcam rau Lub Sijhawm Lapses
Waterproof Raspberry Pi Powered Wifi DSLR Webcam rau Lub Sijhawm Lapses

Kuv yog tus nqus rau saib hnub poob los ntawm tsev. Ntau npaum li ntawd kuv tau txais me ntsis ntawm FOMO thaum muaj hnub poob zoo thiab kuv tsis nyob hauv tsev kom pom nws. IP webcams tau ua rau cov duab tsis zoo. Kuv pib nrhiav txoj hauv kev rov ua dua kuv thawj DSLR: xyoo 2007 Canon Rebel XTi uas tseem siv cov duab zoo. Cov lus qhia no suav nrog lub tsev:

  • tsis muaj dej Pelican Case enclosure
  • Raspberry Pi lub koob yees duab txhais thiab wifi uploader
  • yooj yim web server kom nkag tau cov duab los ntawm lub vev xaib

Muaj ntau phau ntawv qhia uas twb muaj lawm uas qhia yuav ua li cas txhawm rau tsim lub thawv thaiv dej rau lub sijhawm dhau mus, tab sis lawv zoo li tsom mus rau qhov teeb tsa uas tuaj yeem muaj sia nyob Hauv Cov Tsiaj Qus rau 3-4 lub hlis. Vim tias txoj haujlwm no nyob ntawm kuv lub tsev, qhov ntsuas sib txawv me ntsis: lub zog thiab wifi muaj ob qho tib si. Tsis tas yuav txhawj xeeb txog lub zog tso kuv lub sijhawm kom mob siab rau siv lub wifi txhawm rau rub daim duab tshiab rau hauv lub vev xaib txhua feeb tsis txhob rub lawv tawm ntawm daim npav tus kheej (zoo ib yam nyob rau ntau qhov kev teeb tsa timelapse ntev).

Nco tseg: txoj haujlwm no tau tsim thaum lub Cuaj Hlis 2017, thiab Cov Lus Qhia Qhia sai sai tom qab. Lub koob yees duab tau ua haujlwm ruaj khov 4 lub hlis kom txog thaum lub zog hluav taws kub tau hlawv Pi. Kuv pom daim ntawv sau hnub no thiab xav tias nws tseem yuav yog qhov lom zem nyeem rau tib neeg.

Kauj Ruam 1: Raspberry Pi ntes cov duab thiab xa lawv mus rau Lub Vev Xaib

Raspberry Pi ntes cov duab thiab xa lawv mus rau Lub Vev Xaib
Raspberry Pi ntes cov duab thiab xa lawv mus rau Lub Vev Xaib

Qhov no muaj qhov tsis paub tshaj plaws rau kuv, yog li kuv pib nrog ntawm no.

Thaum xub thawj, kuv txuas kuv li Rebel ntawm USB mus rau lub khoos phis tawj ntxiv thiab siv gphoto2 txhawm rau ntes cov duab ua haujlwm. gphoto2 tso cai rau koj ntes cov duab hauv JPEG lossis RAW thiab xa lawv tam sim ntawd mus rau lub khoos phis tawj tom qab ntes, uas yog qhov tseem ceeb kom nrawm xa daim duab mus rau lub vev xaib.

Kuv qhov pov thawj ntawm lub tswv yim yog cov ntawv nodejs yooj yim rau kuv Mac Mini uas tau ntes cov duab ib pliag ib pliag thiab xa lawv mus rau Amazon S3. Txhawm rau mus txog sab nraum zoov los ntawm Mini, Kuv yuav lub USB ntev tshaj plaws uas kuv tuaj yeem pom-tab sis nws ua tsis tau. Thaum kuv tau hnov tias Raspberry Pi yuav muaj txiaj ntsig zoo rau qee yam zoo li no, Kuv tsis muaj kev paub ntau dhau los siv lawv. Kuv nruab Raspbian thiab hla kuv cov ntiv tes thiab tshawb xyuas ntawm gphoto2 kev txhawb nqa rau Raspberry Pi - txhawb nqa tag nrho!

Kev rov ua dua tom ntej hu rau wifi-ua haujlwm Raspberry Pi los hloov Mac Mini tag. Hauv cov cwj nrag dav:

  1. Rub tawm qhov tseeb Raspbian duab
  2. Ntxig daim npav micro SD thiab unmount nws (`diskutil unmountDisk /dev /disk2`)
  3. Siv `dd` cov kab hais kom ua hluav taws xob sau cov duab rau daim npav (` sudo dd yog = 2017-09-07-raspbian-stretch.img ntawm =/dev/disk2 bs = 4m`-siv 30-60min)
  4. Kov ` / ssh` ntawm cov kab ke ua haujlwm kom qhib SSH ntawm khau raj (qhia ntxaws qhia rau SSH / Wifi)
  5. Nruab gphoto2 siv Raspberry Pi nruab tsab ntawv (siv 60-90 feeb)
  6. Teeb tsa txoj haujlwm cron kom khiav ib pliag ib pliag thiab siv gphoto2 txhawm rau thaij duab
  7. Siv cov curl hauv tib txoj haujlwm cron kom rub daim duab mus rau lub server yooj yim khiav ntawm Heroku

Cron teeb tsa yog yooj yim heev:

# m h dom mon dow hais kom ua

* * * * * bash /home/pi/capture-upload.sh 2 & 1 >> /home/pi/cron.log

#!/bin/tsoo

# capture-upload.sh teeb tsa -e gphoto2 --auto-detect --capture-image-and-download --force-overwrite curl -F "[email protected]" https:// user: pass@potrerohillcam. herokuapp.com/upload

Thaum thawj qhov pov thawj ntawm lub tswv yim daws kev xa mus rau S3, Kuv txiav txim siab nws yooj yim dua* txhawm rau ua kom yooj yim dab tsi Raspberry Pi tau saib xyuas thiab ncaws S3 thiab tom qab ua cov kauj ruam rau lub vev xaib yooj yim khiav ntawm Heroku. Qhov kev hais kom ua curl no siv cov duab ntes thiab tshaj tawm nws rau tus neeg rau zaub mov ntawd.

* los ntawm qhov yooj yim dua, Kuv txhais tau tias kuv mob ntawm kev tos pob khoom los sau ua ke ntawm Pi.

Kauj Ruam 2: Lub Koob Yees Duab hauv Cov Dej Tsis Muaj Dej Pelican

Lub Koob Yees Duab hauv Cov Khoom Tsis Muaj Pelican
Lub Koob Yees Duab hauv Cov Khoom Tsis Muaj Pelican
Lub Koob Yees Duab hauv Cov Dej Tsis Muaj Dej Pelican
Lub Koob Yees Duab hauv Cov Dej Tsis Muaj Dej Pelican
Lub Koob Yees Duab hauv Cov Dej Tsis Muaj Dej Pelican
Lub Koob Yees Duab hauv Cov Dej Tsis Muaj Dej Pelican

Tam sim no lub koob yees duab/RPi daws tau ntseeg tau tias muaj peev xwm thaij duab thiab tso lawv, Kuv pib ua haujlwm ntawm rooj plaub uas yuav ua rau txhua yam khoom siv hluav taws xob nyab xeeb thaum los nag.

Thauj cov duab ib-rau-ib thiab hover hla lub npov dawb teev rau kev piav qhia ntawm ib feem/kauj ruam.

Kauj Ruam 3: Teeb Ntiaj Teb Tiag

Teeb Ntiaj Teb Tiag
Teeb Ntiaj Teb Tiag
Teeb Ntiaj Teb Tiag
Teeb Ntiaj Teb Tiag
Teeb Ntiaj Teb Tiag
Teeb Ntiaj Teb Tiag

Kauj ruam kawg yog teeb tsa Pelican rooj plaub ntawm kuv nraub qaum thiab txheeb xyuas tias txhua yam ua haujlwm.

Pom zoo: