Difference between revisions of "Trigger: Spotify"

(Created page with "===<p><b>When is this trigger activated?</b></p>=== <pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;"> Triggered when Spotify events...")
 
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
===<p><b>When is this trigger activated?</b></p>===
+
===<p><b>About</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;">
Triggered when Spotify events occur).</pre>
+
Triggered when Spotify events occur.
 +
 
 +
In order for the Spotify trigger to function you must enable the 'Device Broadcast Status' option within the Spotify app's settings page.
 +
</pre>
  
 
===<p><b>Magic Text</b></p>===
 
===<p><b>Magic Text</b></p>===
Line 8: Line 11:
 
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
 
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
 
This action supports the use of magic text, you can use extracting it from some previously defined variable, using the (...) button.
 
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 [spotify_track_id], [spotify_artist], [spotify_album], [spotify_track], [spotify_length_s], [spotify_is_playing] </pre> [[Magic_text2#Apllication_Launched.2FClosed|More information on the associated magic text.]]
+
</pre>
<br>
+
* ''When this trigger is present, you can use more [...]'' ''[https://macrodroidforum.com/wiki/index.php/Magic_text#Spotify magic text]''
  
 
===<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 Usage 1</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>
 

Latest revision as of 17:45, 29 January 2024

About

Triggered when Spotify events occur.

In order for the Spotify trigger to function you must enable the 'Device Broadcast Status' option within the Spotify app's settings page.

Magic Text

This action supports the use of magic text, you can use extracting it from some previously defined variable, using the (...) button.
  • When this trigger is present, you can use more [...] magic 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.