Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Problem: Auto-Play radio stream (on weekday mornings) immediately after power on
#7
(03-09-2021, 08:54 AM)the_bertrum Wrote: OK, so if there is no power to moOde then it can't run the script to play your radio station at 6:30.  If you are manually turning on the amp and waiting for that to boot the Pi you have two options that I can think of.

  1. In m/configure/audio set the "Autoplay after start" to ON, then you can turn the amp on, wait for moOde to boot at which point it will begin playing what ever was playing when it turned off.  Obviously that method will require you to select the correct station before you shut it down.
  2. Set your alarm clock function to about 5 minutes after you turn the amp on.  This way the amp supplies power and moOde has time to boot up, discover what time it is from the network, then run the alarm script at the right time after it has started properly.
I suspect however that the best thing to do really is simply power your moOde device from it's own supply and not turn it off.  If you are killing power to the amp to turn things off then moOde is effectively being shut down in an uncontrolled way every day, which won't be good for it.

I really appreciate you get back to me.  I think you’re absolutely right in that the reason why the radio alarm didn’t work is that I’m purposely not powering up the pi until after the time I had set and it was wrong for me to have presumed that this could have some how triggered the alarm to have been activated and for the radio stream to have been played.  I now know that the radio alarm function sadly just doesn’t cater for that situation.

I’ve gotta say, I’ve been an avid follower and user of Moode Audio for many years now and have always switched my pi off at the mains, when I wasn’t using it then back again and I have never experienced any issue with MoOde or had a corrupted micro sd card, which I guess is probably the worst thing that could happen.  But there again, I've never stored any media content on a USB drive hanging off the pi, which I suspect is where many issues could occur, or be related to.
 
So, back to my ideal of Moode playing a radio stream on week day mornings. My Tangent Ampster II amp isn’t the only device out there which can provide power to a pi – take for instance the Kanto YU4 powered speakers, the Audio Pro Addon T3, or Ruark Audio’s MR1 Mkii – so there may well be other folk who would like to utilise that possibility.

Your suggestion of ‘auto-play after start’ is certainly a good idea, but at first in the morning I don’t necessarily want to listen again to some random track that I happened to play last the night before – indeed, in the early hours of day, I would much rather listen to a radio stream, with me needing to do very little.  It certainly would be welcomed if 'auto-play after start' could be modified to active a specific radio stream, if that could be easily implemented.

However, I’m still hoping some talented individual with some knowledge of coding would generously step forward and provide a better solution.  As I previously mentioned I’ve no experience in these ways, but I now gather a combination of Cron tab and Anacron potentially could be the ideal way to go…
Reply


Messages In This Thread
RE: Auto-Play radio stream (on weekday mornings) immediately after power on - by Zigzag - 03-09-2021, 11:21 AM

Forum Jump: