yuttadhammo / BodhiTimer

Elegant, minimalist countdown timer for Android
GNU General Public License v3.0
51 stars 8 forks source link

Automatically log meditation time on https://meditation.sirimangalo.org #15

Open lodenrogue opened 6 years ago

lodenrogue commented 6 years ago

It would be nice to have a feature that when the timer goes off it gives the option to log meditation time on https://meditation.sirimangalo.org

olastor commented 3 years ago

Maybe it would be possible to implement this the other way around and start a timer via link? The Meditation+ webapp is lacking a reliable timer because it's only running in the browser. If there was a feature to open Bodhi Timer and start the timer with a specific duration from within the web application, we could integrate Bodhi Timer in this way and improve the experience for Android users.

The use cases would be:

If the second option cannot be implemented very easily, it would for many cases also suffice if you can enable the repeat feature via url (since often the values for "walking" and "sitting" are the same).

lodenrogue commented 3 years ago

Sounds interesting. A few questions. Would the results then be logged in meditation plus after? Is there a way in android to request the app to open from a browser with given params (walking, sitting, duration, etc)?

olastor commented 3 years ago

Would the results then be logged in meditation plus after?

It would be logged before opening the timer. The sessions get stored on the server when you start a new session.

Is there a way in android to request the app to open from a browser with given params (walking, sitting, duration, etc)?

I think it should be possible, but I am also not very familiar with building Android apps. Perhaps this is the correct resource: https://developer.android.com/training/basics/intents/filters

lodenrogue commented 3 years ago

That looks right to me. Sounds like a great idea!

tzugen commented 3 years ago

Yes, I think it would be possible to register an URL scheme, which will open the app and start with a certain configuration. I can support pull requests if people want to implement it, but won't be able to do it myself in the coming time.

olastor commented 2 years ago

@tzugen Will 6.0.0 be released on Play Store?