it is possible, and very easy to, just add a "Day of Week/Month" trigger to your macro.I want to run a macro on a specific day, say every first Monday of the month at 7:00 PM. Didn't see any action to achieve this. Is it possible? If yes, how?
Using Macrodroid on Android 10.
mj
oh wait, you want every first monday of the month?? not just a fixed date? that will be harder let me think a bit..it is possible, and very easy to, just add a "Day of Week/Month" trigger to your macro.
One way would be to just add a "Day/Time" trigger.I want to run a macro on a specific day, say every first Monday of the month at 7:00 PM. Didn't see any action to achieve this. Is it possible? If yes, how?
Using Macrodroid on Android 10.
mj
That won't work. It trigger will fire on the day of the month and first M9nday.it is possible, and very easy to, just add a "Day of Week/Month" trigger to your macro.
Didn't see this before I replied to your earlier post. This should work. Thanks.One way would be to just add a "Day/Time" trigger.
Trigger:
Day/Time - monday 7pm
Actions:
set integer variable to - expression - [dayofmonth]
if integer variable < 8
run your actions
end if
this way it will just trigger every week and check if it's the first monday or not.
Another way, a bit simpler, would be to create a local integer variable, let's say 'LastMonth' to store the current month number and add constraint to your 'Date/Time' trigger. You would have something like that:Didn't see this before I replied to your earlier post. This should work. Thanks.
I had never used nor even seen this constraint.you can also use "Day/time" trigger (every monday at 7pm) with a "Day of the month" (day 1,2,3,4,5,6,7) constraint, this way you won't even need to use any variable.
Created this macro yesterday. Since it is past the first Monday of the month, seeded the variable LastMonth with a value of 8. Should work.
i'm not sure what you created, but the DayOfMonth constraint in that screenshot is NOT a variable, it is just a "Time/Date" - "Day of the month" constraint, if you properly recreated this you would not need any variable..Created this macro yesterday. Since it is past the first Monday of the month, seeded the variable LastMonth with a value of 8. Should work.
Thanks for the tip.
With the constraint 'Day of the month - 1 to 7' it's much easier. As @Pseudocyclic showed you, you even don't need any variable: the trigger will only fire at the selected day-time if the day of the month is within the selected range.Created this macro yesterday. Since it is past the first Monday of the month, seeded the variable LastMonth with a value of 8. Should work.
Thanks for the tip.
What a great idea @420 !you can also use "Day/time" trigger (every monday at 7pm) with a "Day of the month" (day 1,2,3,4,5,6,7) constraint, this way you won't even need to use any variable.
You're right!What a great idea @420 !
Thanks a lot !
And if we need to test the
2d sunday or other (monday,...),
The "Day of month" would be 8-14
Then 15-21 for the 3d sunday,
Then 22-28 for the 4d sunday,
Then 29-31 for the 5d sunday
Thats right ?
Thank you very much @Dm114.You're right!
I've made a small Action Block for my personal usage. If you're interested I could send it here on the forum or put it in the Template Store.
Here is the link to the Template Store:Thank you very much @Dm114.
My question was only a thought, without an immediate need.
I found this use very interesting and judicious, and I pushed the reflection a little further, hoping to be useful, in my capacity as a Beotian and an apprentice regarding macrodroid.
But your proposal will be useful to the community of macrodroid enthusiasts.
Thanks again