I’d like to make a piston that will start music. Can anyone help with that?


#1

1) Give a description of the problem
(PUT YOUR INFO HERE)

2) What is the expected behavior?
(PUT YOUR INFO HERE)

3) What is happening/not happening?
(PUT YOUR INFO HERE)

4) Post a Green Snapshot of the pistonimage
(UPLOAD YOUR IMAGE HERE)

5) Attach any logs (From ST IDE and by turning logging level to Full)
(PASTE YOUR LOGS HERE BETWEEN THE MARKS THEN HIGHLIGHT ALL OF THE LOGS SND CLICK ON THE </> ICON TO FORMAT THEM)

REMOVE BELOW AFTER READING
If a solution is found for your question then please mark the post as the solution.


#2

You’ll have to store one of your MP3 files on an Amazon S3 cloud( or any online storage cloud for that matter). And then you can do what I did.

When you put your play track command in,
just copy and paste the URL from wherever your song is stored…


#3

To take this a bit further. I have this setup for my outdoor Halloween music. It does the following

  1. It check for my lighting switch to see if it is turned on. If it is, it starts the music shuffle
  2. It selects the playlist. Halloween night is kid friendly Halloween songs, ever other day during October it plays the full list.
  3. It randomly picks a song, and check to make sure the same song is not playing 2 times in a row.
  4. It then plays the song.
  5. I have a second piston waiting for the status of my speaker to change to ‘stopped’ , when that happens it calls the main music piston and starts the shuffle all over again. Thus keeping the music playing.
  6. I have a third ( the main piston) that starts the music piston at sunset and stops it, and turns on random light scenes for my out door lighting, and also my lighted decorations, at 10pm every day in October.

Here are the two pistons, enjoy



#4

I have tried your Piston but for me every time I try to do this with echo dot as a player I get Echo to read the URL link and not play the mp3 file. Can you please help me with this?