Git Product home page Git Product logo

clever-harvest's Introduction

clever-harvest

Build Status

Gather environmental metrics from an array of sensors connected to a Raspberry Pi deployed via balenaCloud.


Metrics

An image is captured at regular intervals annotated with the following metrics:

  • A UTC timestamp
  • The relative humidity
  • The temperature
  • Whether or not the soil contains moisture

The image is captured entirely in memory before it is shipped to s3. The metrics data is appended to a google sheet.

Hardware

Configuration

The following environment variables are required:

Name Purpose
CLEVER_HARVEST_DHT22_PIN A GPIO pin
CLEVER_HARVEST_GOOGLE_API_CLIENT_SECRET_JSON Your Google API credentials as JSON
CLEVER_HARVEST_IMAGE_ROTATION Degrees to rotate the captured images
CLEVER_HARVEST_MOISTURE_PIN A GPIO pin
CLEVER_HARVEST_S3_ACCESS_KEY_ID An S3 access key ID
CLEVER_HARVEST_S3_BUCKET_NAME An S3 bucket name
CLEVER_HARVEST_S3_SECRET_ACCESS_KEY An s3 secret access key
CLEVER_HARVEST_TITLE The title of the google sheet
CLEVER_HARVEST_WEB_PASSWORD Password to access the dashboard

Deployment

Devices running this software managed with balenaCloud.

You'll need to configure an SSH key and add the balena git remote to your repository.

Then you can deploy to all devices in the fleet with a simple git push:

git push balena master

Continuous Integration

Master builds of this repository are automatically deployed with TravisCI.

See the .travis.yml configuration for more details on how this is automated.

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.