Android clock/timer - Deactivate/Activate

Post your questions and help other users.

Moderator: Martin

Post Reply
User avatar
chrisonline
Posts: 12
Joined: 22 Jan 2018 18:11
Contact:

Android clock/timer - Deactivate/Activate

Post by chrisonline » 06 Aug 2018 07:04

After the newest Android clock update it is now possible to play a Spotify playlist to wake up.
So again I am investigating if it is possible now to "activate/deactivate" the clock/alarm with Automagic?

I want to disable the clock/alarm on holidays or if it is a legal holiday.
cu chrisonline
-----------------------------
http://www.colapps.net

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Android clock/timer - Deactivate/Activate

Post by Desmanto » 06 Aug 2018 15:55

I use Automagic too much that sometimes I create a simple alarm just in Automagic :lol: Later I add so many things and it became a flow already.

Automagic don't have the method yet to delete or enable/disable certain alarm. We need plugin to do that, and I think it is also no efficient.

- Why don't just create the alarm directly in Automagic. To set the alarm, just use Time, and set the work days as the trigger, set the time.
- Then use query content provider to check if today is holiday, probably such as in this thread : viewtopic.php?f=3&t=7210 or here with reverse logic : viewtopic.php?f=5&t=7172
- If the query says there is a holiday, then stop there. If not holiday, continue to main branch.
- The main branch is simply Open URL in browser, choose Spotify and use the link you copy from Spotify playlist (Copy URI). Or if it doesn't work, use Start Activity with the playlist as the URI.

Beware of using certain playlist or favourites songs as the alarm. Several weeks later, you will hate it. :evil: So to randomize the songs, it is also possible you create several playlist. Copy URI of all these playlist, put in a list type Glovar. Later you can use getRandomElement() to retrieve random list and use it as the alarm. You probably still will hate the playlist, but takes a very long time.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

User avatar
chrisonline
Posts: 12
Joined: 22 Jan 2018 18:11
Contact:

Re: Android clock/timer - Deactivate/Activate

Post by chrisonline » 06 Aug 2018 21:47

Thanks. Good idea with Alarm in Automagic. ;-)

Anyway I would prefer to use the Alarm Clock app from Google.
You talked about a plugin can do that. Can you tell me which one?
cu chrisonline
-----------------------------
http://www.colapps.net

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Android clock/timer - Deactivate/Activate

Post by Desmanto » 07 Aug 2018 16:36

The plugin use its own alarm data, AFAIK it is not using the alarm clock from google. So same limitation. It is alarmpad, but can't find it anymore in playstore, probably in xda only.

Setting up the alarm takes some time, including choosing the spotify list. I would still prefer to do it automagic directly, more extra setup, but way much more customization can be done.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

Annie_Yazbeck
Posts: 7
Joined: 12 Oct 2018 10:31

Re: Android clock/timer - Deactivate/Activate

Post by Annie_Yazbeck » 26 Sep 2019 03:04

Like to make your Android clock and timer? Spotify could be one of the best music sources that you can find favorite music to set as a clock.
So how to use Spotify music as an alarm? You can get the help of Google Clock or use Spotify playlist converter to convert Spotify music to MP3, FLAC, AAC and then transfer them to Android phone to make them as your Android clock with ease.

Post Reply