Giter Site home page Giter Site logo

mengivakt's Introduction

About

Scripts and config for a raspberry pi with a camera to monitor

  • Temperature via w1 ds18b20 sensors and log to thingspeak
  • take a photo and possibly upload to dropbox

(c) 2017 Hrafnkell Eiríksson

Setup

  • Set up incrond (if you want to upload to dropbox)
  • Set up daemon so raspistill can be run as a daemon from crontab
  • add to crontab from the crontabfile
  • set up a ramdisk by adding to fstab
  • set up a few python3 modules
    • ephem (for calculating if sun is above/below horzon)
    • dropbox (for uploading images)
  • Install pagekite (http://pagekite.net) and expose your webserver and ssh (if you want to)
  • symlink /var/ramdisk/pic.jpg to /var/www/html/pic.jpg
  • symlink the index.html file in this repository to /var/www/html/index.html
  • Add to rc.local to turn off the rpi leds that might interfere with long exposure times
echo none > /sys/class/leds/led0/trigger
echo none > /sys/class/leds/led1/trigger
echo 0 > /sys/class/leds/led10brightness
echo 0 > /sys/class/leds/led1/brightness
  • Create a configUpload.py file with the following configuration
access_token='YOURDROPBOXTOKEN'
thingspeakkey='YOURTHINGSPEAKKEY'
obs_lat, obs_lon = 'YOUR.LATITUDE','YOUR.LONGDITUDE'

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.