Filtering by attribute "activity" from android client

Dany 10 months ago

Hi all!
I use android client on few devices, and I found attribute "activity" in log. It is possible to filter receiving position by activity = still?

May be it can make from computed attributes?

Anton Tananaev 10 months ago

Not directly, but you could use computed attributes to convert it to some attribute that you can use for filtering, like validity flag or accuracy.

Dany 10 months ago

Ok! Thanks! I make computed attibute and receive true or false. Then how can I use this attribute in filter?

Anton Tananaev 10 months ago

That's why I said you need to use something that has filtering. You can't filter by an arbitrary attribute.

Dany 10 months ago

Ok. I used attribute "Accuracy" for this purpose. When activity equal still then accuracy set to 1000 it is more that in configuration
{985DB217-35C6-444D-AAED-1A3C6D049470}.png

<entry key='filter.accuracy'>50</entry>

but it not filtered, it show with accuracy 1000

{985DB217-35C6-444D-AAED-1A3C6D049470}_.png

Anton Tananaev 10 months ago

What priority did you set? You need to set a negative value.

Dany 10 months ago

Perfect!!! All Works!!! Thanks!!! Need set negative priority!!!

Just another question, it is possible to get data from previous valid location in computed attributes?

Anton Tananaev 10 months ago

Why not? It should be possible.

Dany 10 months ago

Can you take example? For example I need previous battery level what operator should I use?

Anton Tananaev 10 months ago

You can use lastBatteryLevel. Make sure you enable it in the config though.

Dany 10 months ago

Thanks Very Mach!!! Where I can find full list of attibutes for using in Expression?

Dany 10 months ago

Oh!!! Sorry!!! All found!!! Thanks!!!