Git Product home page Git Product logo

web3-groupe-7's Introduction

API

Routes

route description
/api/influx/ GET All data from sensors in all nodes.
/api/influx/filter?area={area} GET All data of sensors from a given area.
/api/influx/filter?groupBy={field}&sortBy={field}&desc={bool} GET All, group data by given field, and sort by given field. Desc is true by default, it can be omitted.
/api/influx/filter?area={area}&sensor={sensor}&sortBy={field}&desc=true GET All data from a given sensor and a given area. Sort the result by the given field. Desc is true by default, it can be omitted
/api/details/detectors GET All detectors in database.
/api/details/detector/:nodeId GET One detector by nodeId (121)
/api/details/extinguishers GET All extinguishers in database.
/api/details/extinguisher/:nodeId GET One extinguisher by nodeId

ENV

key value
INFLUX_TOKEN_API 1PxRhvLzcb1mxmWuRfCRjV0vbuxXKE5Qp_sZhrnpk8_kC4-2_vl8jOnhebdjzhbdjz60fTSSU5jNzzh6hkHuadQ==
PORT 8888
DB_URI 'mongodb+srv://{username}:{password}@fireforce-data.xl1rd.mongodb.net/{database}?retryWrites=true&w=majority'
JWT_SECRET "{SECRET}"

Constants

Areas

const AREAS = [
  "TERASSE",
  "EPHEMERE",
  "GRAPPIN",
  "ZAZZO",
  "CENTRE_SPORTIF",
  "BU",
  "LEFEBVRE_ROUCH",
  "LA_COMTEMPORAINE",
  "MAISON_DE_L_ETUDIANT",
  "RESTO_CROUS",
  "VEIL",
  "OMNISPORT",
  "GYMNASE",
];

Sensors

const SENSORS = ["Flexibility", "Proximity", "Luminosity"];

Format fields

const FORMAT_FIELDS = [
  "_time",
  "_value",
  "_measurement",
  "nodeID",
  "topic",
  "sensorId",
  "isActive",
];

web3-groupe-7's People

Contributors

kentoje avatar retroscilo avatar wdjennane avatar

Watchers

James Cloos avatar  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.