[RESOLVED] Help with mp3 piston


#1

I am trying to have my Samsung speaker play a URL track when a switch turns on.

//
/* Let’s Go Hawks */
/
/
/* Author : pmjoen /
/
Created : 8/27/2017, 7:17:47 PM /
/
Modified : 8/29/2017, 9:50:37 AM /
/
Build : 3 /
/
UI version : v0.2.0e5.20170812 */
/**************************************************************/

execute
if
Garage Siren Light’s switch changes to on
then
with
Garage Speaker
do
Play track https://s3.amazonaws.com/smartsounds/sport-fans-let-s-go-blackhawks-let-s-go.mp3 at volume 70;
end with;
end if;
end execute;

I receive the following in the logs:

+1ms ╔Received event [Garage Siren Light].switch = on with a delay of 60ms
+120ms ║RunTime Analysis CS > 19ms > PS > 79ms > PE > 22ms > CE
+426ms ║Runtime (35838 bytes) successfully initialized in 79ms (v0.2.0e5.20170812) (423ms)
+427ms ║╔Execution stage started
+448ms ║║Comparison (enum) on changes_to (string) on = true (1ms)
+450ms ║║Cancelling condition #3’s schedules…
+451ms ║║Condition #3 evaluated true (12ms)
+453ms ║║Cancelling condition #1’s schedules…
+454ms ║║Condition group #1 evaluated true (state changed) (16ms)
+458ms ║║Cancelling statement #2’s schedules…
+797ms ║║Error while executing physical command Garage Speaker.playTrack([https://s3.amazonaws.com/smartsounds/sport-fans-let-s-go-blackhawks-let-s-go.mp3, 70]): groovy.lang.MissingPropertyException: No such property: protocol for class: physicalgraph.device.HubMultiAction
+801ms ║║Executed [Garage Speaker].playTrack (332ms)
+806ms ║╚Execution stage complete. (379ms)
+814ms ╚Event processed successfully (814ms)

Please help…


#2

Do you have a play and resume command?


#3

I stored the mp3 on AWS and then used the URL to play. My Samsung speaker required me to use the “Play and Resume” to get it to work.


#4

would you mind sharing your piston with me? Take a green snapshot of it? I have a Samsung R3 and I can’t get it to work…

Here’s what i have.


#5


#6

its’ not working for me. I imported your code and just changed it to my stuff.

your url starts with “https://s3.amazonaws.com/” correct?

I’ve created an AWS account and put some mp3’s in a “bucket”, but what am I doing wrong? Do I have to allow special permissions to the bucket?


#7

That is correct, make sure the file is public and not private.


#8

Ok I got it working. This is odd. Do you have an R3?

Play track and resume didn’t work for me, only play track.


#9

Mine is a Radiant 360.