Giter Site home page Giter Site logo

pi_image_server's Introduction

Raspberry Pi USB Cam Server Scripts

Scripts for serving images captures with Raspberry Pi cam.

Install

The install script will take care of installing nginx.

./install.sh

From there, you'll need to add capture.sh to crontab.

crontab -e

Then add the following cron routine:

* * * * * ~/pi_image_server/capture.sh

pi_image_server's People

Contributors

gordonbrander avatar

Stargazers

Jake Hartnell avatar Mikhail Antonov avatar

Watchers

 avatar  avatar

Forkers

aka-z

pi_image_server's Issues

Suggestion: capture to ramdisk and symlink from /var/www/html/

I think you could save some SD card wear by doing this as part of the setup:

# Convert /tmp into a ramdisk
sudo sed -i '$ a tmpfs /tmp  tmpfs defaults,noatime 0 0' /etc/fstab
sudo reboot
# Make a symlink to the location where the image will get saved
sudo ln -s /tmp/img.jpg /var/www/html/img.jpg

Then doing this in the cron job:

sudo fswebcam --no-banner -d /dev/video0 -r 1280x1024 /tmp/img.jpg

There could easily be reasons I don't know about why this isn't a good idea, but it seems like it has potential.

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.