Android-SimpleTimeTracker icon indicating copy to clipboard operation
Android-SimpleTimeTracker copied to clipboard

[Feature Request] Automation: Query intents

Open marlov8 opened this issue 7 months ago • 4 comments

Add intents which returns values such as time tracked at x date of y activity

Examples: How much time i ran today Name of current activity Duration of current activity

My usecase for lifeup application,

  1. 5 mins before end of day, calculate time spend on xyz activity
  2. Convert time to seconds
  3. Calculate reward
  4. Send reward/penalty to LifeUp

marlov8 avatar Jul 28 '25 15:07 marlov8

Hello! If I'm not mistaken, intents are sent after some action, internal or external. Are you suggesting that there would be some intent that the time tracker app could receive and then send other intent with statistics data?

Razeeman avatar Aug 04 '25 10:08 Razeeman

Yes, so SimpleTimeTracker would require to always look for indents? i do not have knowledge about intents, i saw similar thing in LifeUp application, it use their own URL like lifeup://api/query_skill?id=1

marlov8 avatar Aug 04 '25 12:08 marlov8

Can you explain how these intents will be used? Will you use some automation app like Tasker/Macrodroid that would send query intent to the time tracker app, receive answer intent from the time tracker app, and then call lifeup api url?

Razeeman avatar Aug 05 '25 07:08 Razeeman

Yes, exactly this. My main usecase is to calculate reward & penalty for today, send them to LifeUp. And show data in widget v2 on fly.

In steps

  1. Send intent to SimpleTimeTracker to send data
  2. Store data in variable
  3. Calculate total seconds
  4. Calculate reward by dividing seconds eg. %WalkSeconds/150
  5. Send reward to LifeUp before end of day

& display them in widget by using tasker tick event. Widget looks like this.

Image

marlov8 avatar Aug 05 '25 13:08 marlov8