-
Notifications
You must be signed in to change notification settings - Fork 59
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
Volspotconnect2 - Using the Volumio REST API breaks the plugin. #263
Comments
Hi! |
@NicolasBonduel thanks for the issue, from a quick check, it looks like the restAPI calls a different method
Whereas the WebUI calls the correct
|
Hi. I think the same issue may also affect the command line client. |
@johnk- What version of Volumio are you on? (check with |
cat /etc/os-release |
@johnk- the CLI internally just calls the REST api with There is a PR volumio/Volumio2#1938 that addresses it, but seems to have slipped through.. Feel free to test it though! :-) |
I started looking into doing this, but I am struggling to work out how to test this without messing up my current setup. I looked at the volumio pull command, but you can't specify an individual commit. |
@johnk- You could either just fetch the diff and patch your volumio, or use the |
Thank you. Your instructions worked perfectly :-) |
@johnk- Could you cross post to the PR so we can track it there? |
Toggle function confirmed as fixed from both the REST API and CLI. |
I validated that @ashthespy 's fix remedy's the conflict with the IR Remote Controller Plugin I was having. Initial Setup: Fresh volumio install (v2.806), spotify connect plugin (v1.0.4), IR remote controller plugin (v1.2.4), apple A1294 remote (using this lircd.conf) Operating Condition: Queued song up using mobile device and selected volumio. All commands issued by mobile device execute as expected. A song was in the "playing" state before testing. Initial Observed Behavior: Play/Pause/Track controls all operate as expected using volumio web interface. Using an IR remote control Track and Pause commands execute as expected however the Play command does not. It plays the last "non spotify" track. In my case it was a web radio but I'm sure it would be the same if it was a local or network file being played. Change Made: Executed command Observed Behavior After Change: Play/Pause/Track controls all operate as expected using IR remote. |
|
Hmm, can you share logs when this happens? The daemon utilises the last volume from Volumio, and if this is However, this |
You are right about the separation and the fact this is unrelated to the REST API. About the logs, will do, but at the moment Volumio almost completely died tonight... Because the remote and Spotify now worked within acceptable parameters, I wanted to show Volumio that I installed a few days ago to my wife tonight, but unfortunately it looked like it strangely went haywire, nothing plays any more, it shows an error messages about the soundcard “The selected output device is not available”. Any help much appreciated!! |
Never a good idea to copy paste stuff into the terminal without knowing what it does ;-)
How were you using the REST API? Maybe it's easier to just re-flash Volumio to reduce debugging headaches? |
Indeed 😄 I got the https://www.hifiberry.com/shop/accessories/wireless-remote-control/ which works really well now, funny enough even with the play/pause toggle!!?? And so, without the command in the post above! I did the following with the REST API's using Triggerhappy:
Then in the editor I replaced the default with:
This is how I learned which buttons produce which keystrokes:
So, < and > buttons are skipping songs, arrow up and down and the speaker buttons are volume control, = button is clearing the queue (if that would be handy to control by the remote, it was the assigned function that I could think of for now) and then the escape/returning arrow button is stop, after which the song is played from the beginning when you press OK again (which is the middel button and the play/pause toggle). |
Update: After a day and a half the remote control stopped working and I noticed I could not access Volumio through the web interface any more with I use a (brand new) 128 GB SanDisk SD. Could this be the problem? Flashed with balenaEtcher without any problems. |
@basmeyer sorry to sound like a stuck record, but without logs we have no idea what is going on. Your issues sound like something completely unrelated to the REST API and or volspotconnect.. Most likely your dns resolver on your router isn't resolving |
Hello,
It seems that if I try to use the Volumio REST API the plugin breaks.
The "pause" (
volumio.local/api/v1/commands/?cmd=pause
) seems to work, but if I try to "play"(volumio.local/api/v1/commands/?cmd=play
) it doesn't work.If I hit play from the Spotify app then, it plays again, but it doesn't reflect in the Volumio UI.
If I hit play from the Volumio UI, then I have two streams playing at the same time.
I'm using the plugin from the
master
branch.Thanks for the good work!
The text was updated successfully, but these errors were encountered: