Skip to content

brzozia/rebar_pollution

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pollution monitoring

An OTP application made for Erlang and Elixir classes at AGH University.

Description

Pollution monitoring is a rebar3 project, which uses the OTP application pattern.
Version with Mnesia database.

Module src/pollution is an Erlang module whose task is to process and store data about air pollution. It also enables to store and process data about measuring stations.

Stored data about stations are:

  • station name
  • geographical coordinates

Stored measurements data contains:

  • geographical coordinates
  • date and hour of measurement
  • value
  • value type (eg. PM10, PM2.5, temperature)

Module gives functions to operate on data.

src/pollution_gen_server is a server for pollution module.

Elixir modules are used for loading data from csv to server. There are two types of loading data - one of them uses stream and other one not.

Common tests are included in the code.

Build

$ rebar3 compile

About

An OTP application made for Erlang and Elixir classes at AGH University. It process data about air pollution and measuring stations.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published