Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Senior Member
    Join Date
    Apr 2005
    Location
    Montreal, Canada
    Posts
    148

    Grandfather clock plugin, possible?

    I have an idea for a plugin that would actually involve playing some sounds without actually "playing" a track.

    My idea is for a grandfather clock plugin that would always "emit" (for lack of a better word) the "tick-tock" sound and would also play chimes every 15/30/60 minutes and would also count the hours when the SB is not playing music of course! I was planning on allowing for the linking to a display plugin (such as WeatherTime which I use) to handle displaying something on the SB's screen.

    My question is: is it possible to feed the Squeezebox with some short sound clips without actually going through the whole "play track" code? I've looked at the Squeezebox communication protocol and did not find what I was looking for. Before I embark on this journey, can anyone "in the know" either confirm or deny this possibility?

    Thanks,
    Daniel
    Last edited by dborn; 2008-02-05 at 11:42.
    Logitech Media Server Version: 7.9.2 - 1578996832 @ Tue Jan 14 12:15:02 CET 2020

    Squeezebox Classic wifi, 2 Squeezebox Booms, wifi & wired
    piCorePlayer V6.1.0 on a RaspberryPi 4, 2GB and Hifiberry DAC+

  2. #2
    Senior Member erland's Avatar
    Join Date
    Dec 2005
    Location
    Sweden
    Posts
    11,060
    I'm not completely sure, but I think I've read that SlimServer can only play stuff that is in the database and in the current playlist. So I suppose this means that you will need to go through the standard play/add code.

    The announcement script should give you some idea, it interrupts the currently playing song, plays an announcement sound, continue playing the original track.
    http://www.gwendesign.com/slimserver...m#announcement
    Erland Isaksson (My homepage)
    Developer of many plugins/applets

  3. #3
    Senior Member
    Join Date
    Jun 2007
    Location
    Gardner, MA - USA
    Posts
    124
    You could possibly use the "Heartbeat" sound embedded in SC7 to do the tick-tock sound. As for the chime sound and then maybe use the wind chimes sound again from the embedded sounds as the 15/30/45/60 chimes just running them longer each time

    Schatzy

  4. #4
    Senior Member
    Join Date
    Apr 2005
    Location
    Montreal, Canada
    Posts
    148
    Thanks for the reply guys,

    Unfortunately for now, I'm stuck with V6.5 as I'm running off a NAS but I guess I could take a peek at the V7 code to see how it's done. I've been digging deeper in the squeezebox & slimp3 comm protocols and I've found commands to feed a stream directly into the SB decoder. It's as low-level as it gets but I'll see if I get lucky figuring out how it works without getting the SB into an incompatible mode WRT the rest of slimserver and its main task of playing music...
    Logitech Media Server Version: 7.9.2 - 1578996832 @ Tue Jan 14 12:15:02 CET 2020

    Squeezebox Classic wifi, 2 Squeezebox Booms, wifi & wired
    piCorePlayer V6.1.0 on a RaspberryPi 4, 2GB and Hifiberry DAC+

  5. #5
    If you end up coding this plugin, I think you should also consider a 'roaring fire in background' option

  6. #6
    Senior Member
    Join Date
    Apr 2005
    Location
    Montreal, Canada
    Posts
    148
    ...or a tropical rainforest or waves crashing on a beach, etc.

    The nice thing about a clock is that you _expect_ the sounds to be repetitive... a 5 second snippet of a roaring fire in a loop will probably get on everybody's nerves real quick!
    Logitech Media Server Version: 7.9.2 - 1578996832 @ Tue Jan 14 12:15:02 CET 2020

    Squeezebox Classic wifi, 2 Squeezebox Booms, wifi & wired
    piCorePlayer V6.1.0 on a RaspberryPi 4, 2GB and Hifiberry DAC+

  7. #7
    Senior Member
    Join Date
    Jun 2005
    Location
    UK
    Posts
    385
    Quote Originally Posted by dborn View Post
    The nice thing about a clock is that you _expect_ the sounds to be repetitive...
    I was hoping for a full set of Westminster chimes - bongs every 15 mins ...

  8. #8
    Senior Member
    Join Date
    Apr 2005
    Location
    Montreal, Canada
    Posts
    148
    Indeed... with interchangeable chimes (Westminster, Whittington or St. Michael's, whatever, cuckoo clock!) and selectable period (off, 15, 30, 60 minutes) and probably a "turn off the chimes at night" option too.

    If I get this project in a decent state, I might enlist someone with an actual GF clock to send me some sound clips so as not to get on anyone's bad side by lifting some clips off the internet...

    Once I can get actual wav or mp3 clips playing at will, then I'll concentrate on the rest of the logic.

    Think about it, an SB with a decent amp would make a terrific high-tech grandfather clock! You could even have ol' Big Ben in your living room!
    Logitech Media Server Version: 7.9.2 - 1578996832 @ Tue Jan 14 12:15:02 CET 2020

    Squeezebox Classic wifi, 2 Squeezebox Booms, wifi & wired
    piCorePlayer V6.1.0 on a RaspberryPi 4, 2GB and Hifiberry DAC+

  9. #9
    Senior Member radish's Avatar
    Join Date
    Apr 2005
    Location
    Red Bank, NJ
    Posts
    5,052
    Quote Originally Posted by dborn View Post
    Think about it, an SB with a decent amp would make a terrific high-tech grandfather clock! You could even have ol' Big Ben in your living room!
    Would be good for New Year, not sure about any other day

  10. #10
    Senior Member
    Join Date
    Jun 2005
    Location
    UK
    Posts
    385
    Quote Originally Posted by dborn View Post
    If I get this project in a decent state, I might enlist someone with an actual GF clock to send me some sound clips so as not to get on anyone's bad side by lifting some clips off the internet...
    On first reading I thought "What's a girlfriend clock?".. :/
    Last edited by Khuli; 2008-02-08 at 02:25.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •