-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configure autoplay playlist / webradio on startup #219
Comments
Feature request initially flagged here as issue 329 on volumio2 repo |
I'm not at all sure this is the same request, more like #420. Issue #329 refers to the idea of replacing the start up sound with a fixed playlist, whilst here I think we are considering auto-playing the remaining queue saved on shutdown. If Volumio has been installed in a car its almost essential to have a resume playlist and track feature much like CD players and which Volumio 1.55 had as a default. I think it would be beneficial to also restore states such as 'repeat'. |
I also need a way to start volumio playing after switching it on, since I have an old tube radio, which functions as a webradio now. |
I have came up with such solution.: #!/bin/bash
TIME=0
if [ "$#" -ne "0" ]
then
TIME=$1
else
TIME=0
fi
echo
for ((a=TIME;a>=0;a--))
do
printf "\rWaiting for %3d" "$a"
sleep 0.9
done
echo
/volumio/app/plugins/system_controller/volumio_command_line_client/volumio.sh next Above script is started from The trick here is to use It's important to use |
Excellent, this seems to do the trick. I had no idea that this command line client existed, very useful when fully operational. |
@thomasdoerr I install it correctly, but when it is active the web interface is reset and it is disabled. Any ideas? |
Hi, not sure if I really understand what you mean. Do you use a second plugin? (I played around with spotify and I far remember, that the list didn't handle more than one plugin correctly. But this was a few weeks ago, with the same volumio version, but I'm unable to exactly remember what the problem was.) Which volumio version are you running? You can go to your pi (ssh) and start the command "sudo journalctl -f" in order to see, whats going on. Here is a nice documentation of that: https://volumio.github.io/docs/Development_How_To/Set_up_a_development_environment.html |
Thanks for your attention. First I want to tell you that I am not an expert on Rasp or Linux, very basic knowledge. |
Hi Daniel, that's really funny to see everything in Volumio in a different language :-) |
I also tried disabling plugins installed, it does not work. |
Hmm, I was just looking through the code and for the moment I don't have a clue why this happens. |
I do not know who "Artist: ANNIE PEENBROOK" is not on my lists. |
Shi... :-) give me some time to think about it, Daniel
… On 1 Mar 2017, at 14:42, DFPozzi ***@***.***> wrote:
I do not know who "Artist: ANNIE PEENBROOK" is not on my lists.
I do not know where it comes from.
I uninstalled the plugin, I cleaned the playlist, I added only my favorite radio web, and in the log it continues to appear "Artist: ANNIE PEENBROOK".
Regards
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Daniel, I quickly changed the lib I'm using behind it to connect to mpd. On my volumio instance it worked (in a first test). Would you try this one in order to check, whether that fixes the problem. The thing is, that the bug occurs in the lib behind and not in my code, which make it hard to find it :-) |
Well ... I uninstall the old version of AutoPlay, I see that it does not. I delete it manually via filezilla. All good. I install auto_play new version. All ok. |
@GRIzmak wrote:
rc.local invocation is not recommended in systemd environment as process sequence can not be properly managed. |
@thomasdoerr Thanks! 🤘 ### Note to others: Plugins don't automatically get activated after install, so don't forget to actually activate them! |
perfekt :-) The latest version was a test version I created for DFPozzi in order to find his problem. But before, I created a pull request with this version: https://github.com/volumio/Volumio2-UI/files/761286/auto_play.zip. If you could do me favor, please uninstall the latest and try this one. Then I'm sure, that my code, once it was accepted by the team, works. |
Tested...
- Uninstall
- Unplug & replug USB*
- Install new version
- Start playing webradio...
- Unplug & replug USB
Yes! Resumes playback automatically!
Tested for a couple of days now, works flawlessly, also after update to volumio 2.118.
*) Was not intending to do this, but there is a bug in volumio. Plugin install hangs when uploading a filename called "auto_play (1).zip".
|
Volumio bug, rename to a simple filename like auto_play.zip, without the (1), then it will work just fine.On Mar 7, 2017 13:51, DFPozzi <notifications@github.com> wrote:Is it correct to drag & drop the file auto_play.zip in Plugin / Upload Plugin?
When I do this it is freezed in 10% of the download.
Is it the correct way to install the plugin or should I use FileZilla with sftp? In what direction?
Go screenshot.
—You are receiving this because you commented.Reply to this email directly, view it on GitHub, or mute the thread.
|
Thanks, now it works correctly, I used the previous plugin :( |
@thomasdoerr, excellent. I've been testing this on RPi 2B and 3 without any obvious issues. |
Works on RPi 3B no problems |
Same here, RPi 3B - thanks for the nice plugin!
|
Now tested on RPi Zero and Zero W without any problems. |
@thomasdoerr: really cool, thanks.
|
@thomasdoerr can you init a git project for your code? So i can add some features like startup a special playlist on startup, now only the last one. |
@tatoosh I created a pull request https://github.com/volumio/volumio-plugins/pulls. When it's merged, you could implement directly on that code. Feel free to extend it! |
thx but i changed from Volumio to Dietpi, so the pull will never come from
me ;)
2017-03-20 19:54 GMT+01:00 Thomas Dörr <notifications@github.com>:
… @tatoosh <https://github.com/tatoosh> I created a pull request
https://github.com/volumio/volumio-plugins/pulls. When it's merged, you
could implement directly on that code. Feel free to extend it!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#219 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADgDe4FwPLVlmP9QiW4HwQ8vJ29EzX9fks5rnstdgaJpZM4Kawp9>
.
|
Hi Thomas, |
Hi Paul, |
Hi Thomas,
Thanks for your prompt response.
I understand and i am happy that you cleared my question.
Best regards,
Paul
From: Thomas Dörr
Sent: Thursday, January 18, 2018 6:58 AM
To: volumio/Volumio2-UI
Cc: pjmprinz ; Comment
Subject: Re: [volumio/Volumio2-UI] Configure autoplay playlist / webradio on startup (#219)
Hi Paul,
thanks for using the plugin 👍 . The answer is easy: The plugin is very simple, it just starts the first entry in your queue after volumio started. In my case it always starts playing with "SWR3", which was and is enough for what I need. There is no logic which stores the last entry you heard before volumio stopped.
Hope that helps.
Regards, Thomas
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@thomasdoerr When auto_play active the web interface is reset and it is disabled. Please help |
hi, please try my plugin which you can find in this thread: volumio/volumio-plugins#85 (comment) |
There are a couple of mentions of this in the forum but it without a real solution..
There should be a configuration on what to play after booting, so either a playlist or a webradio station or auto-play the remaining queue.
Maybe you could set this in the libary's context menu on the corresponding item ("Play on startup").
Along with this goes a startup volume setting so it doesnt blow the roof off after booting just because it was loud the last time.
The corresponding forum thead is here: https://volumio.org/forum/configure-autoplay-playlist-webradio-startup-t4851.html
The text was updated successfully, but these errors were encountered: