Dear Android Enthusiasts:
Just got myself an Android for work and started fiddling with Tasker. The goal consists of two parts, the first part is to send calls from a specific Contact Group ('Work') during certain times. Second, I want to let them through if they are persistent, i.e. call me X times within Y minutes.
The first part was a breeze to create. But the second part is a lot more complicated as I need to keep track of every caller and the amount of calls within Y time separately.
Currently the 'Profile' looks like this:
This is what task 'Test' looks like:
if %TIME < 6.15 & %TIME > 19.30
This works to block calls from the contact group 'Work' within the given timeframe.
Any suggestions on how to implement part 2? I was thinking of pushing the caller to a keyed array every time it gets blocked where the
%CNAME is the key and an integer is the value. Also add an action to check against the array every time I am called from the CG before I end the call to see if I have been called before. Finally, I would need to 'pop' every key from the array that hasn't been updated for Y minutes.