CLI utility to emulate a fleet of Tibbo devices sending data over MQTT
npm install tibulator!cli
Probably the shittiest package known to man
initialValue to inputs and sensorslocationID to topic/configInput is now RandomInput or ArrayInput depending on how you've configured the input (see example)cameraTopic, deviceTopic, and managementTopicshell
$ npx tibulator ./tibulator.json
`Configuration
Example of
tibulator.json
`json
{
"locationID": 1,
"tibboCount": 0,
"tibboTopic": "dev/unit",
"cameraCount": 0,
"cameraTopic": "dev/camera",
"firmwareVersion": "1.0",
"firmwareName": "Test",
"scanRate": 50000,
"sensors": [
{
"type": "HUMIDITY"
},
{
"type": "TEMPERATURE",
"emissionRate": 10000
}
],
"inputs": [
{
"name": "motion",
"probability": 0.5
},
{
"name": "door",
"values": ["opening", "closing", "open", "closed"]
},
{
"name": "armed",
"probability": 0.5,
"trueValue": "yes",
"falseValue": "no",
"initialValue": "yes"
},
{
"name": "alarm",
"values": ["DOOR", "MOTION", "HUMIDITY", "TEMPERATURE", "NORMAL"],
"initialValue": "NORMAL"
}
],
"mqtt": {
"options": {
"url": "mqtt://mqtt.vipbackend.com",
"username": "prostor-api",
"password": "password"
},
"rootTopic": "prostor-test"
}
}
``