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
cannot activate auto_play plugin #85
Comments
Update: I just upgraded to Volumio 2.245, to no avail. |
Contact plugin developer |
I thought this page was the way to contact the developer? @thomasdoerr |
Hi tomzu, you need to address the developer like you did it in your last post, otherwise I don't get an email. Can you send me the logs? I'm running the plugin on two raspberry pi 3 since I developed it. They are both now running on version 2.201, one with HiFiBerry and the other with a "china import" sound card. I'll update one of my machines to the nevest version of volumio and let you know if it still works as expected. Regards, |
Both machines are on version 2.224 and on both the plugin is working as before. |
@thomasdoerr see here: ssh then sudo ldconfig -v |
@thomasdoerr Thank you. I'll see what I can do, but I'm definitely not able to install a development environment on a Mac, as it is proposed in the video on the web page you mentioned above. |
thanks @volumio I just read this in this post :-) it works fine! Both are downloading the new version. |
@tomzu is "Title: Be OK" something you see in your play queue? I'm using my plugin with a web radio and as far as I remember with spotify, but probably not with titles of music you stored on your disk. Perhaps you could clean your queue and try it again? |
@thomasdoerr Well ... actually cleaning the queue or removing all the playlists and favourites that contain that title is not sufficient. Only if I UNMOUNT the NAS storage, I can activate the plugin. If I remount the NAS, starting the plugin will fail again. (Btw. stopping the plugin results in a red error message box popping up.) |
@thomasdoerr Obviously, something in the system thinks that a title containing "OK" is not okay. I renamed that song to "Ingrid Michaelson - Be okay.mp3", and it works ... strange. |
@tomzu I recently tried another lib in my plugin, just to find the issues with Daniels volumio instance. I gave him a tweaked version of my plugin: You could also try it. Hope that helps |
@thomasdoerr I have an identical experience to @tomzu with previous Volumio 2.348 & latest 2.362. Today I've done a complete fresh install of Volumio on an RPi3B, and get exactly the same error with the Autoplay plugin (5/2/2018) - perform install; when enabled Volumio appears to completely restart and then checking the "installed plugins" shows that Autoplay is again disabled. This occurs each time. So as per your instructions above I perform sudo journalctl -f then attempt to enable the plugin then save the console output. Should I post the whole 225 lines here? Here below are the first lines of Volumio log (sorry I couldn't get proper format); I think it contains the error: Thanks for any help. |
Hi Andrew, |
@thomasdoerr thanks but I can't find any file "*ok.mp3"? So maybe that is part of the problem? Below was the Volumio install "details": |
Can you check what happens when you clear your playlist? |
I don't have any playlist. Nothing to clear sorry. I do have items in the queue. This problem occurred on a fresh install: installed Volumio, installed Touch Display, installed Autoplay. |
I'm sorry Andrew, I meant the queue, not a playlist. |
Thanks for helping Thomas. I cleared the queue then enabled Autoplay, Volumio restarted but Autoplay is still disabled. I used sudo journalctl –f while enabling but same result as before: Feb 20 19:45:49 volumio volumio[2601]: /data/plugins/miscellanea/auto_play/node_modules/node-mpd/src/mpd.js:189 |
Are you using a network drive with media files? What happens if you play something, so the queue is filled and then you try to enable autoplay? |
No, just using a USB flash drive @ /media/MUSIC. I see exactly the same stack trace with 0 or 1 or many tracks in the queue and playing or paused. |
Hi Andrew, I tried to reproduce your problem on my machine. Added a USB stick with music, put that music into the queue, delete everything from the stick (with another machine, so that volumio doesn't know, that songs have been deleted). |
Thanks Thomas. My RPi doesn't boot any slower with 64GB USB stick. I enabled the plugin with tracks still in queue - same log Error: Non okay return status: "Title: I'm OK" I say again my install is very fresh & few changes to default settings. Could I attempt to debug the error? Add any extra print/ debug statements? |
Hello and sorry for my poor english, i'm french. |
Thanks for your comment and thanks for using my plugin, even if it doesn't work in all situations :-) . I'll try to debug that stuff, but I can't exactly tell you when I'm able to do that. I'll keep you posted. |
Here is another topic with my experience: https://volumio.org/forum/plug-autoplay-dont-work-volumio-version-246-t7654.html#p45483. |
I am using RPI3 and met this issue, I SSH into volumio and found that when line 50 of auto_play/index.js is commented, volumio can boot, which the line is then I wrote a little code and found that when calling
Look into the MPD module which the plugin using, there is a function And the plugin work as expected. Actually, have to fix "Title: BOK" is returned as status instead of modifying the node module code. |
Hi, thanks for your debugging! do you see the same behaviour with the version I changed last yearr to use mpd.js instead of node-mpd.js? |
@thomasdoerr Your new version works perfectly! Thanks for your plugin, many people need it. Please merge as soon as you can =) |
I just did a complete fresh install of image 2.382 onto an RPi3B with MP3 files on USB drive (no change from previous reports). Enabling the Autoplay plugin still causes volumio to restart & I observe Autoplay is still disabled (no change from previous reports). |
thanks for reporting! Since chiu0602 wrote, that the autp_play version with mpd.js works fine, I'll port the new library, test it on my machines and commit it. Hope that this fixes your problem too. |
I will be looking forward to testing. |
Hello. |
Hi, I implemented the plugin, because I needed a way to start playing my web radio when I turn it on. I never implemented a storage, which saves the latest state somewhere. My PI is also never shutdown properly, instead I'm unplugging it hard. So there would never be an event for the plugin to store the state. Instead it should do that always while a track changes or periodically. This is much more complex to implement and that's why it is not included. Feel free to extend it! |
@andrew-james-heard @dyno2400 @Fybrox @tomzu @chiu0602 Good morning folks, I published a new, rewritten plugin which is based on another mpd lib. Some of of you already tested a version. Please DO NOT enable autostart and auto_play at the same time! If the new one works for you, remove the old one. You can search for the new plugin in volumio plugins under Miscellanea. I'm looking forward to getting your feedback! |
When playing the list of music with an USB, the new plug-in works as well as old. Everything is good. |
It works perfectly! Thanks @thomasdoerr |
Work perfectly for me too! Tested with single queued webradio, single queued USB track, and multiple queued USB tracks. Thanks very much @thomasdoerr. |
Hello guys, many thanks to chiu0602 and thomasdoerr "autostart" work fine now in all situations, very good job :)) |
Would it be equally possible to AutoStart with last item in the queue rather than first? It should not require storing any state. The last item is not necessarily the same as last item played, but it would be more likely than first queued item. I have done Python programming but not JavaScript like in the plugin. Is this idea possible and where should I look to investigate further? |
Hi Thomas |
@houndofsound - note the items are from the queue, not playlist. But last item would still be an improvement on 1st item, and should not require "tracking" I think. |
The plugin just perform "press play button" on Volumio start, so the plugin have done its work already. This plugin should not implement additional features. This is Volumio's current "feature" that it play first audio instead of the last playing audio. The code on Volumio's core should be changed to fix this "feature" I used a workaround that enabled shuffle play, and put a silent audio as the first item on my playlist. |
I think that restarting the player after booting should normally be a functionality of the core, means volumio itself. As far as I remember, volumio had it before version 2.x. |
Does AutoStart work on the Pandora Plugin? I need a way for my store to resume playback of a pandora station after a power outage. |
Hello. I don't use Pandora. 27.12.2021, 14:05, "Mark David" ***@***.***>: Does AutoStart work on the Pandora Plugin? I need a way for my store to resume playback of a pandora station after a power outage.—Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Hi, sorry same with me, I don’t use it.
Best, Thomas
On 27. Dec 2021, at 12:18, dyno2400 ***@***.***> wrote:
Hello. I don't use Pandora. 27.12.2021, 14:05, "Mark David" ***@***.***>: Does AutoStart work on the Pandora Plugin? I need a way for my store to resume playback of a pandora station after a power outage.—Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android.You are receiving this because you were mentioned.Message ID: ***@***.***>
—
Reply to this email directly, view it on GitHub<#85 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABUZMBIEB7BTAB35YY3YBNTUTBDPHANCNFSM4DU5ZVGA>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
I tried the auto_play plugin. I was able to install it, but I cannot switch it active. If I try, the browser changes to the playback page and the waiting icon appears for a while. When it disappears, nothing has happend, i.e. when I return to the plugins page, auto_play is still marked as inactive.
I am running Volumio 2.201 on a Raspi 3 B, and I am using the current auto_play from https://github.com/volumio/Volumio2-UI/files/761286/auto_play.zip
The text was updated successfully, but these errors were encountered: