Giter VIP home page Giter VIP logo

matrix-app-config-helper's Introduction

Matrix Configuration Utility

Hello, welcome to Matrix Configuration. This module helps to verify, construct and validate MatrixOS Application configurations.

We use YAML to make configuration easy for humans.

https://en.wikipedia.org/wiki/YAML

Bugs

https://github.com/matrix-io/matrix-app-config-helper/issues

Questions

http://community.matrix.one

Documentation

http://matrix-io.github.io/matrix-documentation

Ecosystem Touchpoints

  • Matrix OS - Used to provide runtime variables, initialize sensors, integrations and watch for CrossTalk events.
  • Dashboard - Used to Layout Dashboards, Provide widgets with formatted & filtered data, manage control events, provide display formatting information for widgets
  • MXSS - Used to generate schemas and potentially configure vision services
  • App Store - Images, icons, name, description, version, keywords
  • MVF - Config Services describes CV algorithms and parameters.
  • CLI - Matrix CLI can be used to view and modify the Firebase configuration

Configuration Lifecycle

When a MatrixOS application starts, by default it loads the Firebase configuration. If there is no config saved, MatrixOS reads from app.matrix/config.yaml, then parses, validates and populates the Firebase record. The population step is important because it expands the configuration and makes it more accessible for humans to write powerful code with simple configuration commands. Functionally, this means What is saved in Firebase WILL be slightly different from what is in config.yaml. So don't be surprised.

Meta information is stripped from config when an application is installed to deviceapps/ in firebase.

When a dashboard loads an application, it loads the configuration from Firebase.

When the CLI changes a configuration variable, it will restart the MatrixOS application.

Currently, you must manually delete an old application configuration from Firebase before loading a new one from config.yaml. Soon, there will be an CLI invalidate command of some sort to make this easier. matrix config appname -x

Development Note

To integrate new configuration features properly, they should be validated here first, then changes should be made to the MatrixOS and dashboard.

Testing

To use this codebase to test if you have a valid Configuration

node index.js test config.yaml

These are also exposed via the read() and validate() methods.

Configuration

Documentation: http://github.io/matrix-io/matrix-documentation/Configuration

matrix-app-config-helper's People

Contributors

eighteyes avatar gordinh avatar diegoribero avatar patriciareyes avatar

Stargazers

Yann Cardon avatar Jorge Castillo avatar  avatar Diego Leite avatar Brian Sanchez avatar  avatar  avatar Leonardo Vernaza avatar

Watchers

 avatar James Cloos avatar  avatar Leonardo Vernaza avatar Alie Gonzalez-Guyon 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.