Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
bacprop/README.md
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
52 lines (31 sloc)
1.27 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# BACprop | |
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: | |
```json | |
{ | |
"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` |