Giter Club home page Giter Club logo

adwisar-adapter's Introduction

Adwisar Adapter

Receive the sensor data from Kerlink and send them to Adwisar.

Dependencies

Usage

The first step is to clone this repo. The service can then be run either using npm or docker.

With NPM

This was tested using Node LTS (8.11.3) and [email protected]

For production mode:

# from the project root folder
npm install --production
npm start

For development:

# from the project root folder
npm install
npm run dev

With docker

# from the project root folder
# This will run the tests and build the project in production mode
docker build -t adwisar-adapter
# This will start the project on port 3000 by default
docker run adwisar-adapter

Environment

The app can be configured using the environment. The following variables are accepted:

  • ADWISAR_ENDPOINT (required): the URL of the ADWISAR instance.
  • PANEL1_DEV_EUI (default: 4883c7df30051526): The EUI of the device placed at Panel1
  • PANEL2_DEV_EUI (default: 4883c7df3005179e): The EUI of the device placed at Panel2
  • CAP1_DEV_EUI (default: 4883c7df3005148c): The EUI of the device placed at Cap1
  • HOST (default: 0.0.0.0): The host the http server will listen to.
  • PORT (default: 3000): The port the http server will bind to.
  • LOG_LEVEL (default: info, devDefault: debug): The log level, must be one of debug, info, warn, error or silent.

adwisar-adapter's People

Watchers

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