Adafruit IO Camera

Italics=Code

  1. Connect camera to camera port on the right side of raspberry pi. (Blue side of the wire should face the USB ports.)
  2. Open up the terminal and type in these lines:
    pi@raspberrypi:~ $ sudo su -
    root@raspberrypi:~ # apt-get remove nodered -y
    root@raspberrypi:~ # apt-get remove nodejs nodejs-legacy -y
    root@raspberrypi:~ # apt-get remove npm -y # if you installed npm
    root@raspberrypi:~ # curl -sL https://deb.nodesource.com/setup_5.x | sudo bash -
    root@raspberrypi:~ # apt-get install nodejs -y
    root@raspberrypi:~ # node -v
    (Should say)v5.12.0
    root@raspberrypi:~ # npm -v
    (Should say)3.8.6
  3. Then type in terminal:
    sudo apt-get install -y imagemagick sudo npm install --global --no-optional forever forever-service adafruit-io-camera (remember to open a new terminal)
  4. Then type in terminal:
    adafruit-io camera config --username USERNAME --key KEY
    USERNAME means your Adafruit IO username and KEY is your key.
  5. Log on to Adafruit IO and create a feed named “camera_feed”. Then go into that feed and change feed history to OFF by clicking the Gear and selecting “OFF”.
  6. Then create a dashboard named “camera” and select “camera_feed” as the feed. Then create a camera block inside, you can name this whatever you want.
  7. Finally, go into terminal and type:
    adafruit-io camera start -f camera_feed -m false -r 2
    It should display a picture of a flower and some text.
  8. Go back to your camera dashboard and you should receive an image every two seconds. (This length can be changed by altering the end number, in this case the 2.)

This lesson was adapted from: https://learn.adafruit.com/cloud-cam-connected-raspberry-pi-security-camera/adafruit-io and that page has more adaptations and very detailed instructions for this project. For help see Bryn or the webpage.