Tuesday, April 25, 2017

Building a Raspberry Pi Security Camer - Part 1

1. Download motionEyeOS (https://github.com/ccrisan/motioneyeos/releases). For example I have a Raspberry Pi 2 so I downloaded "motioneyeos-raspberrypi2-20161125.img.gz".

2. Next, figure out which volume your SD card is. Insert your SD or micro SD card. On macOS, run terminal and type:

>diskutil list
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *480.1 GB   disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:          Apple_CoreStorage                         479.2 GB   disk0s2
   3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:                  Apple_HFS Main                   *478.9 GB   disk1
                                 Logical Volume on disk0s2
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:     FDisk_partition_scheme                        *15.9 GB    disk2

   1:             Windows_FAT_32 NO NAME                 15.9 GB    disk2s1

3. If the card has already been partitioned and mounted then continue with this step. Run diskutil unmountDisk /dev[disk#]. For example: diskutil unmountDisk /dev/disk3 will unmount the SD card volume. Alternatively you can run Disk Utility and unmount the SD card volume.

4. Run:

>sudo dd if=motioneyeos-raspberrypi2-20161125.img of=/dev/disk2 bs=1048576

then wait a little while as the image is written to the SD card.

5. Put the SD card in the pi with a video camera installed and viola!

Next I'll post about some options for housings for the pi.

No comments:

Post a Comment