Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
en:sidebar:remoteapi:apiref:events:get [03/10/2016 13:44]
stan
en:sidebar:remoteapi:apiref:events:get [27/04/2021 12:40]
chdi [Expression format in expr param]
Line 44: Line 44:
 | filter1 | sensor ID | | filter1 | sensor ID |
  
-====Output flags====+=====Output flags=====
 ^ Flag ^ Descrition ^ ^ Flag ^ Descrition ^
 | 0x1 | Basic JSON: event start - event end | | 0x1 | Basic JSON: event start - event end |
Line 59: Line 59:
 =====Expression format in "​expr"​ param===== =====Expression format in "​expr"​ param=====
 ^Operator^Description^Example^ ^Operator^Description^Example^
-AND | trips&​ignition ​+{} selection intervals by the value of detalization ​| trips{s>100}, trips with speed > 100| 
-| %%|%% | OR | %%trips|ignition%% +| - | hyphenated custom interval | 1451953325-1451953525,​ from-to ​
-| ~ | NOT | trips&​~ignition ​+| %%|%% | connection custom intervals(1615849200-1615935599%%|%%1615935601-1616022000),​ 2 intervals from-to
-| [] | choise of sensor id | sensors[3], ​default first +| [] | sensor'​s ​id | sensors[3], ​empty means 1st sensor ​
-| () | brackets | %%trips&​~ignition&​(~sensors[3]|sensors[5])%% | +
-| - | hyphenated custom interval | 1451953325-1451953525&​trips&​ignition | +
-| {} | selection intervals by the value of detalization ​ | trips{s<​20}&​ignition | +
  
 =====Response===== =====Response=====
Line 162: Line 160:
  "​avg_speed":<​uint>,​ /​* average speed according to distance */  "​avg_speed":<​uint>,​ /​* average speed according to distance */
  "​distance":<​uint>,​ /​* GPS mileage in trip */  "​distance":<​uint>,​ /​* GPS mileage in trip */
- "​odometer":<​uint>,​ /​* distance for all trips */+ "​odometer":<​uint>,​ /​* distance for all trips during all history period ​*/
  "​course":<​uint>,​ /​* course */  "​course":<​uint>,​ /​* course */
  "​altitude":<​uint>​ /​* altitude */  "​altitude":<​uint>​ /​* altitude */
Line 308: Line 306:
  "<​sensor_id>":​{  "<​sensor_id>":​{
      "<​summary_param_value>:<​uint>", ​   /* summary, different for different detectors */      "<​summary_param_value>:<​uint>", ​   /* summary, different for different detectors */
 +      "​format":​ {
 + "​value":<​text>​ /​* formatted value, depends on sensor type and format */
 +     }
 +
  }  }
 } }
 </​code>​ </​code>​
Follow us on Facebook Gurtam Wialon Twitter Gurtam Wialon info@gurtam.com   |   Copyright © 2002-2024 Gurtam