Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/davejlong/growbot
Code for my Rasberry Pi grow bot
https://github.com/davejlong/growbot
Last synced: 6 days ago
JSON representation
Code for my Rasberry Pi grow bot
- Host: GitHub
- URL: https://github.com/davejlong/growbot
- Owner: davejlong
- Created: 2014-04-23T17:08:43.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-08-06T18:11:43.000Z (over 10 years ago)
- Last Synced: 2024-04-14T18:35:10.789Z (7 months ago)
- Language: CSS
- Size: 391 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Growbot
Growbot is your friendly gardening monitor. It's built in 3 parts: Sensor array, Collection API and web client.
## Sensor Array
The sensor array, found in `./arduino/growbot` is an Arduino based program with components for reading data from sensors, connecting to the collection API over a network and logging data to an on board SD card.
## Collection API
Growbot's collection API is a basic REST API build with [Sinatra](http://sinatrarb.com) and [CouchDB](https://couchdb.apache.org/). It's built to be very lightweight and run on a Raspberry Pi board.
### Tracking endpoint `POST /track`
The tracking API endpoint collects data sent from the _Sensor Array_. It accepts standard key/value pairs in the post body (ex. `light=325&moisture=562`) and submits them, with a timestamp, to the database in CouchDB
### Metrics endpoint `GET /`
You can read metrics from the metrics endpoint, which will return an array of metrics collected through the _Tracking Endpoint_.
## Web Client
The web client is a friendly to use display of metrics data collected from the _Sensor Array_. It's built with Angular JS and can be found in `./public`. It's a complete application on it's own and can run seperately from the _Collection API_.