Code Monkey home page Code Monkey logo

bacprop's Introduction

BACprop

pipeline status coverage report Code style: black

A MQTT to BACnet relay. Translating IoT data into virtual sensors on a bacnet network.

Usage

Running bacprop on a local network will allow IoT devices to send MQTT data representing sensor data to bacprop where the sensor will be represented as a BACnet object on the same network.

The sensor must send a JSON MQTT message on the channel sensor/<sensorId>. The JSON object keys will be translated to the properties of the BACnet Object, with the sensorId as the ID of the object.

A sensor message might look like:

{
  "sensorId": 2,
  "temp": 5.3,
  "co2": 502
}

bacprop will mark faultly any sensor object which it has no received data from after 10 minutes, as specified in the bacprop/service.py definition.

Developing

bacprop is developed using pipenv

pipenv install --dev will install all requirements for development to take place.

Testing

bacprop is 100% unit tested, and all changes should continue this.

pipenv run python -m bacprop can be used to test changes

pipenv run test will run all tests

Running

pipenv install will install all requirements for running

pipenv run python -m bacprop

Docker

Docker images have been provided for bacprop. Both an armv6 image and a x86 image exist.

License

MIT

bacprop's People

Contributors

freshollie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

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