Skip to main content

Set sensor configuration

Please note

Sensor designer is an END OF LIFE PRODUCT

You do not need Sensor designer app to configure sensoring on your devices, you only need to set the appropriate sensor configuration

How to set the sensor configuration on devices?

1.x UI

You can set the Sensor configuration in the Right click menu of a Screen > Manage screen > Device properties > Set sensor configuration option.

  • This will open a modal where you can insert the sensor configuration into the text box.
  • On the bottom of the modal you will see a dropdown called Preset configuration, where you can choose presets to use the configuration box.

2.0 UI

Navigate yourself to Devices menu, select the device where you wish to set the sensor config

  • In the details tab, select settings, scroll down until you find the Sensor Config modal.
  • Click on the Edit button then insert the sensor configuration.
  • On the top of the modal you will see a dropdown called Preset configuration, where you can choose presets to use the configuration box.

Preset configuration

Empty

  • This will give you an empty string as a config.
{}

Default

  • This will give you a basic M5 sensor configuration
{"m5devices": [{"uid": "M5", "sensors": []}]}

Custom

  • This preset is used when you take the sensor config manually into the box, also if you use the Wallboard Sensor Designer, and send the config to the cloud, it will appear under the custom preset.
//Please note that, this config has no actual meaning in this tutorial, just to demonstrate the appeareance with the preset option.

{"services": [{"uid": "test", "type": "HTTP", "settings": {"port": 8181}}]}

Disabled

  • Enables sensors on android, but sensors won't receive the config
{"m5devices": [{"uid": "M5", "sensors": [], "type": "M5"}]}

Generic sensor configuration

Here is an example of a generic sensor configuration

{
"services": [
{
"uid": "",
"type": "GENERIC",
"connection": {
"baudrate": 9600,
"port": "0",
"dataBits": 8,
"stopBits": 1,
"parity": 0,
"flowControl": 1
},
"settings": {
"rules": [
{
"pattern": "(\\w\\d{3}\\w)\\[(\\d*)]\r\n",
"eventGroupIndex": 1,
"valueGroupIndex": 2
}
]
}
},
]
}