https://github.com/cloud8421/freyr
Proof of concept for a plant monitor application
https://github.com/cloud8421/freyr
Last synced: about 1 month ago
JSON representation
Proof of concept for a plant monitor application
- Host: GitHub
- URL: https://github.com/cloud8421/freyr
- Owner: cloud8421
- Created: 2014-09-07T10:10:22.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-09-20T22:10:58.000Z (over 11 years ago)
- Last Synced: 2025-03-02T13:26:27.206Z (over 1 year ago)
- Language: Erlang
- Size: 336 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Freyr
[](https://travis-ci.org/cloud8421/freyr)
Proof of concept application to monitor plant life.
## Components
- Arduino-based sensor and visual feedback (not done yet :pensive:);
- Server component to process data, send notifications, expose an api (Erlang).
## Installation
Assuming you have [Rebar](https://github.com/rebar/rebar) installed:
$ make deps
$ make compile
## Running tests
Unit tests are available in `/test`, while integration tests are available in `/itest`, respectively available
with the following commands:
$ make test
$ make ct
## Running the application
You can start the app by running `make start` and then type once inside the erlang shell):
(user@host)1> freyr_app:start([], []).
At this point, the listening tcp socket (to receive data from the Arduino) will be available at `localhost:5678`.
The json api will exposed at `http://localhost:9000`. Try .
## Sample data
You can run the `tester.rb` script to send some sample data:
$ ruby tester.rb
It should work with any Ruby >= 1.9.
## Release build
Not available yet.