Quantcast
Channel: flespi forum
Viewing all articles
Browse latest Browse all 881

[Changelog] flespi analytics

$
0
0

We enabled recently added geofences in analytics.

In order to activate them you need to assign geofences to the calculator either directly or via groups.

You have 2 options to use geofences in calculators.

Option 1

Use them to select intervals instead of explicitly defined geofences in calculator configuration:

Option 2

You may access the status of the device relative to geofence in any expression within the calculator. We implemented 2 new functions that you may use:

  • geofence() - will return the name of the geofence with the highest priority device is in now or null otherwise.
  • geofences() - will return the array of names device is currently in now.

You may enhance that usage by specifying other fields (or even a few fields) to return from the active geofence by using optional argument to these functions: geofence("metadata.max_speed") will return the maximum speed defined by geofence’s metadata.

For example to detect over-speeding intervals based on the maximum speed defined in geofence’s metadata you may use the following interval selector configuration:

Or if you want to count how much time vehicle moved above specified speed limit for the geofence you can use this inside interval counter as well:

Keep in mind that this functionality is not available in non-automated on-demand analytics mode - e.g. when you calculate intervals using REST API.


Viewing all articles
Browse latest Browse all 881

Trending Articles