You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP

github.com/braydend/backyardcamera

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
B

github.com/braydend/backyardcamera

v1.1.0
88

Supply Chain Security

100

Vulnerability

100

Quality

100

Maintenance

100

License

Version published
Created
Issues
0

Garden Photo

This app will take photos of the garden from a RaspberryPi and send them to s3.

Installation

Prerequisites

  • Set up RaspberryPi with fresh Raspbian on the network
  • Install fswebcam sudo apt-get install fswebcam

Cronjob

  • Copy the logPhoto file to /home/pi
  • Add AWS credentials to .env
  • Install the script in the cron table
    • sudo crontab -e
    • 0 6,12,18 * * * cd /home/pi && ./logPhoto > /home/pi/cron.log 2>&1

Server

  • Copy the server and server.service files to /home/pi
  • Install the service in systemd
    • sudo cp /home/pi/server.service /lib/systemd/system
  • Start service
    • sudo systemctl start server.service

To take a photo, go to {pi ip address}:8090/takePhoto

FAQs

Package last updated on 14 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts