You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Jamie Munro d0d7bf88da README 1 year ago
assets Gallery implemented 1 year ago
gallery release ready 1 year ago
outlets release ready 1 year ago
routes release ready 1 year ago
README.md README 1 year ago
index.html Gallery implemented 1 year ago
package-lock.json Gallery implemented 1 year ago
package.json Gallery implemented 1 year ago
server.js Gallery implemented 1 year ago

README.md

Reptilecam

Setup

  1. Install Raspberry Pi OS on Pi and connect to internet
  2. Connect DHT11 to GPIO Pin 4
  3. Connect Outlet 1 LED to GPIO Pin 17
  4. Connect Outlet 2 LED to GPIO Pin 27
  5. Connect Outlet 3 LED to GPIO Pin 22
  6. Connect IN1, IN2, IN3 and IN4 of Stepper Driver to GPIO pins 6, 13, 19, 26 respectively
  7. Connect Stepper Motor to Stepper Driver
  8. Conect Webcam to USB port on Pi
  9. Mount Webcam on stepper motor

Installation

  1. Install Node.js and NPM (node package manager):
    sudo apt-get install node npm
  2. Install GStreamer and dependencies:
    sudo apt-get install libx264-dev libjpeg-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libgstreamer-plugins-bad1.0-dev gstreamer1.0-plugins-ugly gstreamer1.0-tools gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-qt5
  3. Run GStreamer at least once so it can complete setup:
    gst-launch-1.0
  4. Install phantomJS and dependencies from unofficial raspberry pi build here: https://github.com/fg2it/phantomjs-on-raspberry
  5. Clone the reptilecam repo to the pi (or copy the src directory):
    git clone https://git.jbm.fyi/jbm/reptilecam
  6. Install npm dependencies: npm install

Run

Run the server from the root of the git repo with:
sudo node server.js
Note that you must be root in order to use software PWM.

Access

You can access the reptilecam from port 3000. If the hostname of your pi is 'reptilecam' the adress will be http://reptilecam:3000.