Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tasker integration #26

Open
darkzbaron opened this issue Jan 6, 2025 · 7 comments
Open

Tasker integration #26

darkzbaron opened this issue Jan 6, 2025 · 7 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@darkzbaron
Copy link

Have you checked it on Project Progress ?
Yes

Is your feature request related to a problem? Please describe.
I would like to use Mindful's data (like focus sessions, screen time stats, app usage) in automation apps like Tasker, but currently there's no way to access this information externally. This prevents users from creating custom automations and workflows based on their digital wellness data.

Describe the solution you'd like
Add support for exposing Mindful's data to external apps through:

  • Android Intents that broadcast focus session states (started, paused, completed)
  • ContentProvider or similar API to access usage statistics
  • Custom intents that other apps can listen to for events like:
    • Focus session status changes
    • Screen time thresholds reached
    • App usage limits exceeded
    • Daily statistics updates

This would allow apps like Tasker to:

  • Trigger actions based on focus session states
  • Read usage statistics for custom notifications
  • Create advanced automations using Mindful's data
  • Build custom widgets or notifications

Additional context
This feature would greatly enhance Mindful's integration capabilities with the Android ecosystem. Similar apps like ActionDash and Digital Wellbeing provide APIs for external access. This would allow power users to create personalized productivity workflows while maintaining Mindful as their core digital wellness tool.

Some example use cases:

  • Automatically enable Do Not Disturb when starting a focus session
  • Create custom notifications based on app usage patterns
  • Trigger home automation based on digital wellness states
  • Export data to personal tracking systems
@darkzbaron darkzbaron added the enhancement New feature or request label Jan 6, 2025
@akaMrNagar
Copy link
Owner

That's a lot. It will take more than average to get it done. I think we need to implement more general purpose feature like long tracking period, notification scheduling and more before thinking about this. As you know i am the sole developer working on Mindful in my free-time.

I will need help to implement this. Rest assured i will implement this one day but right now is not the time 😔.

@akaMrNagar akaMrNagar added the help wanted Extra attention is needed label Jan 7, 2025
@darkzbaron
Copy link
Author

Thank you so much, I am trying to manage my time as I am myself underwater. Hope I can contribute. Also, I think there were rumours of a Digital Wellbeing API in Android 15 if that helps

@akaMrNagar
Copy link
Owner

I checked it out. They are only opening bedtime APIs. I don't think they will open usage and limit APIs. It would be cool though if third party apps can request to hide icon from app drawer😉.

Anyway thanks

@darkzbaron
Copy link
Author

While we're at it, I think the app does not list apps from my work profile

@akaMrNagar
Copy link
Owner

akaMrNagar commented Jan 11, 2025

As far as i know that is the purpose of profiles?

@darkzbaron
Copy link
Author

Here is the summary "The work profile creates an isolated and separately encrypted user profile on devices, allowing organizations to have complete control over work apps and data while keeping them separate from personal information" I personally use it on my device to separate some apps

@akaMrNagar
Copy link
Owner

akaMrNagar commented Jan 17, 2025

I will take a look at it but as far as i know profiles works as separate spaces for apps. One profile does not have idea about another profile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants