A library for getting metrics from different sensors when brewing beers.
This will hopefully run on a Raspberry Pi.
Main API, starts the application beerosophy_app.erl
Application.
Starts the applications main supervisor beerosophy_sup.erl
Main supervisor.
Starts beerosophy_server.erl
, beerosophy_metrics.erl
,
beerosophy_python_sup.erl
, and beerosophy_ticker_sup.erl
Starts the webserver, Cowboy.
Reads the pylons.conf
and starts them.
One ticker
is started for each metric.
At a tick (representation of a given interval) the measurements are gathered and then stored for a specific sensor metric.
Cowboy rest API for getting to know some metrics like number of errors, etc.
NOT INVENTED YET. Might not even be needed.
Cowboy rest API for attaching and handling sensors.
Communicates with beerosophy_python_sup.erl
and beerosophy_python.erl
.
Supervises beerosophy_python.erl
.
Start and supervise Python scripts. One process for each script.
Holds Cowboy routes.
Holds Python scripts that should be automatically supervised.
You will need rebar3.
$ rebar3 compile