Converters

GET /api/doc/converters/#BooleanInteger

The BooleanInteger converter converts a boolean value (string or boolean) into a boolean integer.

Arguments: JSON object
 
  • input-type (boolean string or boolean) – data type of parameter to be converted
  • output-type (BooleanInteger : int) – data type of parameter after transformation
  • target-path (string) – absolute JSON path to parameter that will be converted
Status Codes:
GET /api/doc/converters/#StringDouble

The StringDouble converter converts a double value represented as string into double.

Arguments: JSON object
 
  • input-type (string) – data type of parameter to be converted
  • output-type (StringDouble : double) – data type of parameter after transformation
  • target-path (string) – absolute JSON path to parameter that will be converted
Status Codes:
GET /api/doc/converters/#StringEpochTime

The StringEpochTime converter converts a datetime represented as string into Unix Epoch time (long).

Arguments: JSON object
 
  • input-type (string) – data type of parameter to be converted
  • output-type (StringEpochTime : long) – data type of parameter after transformation
  • target-path (string) – absolute JSON path to parameter that will be converted
  • input-args (object) – input arguments for converter.
    • input-format (required) (string) – datetime format mask in input string
    • timezone (optional) (string) – timezone for sensor (default: WET – Western European Time)
Status Codes:
  • 500 Internal Server Error
    • error-code (int) – application error
      • 131 - an error occured during parameter conversion
      • 132 - invalid timezone
GET /api/doc/converters/#StringInteger

The StringInteger converter converts an integer value represented as string into integer.

Arguments: JSON object
 
  • input-type (string) – data type of parameter to be converted
  • output-type (StringInteger : int) – data type of parameter after transformation
  • target-path (string) – absolute JSON path to parameter that will be converted
Status Codes: