[Feature Request] Automation: Query intents
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,
- 5 mins before end of day, calculate time spend on xyz activity
- Convert time to seconds
- Calculate reward
- Send reward/penalty to LifeUp
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?
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
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?
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
- Send intent to SimpleTimeTracker to send data
- Store data in variable
- Calculate total seconds
- Calculate reward by dividing seconds eg. %WalkSeconds/150
- Send reward to LifeUp before end of day
& display them in widget by using tasker tick event. Widget looks like this.