Fleetrun
Hecterra
NimBus
Other apps
Wialon for Android/iOS
Logistics
Wialon Local
Wialon Hosting
WiaTag
Configurator
LeaseControl
en
en ru es
Contents
Parameter Conversion
  • sensors
  • sensor_parameters

Conversion can only be applied to the parameters received directly from the device. The ways of applying this operation are described below.

Bitwise parameter control

Bitwise parameter control allows you to control a specific bit of a parameter. This operation is used if the device shows different data in one parameter: the first bit can correspond to the state of the alarm (on/off), the second to the state of the driver door (open/closed), the third to the state of the headlights, and so on.

To control, for example, the third bit of the parameter param199, type a colon and the bit number after its name:

param199:3

In this way, you can create several sensors on the basis of one parameter to control different bits.

The parameters of the double type are automatically converted into the int type, after which a bit is retrieved.

Conversion of text parameters

If a sensor has an expression parameter which contains a text parameter, then the text value is converted to a 53-bit integer. By default, this value is considered decimal. If the value belongs to another numeral system, enter a colon after the text parameter and specify this numeral system. Thus, the value will be converted to the decimal system automatically. For example, if the parameter text_param sends the value 100, then

text_param = 100

text_param:10 = 100

text_param:16 = 256

text_param:2 = 4

Determination of the day number in a year

You can convert the UNIX time of the message to the day number relative to January 1st. To do this, create a custom sensor with the parameter time:d.

For example, for 11:00:00 (UTC) March 28, 2017, the UNIX time is 1490698800. Therefore,

time = 1490698800

time:d = 87
If you find a mistake in the text, please select it and press Ctrl+Enter.
Thank you for your feedback!
Report a mistake
Text with the mistake Comment
Maximum 500 characters