Filtering by attribute "activity" from android client

Dany 2 days 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 2 days 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 2 days ago

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

Anton Tananaev 2 days ago

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

Dany 2 days 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 2 days ago

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

Dany 2 days 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 2 days ago

Why not? It should be possible.

Dany 2 days ago

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

Anton Tananaev 2 days ago

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

Dany 2 days ago

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

Dany 2 days ago

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