Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Playing White Noise Track? #11

Open
JangoBritt opened this issue Feb 8, 2017 · 4 comments
Open

Playing White Noise Track? #11

JangoBritt opened this issue Feb 8, 2017 · 4 comments

Comments

@JangoBritt
Copy link

Hi @SmartThingsUle, Could this be used to play a simple White Noise track? I can't see anything like that in the Radionomy selection, but I'm wondering how the "Track" action of the Renderer Events SmartApp finds tracks to play, because I have nothing in the "Play this Track" section

@claytonjn
Copy link

I do exactly this. I write my own SmartApps for all of my automations, so in my SmartApp that handles my Night routine I simply call playTrack("URL TO WHITE NOISE TRACK"). I don't know if there are any existing SmartApps that allow you to specify the URL for the track directly.

@JangoBritt
Copy link
Author

JangoBritt commented Feb 8, 2017

Oh Clayton, my Clayton! any chance you'd be willing to share?

@JangoBritt
Copy link
Author

ooh. maybe I can do it with CoRE instead?

@claytonjn
Copy link

Well to be honest there's not much to share. The documentation in the IDE is the best place to start for writing a SmartApp. Basically you just subscribe to an event (trigger the action) and then in the handler for the event you add the playTrack code. You can see the code I'm using here, but it's written specifically for my use-case to minimize code and logic and maximize efficiency - it's not something you could just install and use as-is. You may well be able to use CoRE, I haven't ever used it. Like I said, I write my own SmartApps for everything, to me it's much simple and definitely more efficient for the platform.

I personally have the track hosted on backblaze, but it's a 12 hour long track and Dropbox blocked it some time during the first night / AWS was going to cost a couple dollars a month. You should be able to host it on an in-house server, I just don't have any existing web servers and didn't want to spin one up just for that. Plus I don't know if it would work internal or if you would have to connect externally, in which case it would use bandwidth up and down.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants