PDA

View Full Version : Momentarily play sound, continue with the playlist - IoT/smarthouse



squim
2018-10-31, 14:20
Hi, I'm new here, but have been (and am!) a happy Squeezebox user for several years.
I am running LMS on an old computer (Linux).

As I buy more and more IoT devices, and since I have a squeezebox in every room of my house now, I was wondering if I could have the Radio, Touch, Boom or Controller to momentarily:

pause the playlist if it is playing
play a sound
continue the playlist as before


This would be enormously useful for me, as it would make it possible to make my house "talk" to me to inform me about alerts and all sorts of things. The same computer that is running LMS also has a 433 MHz receiver, and can read all sort of signals from switches, motion detectors, etc. By hooking into other scripts/programs, I would like to send "audible alerts" to selected rooms for instance.

Is it possible? I guess it can be done by either:

Use of a dedicated app
By using ssh and use the "aplay" command directly on the device
Using the API? I couldn't find a way to pause, play a file and then continue.


Anyone knows, or has ideas?

alfista
2018-10-31, 14:52
I've seen a few discussions on the forum over the years. A quick search only turned up this thread (https://forums.slimdevices.com/showthread.php?109058-Announcements-Doorbell-plugin), but I think there are more to be found.

squim
2018-10-31, 15:03
I've seen a few discussions on the forum over the years. A quick search only turned up this thread (https://forums.slimdevices.com/showthread.php?109058-Announcements-Doorbell-plugin), but I think there are more to be found.

Thanks! The answer from snaffler (https://forums.slimdevices.com/showthread.php?109058-Announcements-Doorbell-plugin&p=914139&viewfull=1#post914139) seems to be exactly what I am looking for.
I will try to contact him.

Paul Webster
2018-10-31, 15:07
Another one is
[Announce] LMS Announce - play announcements / notifications
https://r.tapatalk.com/shareLink?share_fid=813&share_tid=109096&share_pid=914364&url=https%3A%2F%2Fforums%2Eslimdevices%2Ecom%2Fsho wpost%2Ephp%3Fp%3D914364&share_type=t

squim
2018-10-31, 15:44
Another one is
[Announce] LMS Announce - play announcements / notifications
https://r.tapatalk.com/shareLink?share_fid=813&share_tid=109096&share_pid=914364&url=https%3A%2F%2Fforums%2Eslimdevices%2Ecom%2Fsho wpost%2Ephp%3Fp%3D914364&share_type=t

Perfect, thanks!

squim
2018-11-01, 01:38
Another one is
[Announce] LMS Announce - play announcements / notifications
https://r.tapatalk.com/shareLink?share_fid=813&share_tid=109096&share_pid=914364&url=https%3A%2F%2Fforums%2Eslimdevices%2Ecom%2Fsho wpost%2Ephp%3Fp%3D914364&share_type=t

This plugin seems to almost work, but is not quite ready for use (fails to play sometimes, fails to play the entire file sometimes, repeats the announcement multiple times if playlist loop is active, etc).
However, wouldn't it make sense to add "announce" to the supported http command in the core of slimserver, ref http://<server ip>:9000/html/docs/http.html?

Paul Webster
2018-11-01, 01:44
Probably will get the attention of the author of that particular plugin by adding a reply over in that thread