Open JangoBritt opened 7 years ago
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.
Oh Clayton, my Clayton! any chance you'd be willing to share?
ooh. maybe I can do it with CoRE instead?
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.
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