Skip to content

moire-cs/fcat-sensor-server

Repository files navigation

FCAT-Sensor-Server

This repository contains the backend code for the Moiré project, which aims to automate the soil data collection process of FCAT's reforestation efforts.

image

Motivation

FCAT is an Equadorian NGO responsible for the conservation of a 650-hectare reserve in the tropical Andes. Last year, FCAT acquired a property spanning 42-hectares, with plans to use the land as a hub for forest restoration and research. Working with a large collaborative team across many institutions, FCAT monitors recovery outcomes for a wide range of ecological processes over the course of the restoration experiment. These efforts depend on daily collection of soil data, a process currently done by hand. Moiré aims to automate the data collection process (in addition to increasing its accuracy) with a mesh network of sensors distributed across the reserve, which measure and transmit data daily. This data will be accessible on an interactive website, also built by the Moiré team.

Configuration

To configure the database login, add a file "db.config.ts" to the "src/config" directory with the following (Edited for your mysql database)

export const dbConfig = {
    HOST: 'localhost',
    USER: 'root',
    PASSWORD: '123456',
    DB: 'moirelocal',
    dialect: 'mysql',
    pool: {
        max: 5,
        min: 0,
        acquire: 30000,
        idle: 10000,
    },
};

About

Backend code for controlling and monitoring Moiré sensors, including DB models for storing data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors