Difference between revisions of "Trigger: Spotify"

m
Line 10: Line 10:
 
It also has magic output text.</pre>
 
It also has magic output text.</pre>
 
* ''''' [https://macrodroidforum.com/wiki/index.php/Magic_text#Spotify Spotify magic text] '''''
 
* ''''' [https://macrodroidforum.com/wiki/index.php/Magic_text#Spotify Spotify magic text] '''''
<br>
 
 
 
===<p><b>Supported configurations</b></p>===
 
===<p><b>Supported configurations</b></p>===
  
 
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
 
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
* Playback started - Starts when spotify starts playing.
+
Playback started - Starts when spotify starts playing.
* Playback stopped - Starts when Spotify pauses or stops playback.
+
</pre>
* Song changed - Starts when any playback changes.
+
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
</pre><br>
+
Playback stopped - Starts when Spotify pauses or stops playback.
 
+
</pre>
===<p><b>Example</b></p>===
 
 
 
 
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
 
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
Speak the name of the next song only when the screen is off.
+
Song changed - Starts when any playback changes.
</pre><br>
+
</pre>
 
 
<pre style="background-color: #AC2424; color: white; border-radius: 10px; padding: 10px;">
 
Triggers
 
 
 
Spotify (Song changed)
 
</pre><br>
 
<pre style="background-color: #1665B0; color: white; border-radius: 10px; padding: 10px;">
 
Actions
 
 
 
Speak text
 
‘{spotify_track} - {spotify_artist}’
 
</pre><br>
 
<pre style="background-color: green; color: white; border-radius: 10px; padding: 10px;">
 
Constraints
 
 
 
Screen off
 
</pre><br>
 

Revision as of 23:41, 25 January 2024

When is this trigger activated?

Triggered when Spotify events occur.

Magic Text

This action supports the use of magic text, you can use extracting it from some previously defined variable, using the (...) button.
It also has magic output text.

Supported configurations

Playback started - Starts when spotify starts playing.
Playback stopped - Starts when Spotify pauses or stops playback.
Song changed - Starts when any playback changes.