09-21-2021, 01:53 PM
Hey Moode Forum Peeps,
I have a silly little goal I would like to achieve and wondered if anybody here with their experience of computing and audio might have some pointers, tips, advice or even a solution? I am willing to do the work required.
The "Problem":
- I use Moode as an alarm clock everyday but on the weekend the show I want to listen to starts earlier than I want to wake up.
- MyShow starts at time t0; MyAlarm is at time t1 > t0. MyShow ends at t2 >> t1
- As such I would love to achieve the following....
1. At time t0 I connect to the radio stream and buffer/save/store the audio of MyShow somewhere on my network.
2. At time t1 MyAlarm activates and Moode plays the buffered/saved audio from that somewhere.
3. As a super bonus, I can pause the track/steam on Moode and resume it later, for example when I go to the shops and return.
I have at my disposal some Pis and some minor programming experience.
I can use bash & python, and possibly Java, JS etc if needed.
I have considered Icecast, or mpd output plugins, ffmpeg, etc
I have two moode players, a central pi-based file server which also runs LMS which I often use for multi-room audio via moode. I also have a spare pi or two.
I am simply not sure what the best way to approach this problem is. I don't know if it is complex or easy, if I am complicating it or not etc etc. I have tried saving the stream to file using ffmpeg (I do this with cronjobs for other shows I want to listen to after they are complete) but moode/mpd fails (perhaps unsurprisingly) to play the incomplete file properly - the playback ends even though there is audio still being added to the file.
I am willing to consider any solution but I wish to avoid any interaction with the system beyond initial setup and setting the moode alarm.
If anybody has a suggestion of how to achieve this I would love to hear them. Thanks!
I have a silly little goal I would like to achieve and wondered if anybody here with their experience of computing and audio might have some pointers, tips, advice or even a solution? I am willing to do the work required.
The "Problem":
- I use Moode as an alarm clock everyday but on the weekend the show I want to listen to starts earlier than I want to wake up.
- MyShow starts at time t0; MyAlarm is at time t1 > t0. MyShow ends at t2 >> t1
- As such I would love to achieve the following....
1. At time t0 I connect to the radio stream and buffer/save/store the audio of MyShow somewhere on my network.
2. At time t1 MyAlarm activates and Moode plays the buffered/saved audio from that somewhere.
3. As a super bonus, I can pause the track/steam on Moode and resume it later, for example when I go to the shops and return.
I have at my disposal some Pis and some minor programming experience.
I can use bash & python, and possibly Java, JS etc if needed.
I have considered Icecast, or mpd output plugins, ffmpeg, etc
I have two moode players, a central pi-based file server which also runs LMS which I often use for multi-room audio via moode. I also have a spare pi or two.
I am simply not sure what the best way to approach this problem is. I don't know if it is complex or easy, if I am complicating it or not etc etc. I have tried saving the stream to file using ffmpeg (I do this with cronjobs for other shows I want to listen to after they are complete) but moode/mpd fails (perhaps unsurprisingly) to play the incomplete file properly - the playback ends even though there is audio still being added to the file.
I am willing to consider any solution but I wish to avoid any interaction with the system beyond initial setup and setting the moode alarm.
If anybody has a suggestion of how to achieve this I would love to hear them. Thanks!