Code Monkey home page Code Monkey logo

solarsunflower's Introduction

Solar Sunflower: A #TechCamp and Code for Philly Project

Installation

The Solar Sunflower is an educational tool used for wireless monitoring of green stormwater infrastructure. Environmental data is collected by analog sensors (soil moisture, temperature, light) embedded in the green stormwater infrastructure system (e.g., a rain garden). Data is sent to the Web and can be mined by students or citizens and analyzed via an online interface. The data provides important information about system performance, plant health and maintenance needs.

To initialize: rake db:create rake db:migrate rake db:seed

You might also want to POST some data points using thecurl request below.

login with [email protected]/changeme

Usage

To POST soil moisture data to the database, execute this curl request:

curl -v -H "Content-Type: application/json" -X POST -d '{"type":"soilmoisture", "data":{"collection_point_id":1,"collection_time":"2013-03-08 08:58AM","deptha":1,"depthb":1.2,"depthc":1.9}}' 'http://localhost:3000/dc/'


Each soil moisture data bundle belongs to a collection point, which belongs to a site. You can navigate through this heirarchy from the the home page.

Each site has a page that displayes collection points and soilmoisture data bundles. Add .json to the site URL get request to return a JSON object representation of that site's data, i.e. http://localhost:3000/sites/1.json

This can be used to generate graphs and visualizations.

solarsunflower's People

Contributors

danielkehoe avatar jasonblanchard avatar christophernies avatar kclough avatar

Watchers

Jearvon Dharrie avatar James Cloos avatar

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.