pyradio icon indicating copy to clipboard operation
pyradio copied to clipboard

Feature suggestion - scheduling

Open wturrell opened this issue 2 years ago • 7 comments

This is maybe a bit niche, but I often find myself trying to remember to switch over to a different station at a specific time, e.g. for a news bulletin or live event.

I think the way it might work is you browse to the desired station, press a keyboard shortcut and enter a time, and that time would be displayed maybe right aligned in the station list as an indication the 'alarm' was set. As soon as the time is reached, whichever station you were on before would stop playing and the new one would start.

wturrell avatar Aug 12 '22 10:08 wturrell

Hi again @wturrell

Yes, this is a nice feature! But I do have to think about it... The thing is that in the meantime, we can load a different playlist, or use radiobrowser, and then thing get... well... complicated... :smile:

s-n-g avatar Aug 12 '22 10:08 s-n-g

Isn't it better implemented as remote control server commands? Remote commands can be scheduled externally.

amano-kenji avatar Apr 07 '24 06:04 amano-kenji

Cron jobs can send remote commands.

amano-kenji avatar Apr 12 '24 08:04 amano-kenji

I'm not sure that a radio program should have a proper scheduler UI. Perhaps, you can develop an external scheduler UI that sends remote commands to pyradio?

amano-kenji avatar Apr 13 '24 03:04 amano-kenji

Hm, that is an interesting idea! But that would make it nesessary to always have the remote control server on... I will think about it!

s-n-g avatar Apr 13 '24 08:04 s-n-g

  • Instead of listening on a port, you can listen on a stream unix domain socket.
  • If schedule UI is well designed, then it can be a part of pyradio. I don't know whether it's better to implement schedule UI in pyradio or outside pyradio. A schedule screen can exist if pyradio has built-in scheduler.

amano-kenji avatar May 02 '24 06:05 amano-kenji

I've been in the process of testing several solutions for some time... I have put it in the back burner for now, until the 0.9.3.x transition settles down and all bugs and such are discovered ans taken care of :wink:

s-n-g avatar May 02 '24 10:05 s-n-g