Macro to detect a change in the next scheduled alarm time and report when that will be to the user

Snurre

Well-known member
I am leaning toward modifying this macro (to detect the next scheduled alarm) to do the following if the alarm is scheduled for the morning (defined range) set a timer trigger for 60 seconds before to disable airplane mode.
Yeah, we are all different (fortunately) for me I choose the easy way
But Good luck 🤞
 

Abalsam

Active member
Yeah, we are all different (fortunately) for me I choose the easy way
But Good luck 🤞
If I were writing this for me, I might do it differently but I am writing this based on the user's request, what would minimize effort for them and the ready-made tools I already have available.

If nothing else, I see it as a challenge for me :) and thank you for wishing me luck :).
 

Abalsam

Active member
I have a working model of what I think the user asked for. I just need to document it and confirm. Either way, I should be able to post the macro tomorrow.
 

Snurre

Well-known member
I have uploaded the new script as a template. More details will be in a new thread.

Woow, what a macro
I hope you don't misunderstand me, I deeply respect your great work and I fully understand you about you mentioned it's a challenge, great

We all have different prefferences, skills and knowledge about macro's and many other aspects
In my (just mine) opinion this macro is a little difficult to modify, maintain an understand, I'm sure it works in many different scenarios

But as mentioned earlier, I think it can be done much easier, without any Plug-in and so on

As I understand the OP just want to wake up by music playing from Spotify (correct me if Im wrong) this could be done something like this
Screenshot_20220124_141424_com.arlosoft.macrodroid.jpg

But ok, I respect your work and I'm just an old man who likes to keep things simple
 

Abalsam

Active member
Woow, what a macro
I hope you don't misunderstand me, I deeply respect your great work and I fully understand you about you mentioned it's a challenge, great

We all have different prefferences, skills and knowledge about macro's and many other aspects
In my (just mine) opinion this macro is a little difficult to modify, maintain an understand, I'm sure it works in many different scenarios

But as mentioned earlier, I think it can be done much easier, without any Plug-in and so on

As I understand the OP just want to wake up by music playing from Spotify (correct me if Im wrong) this could be done something like this
View attachment 2154

But ok, I respect your work and I'm just an old man who likes to keep things simple
I understand. ;) this is why it is so important to understand or try to understand the underlying requirement.
 

tanutanu

Well-known member
Woow, what a macro
I hope you don't misunderstand me, I deeply respect your great work and I fully understand you about you mentioned it's a challenge, great

We all have different prefferences, skills and knowledge about macro's and many other aspects
In my (just mine) opinion this macro is a little difficult to modify, maintain an understand, I'm sure it works in many different scenarios

But as mentioned earlier, I think it can be done much easier, without any Plug-in and so on

As I understand the OP just want to wake up by music playing from Spotify (correct me if Im wrong) this could be done something like this
View attachment 2154

But ok, I respect your work and I'm just an old man who likes to keep things simple
If I were OP, just leave the macro as is. @Abalsam is so kind, serious and wants to respond any feedbacks:)
It is easy to add features whatever all other MD users want if they want to make their macro based on his macro.
All the macros on the store don't tend to be suitable for me. That's why I make a macro for myself even though I don't believe me and my macro is not reliable enough. I really use it for a while and adjust to my usecase, then share it if I think somebody might want.
 
Last edited:

Snurre

Well-known member
@Abalsam is so kind, serious and wants to respond any feedbacks:)
I couldn't agree more, he's doing a great job

All the macros on the store don't tend to suitable for me. That's why I make a macro for myself even though I don't believe me and my macro is not reliable enough. I really use it for a while and adjust to my usecase, then share it if I think somebody might want.
Metoo 😊
 

Abalsam

Active member
If I were OP, just leave the macro as is. @Abalsam is so kind, serious and wants to respond any feedbacks:)
It is easy to adding features whatever all other MD users want if they want to make their macro based on his macro.
All the macros on the store don't tend to be suitable for me. That's why I make a macro for myself even though I don't believe me and my macro is not reliable enough. I really use it for a while and adjust to my usecase, then share it if I think somebody might want.
Thank you for the kind words :)
 

Abalsam

Active member
Looking at other examples is how I learn. That is also why I try to fully document my code. My motto: too much is not enough! In terms of redundancy, I try to minimize that by doing things in blocks with or conditions ;). Not that I always succeed mind you but that is my goal.
 

tanutanu

Well-known member
Looking at other examples is how I learn. That is also why I try to fully document my code. My motto: too much is not enough! In terms of redundancy, I try to minimize that by doing things in blocks with or conditions ;). Not that I always succeed mind you but that is my goal.
ah, we all have different culture even coding:) I never deny others' so I just imagine they are irritable as I feel when I read somebody's;)
Furthermore, English is not my first language, so I think nobody want to read the tech document written by me, having many grammatical mistaks, below junior high level. No documentation is my goal:)
 

Abalsam

Active member
ah, we all have different culture even coding:) I never deny others' so I just imagine they are irritable as I feel when I read somebody's;)
Furthermore, English is not my first language, so I think nobody want to read the tech document written by me, having many grammatical mistaks, below junior high level. No documentation is my goal:)
The problem with no documentation at all is you may not even understand what you did/what you were thinking. Also, in cases like this where I am sharing the finished product, the point is to share technique and methodology as well (hence the documentation) :)
 

tanutanu

Well-known member
The problem with no documentation at all is you may not even understand what you did/what you were thinking. Also, in cases like this where I am sharing the finished product, the point is to share technique and methodology as well (hence the documentation) :)
That's why I respect guys like you:) I'm basically lazy, so I don't want to maintain both codes and documents if not forced. I write all I need to do as the project rules only when teaming up with other guys;)
 

Abalsam

Active member
This is also why I occasionally ask for help. If I can learn a new technique I can share it with others. The next thing I am looking at in my spare time is capturing the next alarm from Clock using autoinput plug in and translating that into seconds... So far I have captured the string and extracted the fields but having issues progomatically converting it. I have a plan but it's long and cumbersome at the moment so I am letting it marinade to see if I can come up with something more streamlined....
 
Top