Code Monkey home page Code Monkey logo

camera's Introduction

Open Ocean Camera

This is the code for Open Ocean Camera hardware. This repository includes the scripts required for setting up the Raspberry Pi as well as the essential code-base required for operation of the camera and the communication with the mobile application.

Development Setup

First time setup

Update system packages

Make sure that all apt packages are already up-to-date

sudo apt update
sudo apt upgrade

Mounting the USB storage device on boot

The OOCAM uses external storage device connected via USB in order to function. However, to mount ExFAT filesystems it requires additional packages to be installed.

To install the required packages, use:

sudo apt-get install exfat-fuse
sudo apt-get install exfat-utils

Now, if the mount point /media/pi/OPENOCEANCA does not already exist, create it:

sudo mkdir /media/pi

To enable mounting the USB during boot, edit the file /etc/fstab:

sudo vim /etc/fstab

Add the mount point configuration in a new line:

LABEL=OOCAM   /media/pi/OPENOCEANCA   exfat   defaults,nofail   0   0

The nofail option is essential so that the boot does not fail if the usb device is not connnected, or fails to mount.

Install WittyPi

WittyPi installation scripts allows the system to load the deamon for graceful startups and shutdowns.

Run the installation by using:

wget http://www.uugear.com/repo/WittyPi3/install.sh
chmod +x ./install.sh
./install.sh

You might need root (using sudo) to run the commands above.

Reboot the RaspberryPi for the deamon to load.

Running the program on boot

To run the scripts on boot, add it to crontab using

crontab -e

Add the line to run a bash script on boot:

@reboot /home/pi/run.sh

The run.sh script executes the Python scripts as a background process.

camera's People

Contributors

utkarsh867 avatar manyaagarwal avatar

Watchers

James Cloos avatar  avatar

camera's Issues

Camera sleeps before first timeslot as well

When the schedule has been set on the camera, it goes to sleep already if the slots are in the future. The camera should sleep only if it's in the middle of slots so as to not confuse the user that it's not working.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.