Announcement

Collapse
No announcement yet.

Alarm to interrupt what is currently playing

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • Alarm to interrupt what is currently playing

    From a quick test .... if you are already playing something when the alarm time is reached then the alarm is skipped.

    At the moment I try to tune in to a radio station for particular news programmes.
    So - for example - I would set an alarm for BBC Radio 4 at 17:00 Monday-Friday.

    If there was a setting for each alarm that had an "interrupt current output" (can't think of the right wording) then it could see if there is something playing at present ... Pause ... put the alarm at the Now Playlist slot (shuffle everything else down by 1) and Resume.

    If it is a playlist that is scheduled then I guess it has to replace the current playlist as a whole.

    Then at the end of the alarm duration (which would be the programme length in my case) it would move to next item in playlist.
    If I have heard enough of the news then I simply hit Next to get back to what I was listening to before (with that track restarting).

    Alternative approach would be to put it as the Play Next item and then do a Next

    Alarm could skip if the scheduled item is the same as is already playing.

    I have not looked at the code yet but am willing to give it a try. Wanted to get some feedback first.
    Paul Webster
    Author of "Now Playing" plugins covering Radio France (FIP etc), PlanetRadio (Bauer - Kiss, Absolute, Scala, JazzFM etc), KCRW, ABC Australia and CBC/Radio-Canada
    and, via the extra "Radio Now Playing" plugin lots more - see https://forums.slimdevices.com/showt...Playing-plugin

  • #2
    Why not! the same mechanism could also be used for a global notification system, eg connected to doorbell, alarm system, paging...

    Comment


    • #3
      Originally posted by Gobuleberbu
      Why not! the same mechanism could also be used for a global notification system, eg connected to doorbell, alarm system, paging...
      This has been asked a few time before and I think there has been a solution created Ur is different - you want to interrupt a stream and go back to playing - the OP wants to start a new stream

      A quick search found this one thread.

      Comment


      • #4
        Originally posted by bpa
        This has been asked a few time before and I think there has been a solution created Ur is different - you want to interrupt a stream and go back to playing - the OP wants to start a new stream

        A quick search found this one thread.
        https://forums.slimdevices.com/showt...-announcements
        Thanks I’ll give it a look! [emoji4]

        Comment


        • #5
          Oops - I thought I was in a continuation of another thread about alternative to alarm.

          The idea of breaking current paying stream to play something and return has been asked many times - the first I recall was a query about pager or email notification
          With HA and text to speech it appears very so often but each time - it sort of runs into the sand - possibly because each "source" is different . A nice idea but not enough people seem to have a great need for it.
          Another HA related thread.


          WRT Paul's idea of breaking currently playing stream to play an alarm. IIRC the current behaviour (i.e can interrupt currently playing stream) arises from alarm playing internet streams having to be reliable. A lot of people used alarm to wake up to an internet stream and initial implementation of alarmjust tried once to play the stream but if stream broke or didn't set up - no alarm and so as an alarm not very useful. So alarm was changed to repeat set up - in fact if you are very quick and dismiss an alarm - LMS will restart the stream thinking the stream started for the alarm has broken.

          Comment


          • #6
            There also is LMS Announce from [mention]Roland0 [/mention]
            It interrupts the current stream, plays an audio file or TTS, and continues afterwards.

            Comment


            • #7
              Still a sort of paging system would be nice. Multiple applications come in mind like, diner ready, doorbell, wakeup alarm, fire alarm etc.
              SqueezeBoxes: 1x Transporter (Living room) 1x SB2 (shed), 1x Radio (Kitchen), 1x Boom (Dining room), 1x piCorePlayer (jacuzzi), 1x piCorePlayer (Garden) 1x OSMC + Squeezelite (Movie room), 1x Touch (Study 2), few spare unit's (SB2, SB3, Boom, Touch)
              Server: LMS on Pi3B+ 8.1.2 on PcP 7.0.1
              Network: Draytek, Netgear Smart Switch 24p, Ubiquiti PoE, 3x Ubiquity

              Comment


              • #8
                Is it possible to set the duration of an alarm?
                My Squeezebox always just shuts off by itself after about an hour. Which is annoying.
                RadioFeeds UK & Ireland.. an up-to-date radio directory for your Squeezebox/Transporter/UE Smart Radio.. available from the mysqueezebox.com App Gallery.
                Bonus: our RadioFeeds LMS plugin also lists AAC and the BBC's high-quality HLS streams on top of what's available in our MSB app.
                Now with over 1000 registered users, it's available for Logitech Media Server (and Squeezebox Server, SqueezeCenter and SlimServer).
                Click for more info: http://www.radiofeeds.co.uk/squeeze

                Comment


                • #9
                  Originally posted by vinnielo
                  Is it possible to set the duration of an alarm?
                  My Squeezebox always just shuts off by itself after about an hour. Which is annoying.
                  Under Settings/Player/Alarm Clock you will find "Alarm Timeout (in minutes)". I have mine set to 150 minutes but if you set it to zero the alarm will play until stopped manually.

                  Sent from my Pixel 3a using Tapatalk
                  Living Room: Touch or Squeezelite (Pi3B) > Topping E30 > Audiolab 8000A > Monitor Audio S5 + BK200-XLS DF
                  Bedroom: Radio
                  Bathroom: Radio

                  Comment


                  • #10
                    Originally posted by slartibartfast
                    Under Settings/Player/Alarm Clock you will find "Alarm Timeout (in minutes)". I have mine set to 150 minutes but if you set it to zero the alarm will play until stopped manually.
                    Ach! It's done inside LMS. Thanks!
                    RadioFeeds UK & Ireland.. an up-to-date radio directory for your Squeezebox/Transporter/UE Smart Radio.. available from the mysqueezebox.com App Gallery.
                    Bonus: our RadioFeeds LMS plugin also lists AAC and the BBC's high-quality HLS streams on top of what's available in our MSB app.
                    Now with over 1000 registered users, it's available for Logitech Media Server (and Squeezebox Server, SqueezeCenter and SlimServer).
                    Click for more info: http://www.radiofeeds.co.uk/squeeze

                    Comment


                    • #11
                      Originally posted by Paul Webster
                      I have not looked at the code yet but am willing to give it a try. Wanted to get some feedback first.
                      Sounds VERY interesting
                      LMS 8.4 on MacBookPro | 1x Raspberry Pi Zero 2 W + moOde 7 UPnP as USB-Player + TEAC UD-501 USB-DAC + Phonitor Mini Headphone Amplifier + AKG K812 Headphones | 5x Squeezbox Radio (Red, White, Black) | 1x Raspbery Pi4 + Allo Boss 2 + Arcam FMJ A22+P25 BiAmping + B&W Nautilus 805

                      Comment

                      Working...
                      X
                      😀
                      🥰
                      🤢
                      😎
                      😡
                      👍
                      👎