GithubHelp home page GithubHelp logo

deceuvel-client's Introduction

De Ceuvel Client

This repository contains a client, as a npm package, to retrieve the data gathered from the De Ceuvel purifying park, located in the Netherlands.

Requirements

In order to use this, you need to have installed node.js and npm in your system.

There are two alternatives to use the client:
i) clone the repository
ii) install it as a dependency of another project

In case of i, execute the commands:

git clone [email protected]:SovereignNature/deceuvel-client.git
cd deceuvel-client
npm install

In case of ii, execute the command:

npm install git+https://github.com/SovereignNature/deceuvel-client.git

Client Functions

To use this client, first you have to import and create a client object:

const DeCeuvelClient = require("../index.js");      // If you cloned the client
const DeCeuvelClient = require("deceuvel-client");  // If you installed the client

var client = new DeCeuvelClient();

Air Data

This data comes from two sensors installed at De Ceuvel by the company Soops.nl. One was installed earlier last year (2021) and the second one only recently (2022). These sensors measure air quality by sensing the presence the following gases and pollutants: CO2, SO2, CO, NO2, O3, NO, NH3 and particulate matter PM2.5 and PM10.

Air Samples

Retrieve the current data from the sensors trough our client:

var samples = await client.getAirData();

Historical Air Samples

Retrieve a set of samples that were periodically recorded (there is a time gap in the data due to sensor malfunction):

var samples = await client.getHistoricalAirData(options);

where options is an object with the following optional fields:

{
    amount: <Integer>,        // Max amount of samples to retrieve
    start: <ISO Date String>, // Retrieve samples with timestamp greater or equal than start
    end: <ISO Date String>    // Retrieve samples with timestamp lower or equal than end
}

Soil Data

Soil Samples

Manually mapped and collected by the DeCeuval voluntary biologists since the start of the project back in 2018. Maps and raw data available for dowload here.

Get soil samples:

var samples = await client.getSoilData(options);

where options is an object with the following optional fields:

{
    amount: <Integer>,        // Max amount of samples to retrieve
    location: <String>,       // Retrive only the samples of this location
    start_year: <Integer>,    // Retrieve samples with year greater or equal than start_year
    end_year: <Integer>       // Retrieve samples with year lower or equal than end_year
}

Soilmania Parameters

This data comes from the Soil Life Sensor from Soilmania we recently installed in the De Ceuvel park. It measures soil temperature, Soil moisture, pH, Oxygen, Soil nutrients. This information together gives you very holistic insight into soil health and the health of the ecosystem that depends upon it (i.e., trees, bacteria, and animals).

Get soilmania parameters:

var samples = await client.getSoilmaniaParametersData(options);

where options is an object with the following optional fields:

{
    amount: <Integer>,        // Max amount of samples to retrieve
    start: <ISO Date String>, // Retrieve samples with timestamp greater or equal than start
    end: <ISO Date String>    // Retrieve samples with timestamp lower or equal than end
}

Soilmania Element Availability

Get soilmania element availability:

var samples = await client.getSoilmaniaElementsData(options);

where options is an object with the following optional fields:

{
    amount: <Integer>,        // Max amount of samples to retrieve
    start: <ISO Date String>, // Retrieve samples with timestamp greater or equal than start
    end: <ISO Date String>    // Retrieve samples with timestamp lower or equal than end
}

Examples

The directory test contains a set of examples on how to use this client and its functions. To run an example, simply execute the command:

node test/<TEST_FILE>.js

deceuvel-client's People

Contributors

andreffrosa avatar cerealkill avatar

Stargazers

Robin Lehmann avatar Marlene Marz avatar

Watchers

 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.