Trigger for "night mode" macro after xx minutes

MrKappa

New member
Hello', I'm new of MD and I'm trying to understand the functions. I was able to activate the "night mode" macro (switch to airplane, stop music on players) at a defined time. But I would be more interested to activate it triggering with a xx minutes countdown and I could not understand how to activate it.
In example I go in Trigger / Date/Time / Stopwatch then I create a stopwatch which last 20 seconds, as example. I simply keep the macro active
I started the music player then I started Android clock countdown, then I understood that , if it reach 20 seconds it should "fire" so trigger the desider action but nothing happen, so no switch as airplane, music does not stop.
If I test the trigger in effect its working, but not with the countdown.
Please could anybody guide me? Thanks
 

Attachments

  • Screenshot_20220807-231012_MacroDroid.png
    Screenshot_20220807-231012_MacroDroid.png
    326.8 KB · Views: 13

Endercraft

Moderator (& bug finder :D)
The stopwatch is a MacroDroid feature that you can control and use to trigger macros (see screenshots).
Screenshot_2022-08-07-23-35-42-062_com.arlosoft.macrodroid.jpg
Screenshot_2022-08-07-23-36-07-936_com.arlosoft.macrodroid.jpg
IMG_20220807_233650.jpg
Screenshot_2022-08-07-23-37-01-372_com.arlosoft.macrodroid.jpg
IMG_20220807_233715.jpg
 

RSF

Well-known member
Also: if all you want is to wait for a while after activating your macro, before it starts doing its night mode actions (activating Airplane Mode, turning off music, and so on), you could just add a Wait Before Next Action action as the first action of your macro. It's not as flexible as a stopwatch, which can be started, paused, restarted, and so forth, across different macros, but might work for you:
Screenshot 2022-08-07 5.17.46 PM.png
 

MrKappa

New member
Thanks to both!!!
The wait for xx seconds at the beginning of the actions work well.
I see that your used the "Shortcut launched" which might be also ok for me or I may use a tile as fast command. I have created a tile with the same name as the macro, but if I enable it nothing happen. In the macro section I created a shortcut placed the home screen and also if I tap to this shortcut nothing happen.....
 

RSF

Well-known member
To use a tile, make sure to:
  • Configure the tile via the Quick Settings Tiles button on the main menu screen of MacroDroid (including enabling it, and choosing whether you want it to act like a button (which will run the macro whenever the tile is tapped) or a toggle (which turns the tile highlighting on and off, and runs the macro when the tile is highlighted)
  • Add the tile to your Android quick settings using your launcher to edit your quick tiles
  • Add a Quick Settings Tile trigger, configured to point to the new tile you've created
 

MrKappa

New member
Perfect! It's working fine and thanks again for your help!
The tile is remaining "activated" apparently but it does nothing until I press it then the trigger starts..
 

Attachments

  • Screenshot_20220808-203325_Nova Launcher.png
    Screenshot_20220808-203325_Nova Launcher.png
    165.6 KB · Views: 9
Top