[PLUGIN] Pandora Plugin 2.0

Hey @Voxata

Are you on the latest version? That error used to come up in the last version.

Current is 2.12.1. You can update from the regular Volumio plugins menu.

If you still have errors after that upgrade, you can try to uninstall the plugin and then reinstall it. This should be unnecessary.

Try that and let me know. If that doesn’t work, we can move on from there.

Thanks so much for responding! I am using that version and my volumino is updated as well. I tried uninstalling and using the previous selectable version when checking details in the plugin list as well. I have since gone back to the current version. I’ve rebooted between installs as well without luck. I’m using all default options, logging in and selecting Pandora one stream quality. Login status shows accepted when entering details. I’ve added some stations since my initial install, which are not appearing in the list even after reboot/reinstall - though this bit of information may not be helpful.

@Voxata

So the previous version of the plugin works for you? With Pandora One selected?

I am curious – I don’t have Pandora One and I haven’t been able to test that functionality. Could you try without selecting Pandora One just to rule that out?

The songs URLs are generated with a JSON web request to the Pandora servers. There is just one field that is supposed to give a premium quality stream versus a free quality stream. I’m not 100% certain that this even occurs.

So just to rule this out, don’t turn on the Pandora One option and see what happens. If that works I will see if I can fix it.

Previous version actually doesn’t work either, though it would only let me log in without the Pandora one enabled. Same errors however. I get the error partner not authorized when disabling that toggle on this current version. Successful login with it enabled.

Tried using a non pandora one account and it won’t login unless the one toggle is set to ON. Maybe need to flush everything out completely for the plugin or something? I’m lost here. Same errors.

** This was resolved disabling and reenabling the plugin **

Still same errors, cannot be found with either a One or basic Pandora account. It automatically starts playing music from my local file share that is similar however, which is strange.

This is the first error of this kind that I’m aware of. Let’s try to nuke the plugin.

First just uninstall the plugin from Volumio. Just from the Plugins menu.

Then, ssh into your machine from PuTTY or from Linux or wherever. There are SSH clients for just about any OS.

LInux:
ssh volumio@volumio.local password: volumio

Others:
ssh to: volumio.local login: volumio password: volumio (if you haven’t changed it)

then from the command line, type:
rm -rf /data/plugins/music_service/pandora /data/configuration/music_service/pandora

Reboot / Restart Volumio. You have to do this.

Then reinstall the plugin from the Volumio Plugins menu.

To enable SSH on Volumio: go to http://volumio.local/dev and click ENABLE at the SSH section
image

See if that helps. Those two directories are the only ones that contain Pandora Plugin files.

So you got it? Volumio or really NodeJS / Javascript can cache things sometimes. I have had issues when writing new versions. Sometimes it seems I have to clear the browser cache too but I’m never sure. Usually, rebooting the Pi takes care of it.

No sorry, the login issue was resolved by disabling/enabling the plugin then using the toggle. I still get the not found error when trying to play any station. Rebooting now to test the non one login and see if I can get that working.

** update **

Still no luck, either using a One or basic pandora account the result is the same. If you want we can PM and I can give you direct access to the pi.

Alright I’ve uninstalled the plugin, SSH’d into the pi and executed that command - reinstalled and am seeing the same error. I’m fairly stumped!

You can PM me your log file. Try this:

Reboot your Pi from either a login shell or from the Volumio GUI menu.
SSH into your machine as you did before.

To return all system messages since the last reboot:

journalctl -b --no-pager > /home/volumio/volumio.log
gzip volumio.log

That will create a file in the /home/volumio directory called volumio.log.gz. Attach that file to a PM. There may be some personal stuff in there, like hash codes for Pandora, etc, so don’t post it here in the forum.

I’m not sure what OS you normally use (Windows / Mac / Linux / Happy Scrappy Hero Pup OS / whatever). You can either shut down the Pi and mount the SD card in your machine to copy it over (may actually take less time) or use SCP (WinSCP in Windows, not sure in the others) to transfer the file. WinSCP will just open a File Manager type GUI and you copy it over to your regular machine.

Please send the whole log. It won’t be long if you SSH into the machine and grab the file right after the error occurs.

I don’t see a way to PM you directly, I’ve used WinSCP quite a few times for FTP transfers so this went very easily. Thanks for taking your time to help by the way!

Click on his username, and then in the pop-up window click on message.

Unfortunately, I just see his badges.

image

Ok, you are a new member so you have not access to the messaging function yet, you need to use the forum a little bit more to get to the next user level.

Below is the default settings, but can’t find if Volumio has tweaked those.

Get to trust level 1 by…

  • Entering at least 5 topics
  • Reading at least 30 posts
  • Spend a total of 10 minutes reading posts

@Voxata You can look at that log yourself. Look at what happens when the plugin requests the station list. Here is what I have:

Aug 02 03:19:06 volumio volumio[893]: info: [1690960746493] ControllerPandora::initializeMQTT
Aug 02 03:19:06 volumio volumio[893]: info: [1690960746495] ControllerPandora::MQTTHandler::init
Aug 02 03:19:06 volumio volumio[893]: info: [1690960746496] ControllerPandora::MQTTHandler::connect
Aug 02 03:19:06 volumio volumio[893]: info: [1690960746511] ControllerPandora::initialSetup
Aug 02 03:19:06 volumio volumio[893]: info: [1690960746513] ControllerPandora::PandoraHandler::init
Aug 02 03:19:06 volumio volumio[893]: info: [1690960746514] ControllerPandora::PandoraHandler::loadErrorCodes
Aug 02 03:19:06 volumio volumio[893]: info: [1690960746516] ControllerPandora::StationDataPublisher::fn
Aug 02 03:19:06 volumio volumio[893]: info: [1690960746517] ControllerPandora::PandoraHandler::publishStationData
Aug 02 03:19:06 volumio volumio[893]: error: [1690960746518] [Pandora] MQTTHandler::publishData: Not connected to MQTT Server! Payload not sent.
Aug 02 03:19:06 volumio volumio[893]: info: [1690960746519] [Pandora] StationDataPublisher::init: Timer loaded
Aug 02 03:19:06 volumio volumio[893]: info: [1690960746520] [Pandora] StationDataPublisher::init: Interval set to 60000 ms
Aug 02 03:19:06 volumio volumio[893]: info: [1690960746520] [Pandora] StationDataPublisher::init: Timer starting now
Aug 02 03:19:06 volumio volumio[893]: info: [1690960746521] [Pandora] PandoraHandler::setMaxStationTracks: 16
Aug 02 03:19:06 volumio volumio[893]: info: [1690960746522] [Pandora] PandoraHandler::setBandFilter: ["Brass Against","Live","Phoenix","A Perfect Circle","Slipknot","Korn","Godsmack","Rob Zombie","Misfits"]
Aug 02 03:19:06 volumio volumio[893]: info: [1690960746523] ControllerPandora::flushPandora
Aug 02 03:19:06 volumio volumio[893]: info: CorePlayQueue::getQueue
Aug 02 03:19:06 volumio volumio[893]: info: CorePlayQueue::clearPlayQueue
Aug 02 03:19:06 volumio volumio[893]: info: CorePlayQueue::saveQueue
Aug 02 03:19:06 volumio volumio[893]: info: CoreCommandRouter::volumioPushQueue
Aug 02 03:19:06 volumio volumio[893]: info: [1690960746530] ControllerPandora::validateAndSetAccountOptions
Aug 02 03:19:06 volumio volumio[893]: info: [1690960746531] ControllerPandora::PandoraHandler::setAccountOptions
Aug 02 03:19:06 volumio volumio[893]: info: [1690960746533] ControllerPandora::flushPandora
Aug 02 03:19:06 volumio volumio[893]: info: CorePlayQueue::getQueue
Aug 02 03:19:06 volumio volumio[893]: info: CorePlayQueue::clearPlayQueue
Aug 02 03:19:06 volumio volumio[893]: info: CorePlayQueue::saveQueue
Aug 02 03:19:06 volumio volumio[893]: info: CoreCommandRouter::volumioPushQueue
Aug 02 03:19:06 volumio volumio[893]: info: [1690960746537] [Pandora] PreventAuthTimeout::init: Timer loaded
Aug 02 03:19:06 volumio volumio[893]: info: [1690960746537] [Pandora] PreventAuthTimeout::init: Interval set to 10800000 ms
Aug 02 03:19:06 volumio volumio[893]: info: [1690960746538] [Pandora] PreventAuthTimeout::init: Starting delayed timer after next interval
Aug 02 03:19:06 volumio volumio[893]: info: [1690960746538] ControllerPandora::PandoraHandler::pandoraLoginAndGetStations
Aug 02 03:19:06 volumio volumio[893]: info: [1690960746567] [Pandora] MQTTHandler::connect: MQTT Options Verified
Aug 02 03:19:07 volumio volumio[893]: info: [1690960747399] [Pandora] PandoraHandler::pandoraLoginAndGetStations::pandoraLogin: [<=- Logged in to Pandora Servers -=>]
Aug 02 03:19:07 volumio volumio[893]: info: [1690960747402] [Pandora] validateAndSetAccountOptions: ***DEBUG*** self.loggedIn: true
Aug 02 03:19:07 volumio volumio[893]: info: [1690960747404] [Pandora] ExpireOldTracks::init: Timer loaded
Aug 02 03:19:07 volumio volumio[893]: info: [1690960747404] [Pandora] ExpireOldTracks::init: Interval set to 300000 ms
Aug 02 03:19:07 volumio volumio[893]: info: [1690960747405] [Pandora] ExpireOldTracks::init: Starting delayed timer after next interval
Aug 02 03:19:07 volumio volumio[893]: info: [1690960747405] ControllerPandora::PandoraHandler::fillStationData
Aug 02 03:19:07 volumio volumio[893]: info: [1690960747964] ControllerPandora::PandoraHandler::publishStationData
Aug 02 03:19:07 volumio volumio[893]: info: [1690960747968] [Pandora] MQTTHandler::publishData: Published stationData to mqtt://192.168.1.50:1883 topic: volumio/pandora/stationData
Aug 02 03:19:07 volumio volumio[893]: info: Done.
Aug 02 03:19:16 volumio volumio[893]: info: CoreCommandRouter::executeOnPlugin: system , getPrivacySettings
Aug 02 03:19:16 volumio volumio[893]: info: CALLMETHOD: system_controller my_volumio retreiveBackendEventStates undefined
Aug 02 03:19:16 volumio volumio[893]: info: CoreCommandRouter::executeOnPlugin: my_volumio , retreiveBackendEventStates
Aug 02 03:19:16 volumio volumio[893]: info: Received Get System Version
Aug 02 03:19:16 volumio volumio[893]: info: CoreCommandRouter::executeOnPlugin: system , getSystemVersion
Aug 02 03:19:18 volumio volumio[893]: info: CoreCommandRouter::executeOnPlugin: pandora , handleBrowseUri
Aug 02 03:19:18 volumio volumio[893]: info: [1690960758621] ControllerPandora::handleBrowseUri
Aug 02 03:19:18 volumio volumio[893]: info: [1690960758622] ControllerPandora::checkForExpiredStations
Aug 02 03:19:18 volumio volumio[893]: info: CoreCommandRouter::volumioGetQueue
Aug 02 03:19:18 volumio volumio[893]: info: CoreStateMachine::getQueue
Aug 02 03:19:18 volumio volumio[893]: info: CorePlayQueue::getQueue
Aug 02 03:19:18 volumio volumio[893]: info: Preload queue cleared
Aug 02 03:19:20 volumio volumio[893]: info: CoreCommandRouter::executeOnPlugin: pandora , handleBrowseUri
Aug 02 03:19:20 volumio volumio[893]: info: [1690960760674] ControllerPandora::handleBrowseUri
Aug 02 03:19:20 volumio volumio[893]: info: [1690960760675] ControllerPandora::checkForExpiredStations
Aug 02 03:19:20 volumio volumio[893]: info: Preload queue cleared
Aug 02 03:19:25 volumio volumio[893]: info: CorePlayQueue::getQueue
Aug 02 03:19:25 volumio volumio[893]: info: CorePlayQueue::getTrack 36
Aug 02 03:19:25 volumio volumio[893]: info: [1690960765780] ControllerPandora::ExpireOldTracks::reaper
Aug 02 03:19:25 volumio volumio[893]: info: [1690960765780] [Pandora] ExpireOldTracks::reaper: No victims found: Expiring zero tracks.  Don't worry -- Jason will return.

What I did:

  1. I disabled the plugin and rebooted the Pi
  2. SSH to pi and typed journalctl -f (this watches the journal in real time)
  3. I enabled the plugin – the plugin started, the login messages started (don’t worry about the mqtt parts if you don’t want those, that’s not necessary)
  4. I clicked on Pandora Radio on the sidebar to load the stations, and I sorted them by date (which isn’t quite working – they are out of order – will try to fix, not a big issue)
  5. I hit ctrl-c to stop watching the journal and copied the output here

See what your output looks like.

I’ve PM’d my output from enabling the plugin forward, I am now a regular :smiley:

I get this too, but everything seems to work correctly.

Yes, I’m updated to 2.12.1.

As a fairly new user of Pandora (but not Volumio), I see there’s an option to set a “Thumbs down”. How do I do a “Thumbs up”.

And how do I know what Station I’m currently listening to.

Cheers.

So far, I have not been able to reproduce this bug. But I have an idea.

Do you have any other tracks in your Volumio queue when you start the Pandora Plugin? As in, local songs on your hard drive or NAS, or possibly from other plugins? Please check and see if you do at this URL (you may have to change the hostname for your setup):

http://volumio.local/queue

If so, try to clear the queue by clicking the trash can icon (on my screen it is in the upper right corner, very small) or click the X for each track.

Please let me know if this works for you. As far as I can tell, that error is harmless, but very annoying.

Unfortunately, there are limited options for the user interface. As you can see, I had to “hack” the “thumbs-down” button. I can’t think of a good way to do “thumbs-up” – it would have to override or supplement a playback button. Another user suggested the “heart / favorite” button but I have not gotten that to work yet.

As far as which station you are currently listening to, I’m afraid I can’t put that on the screen, either. At least, not at this point.

Hi all, I wonder if you can help me, I didn’t see anyone reporting this so I hope this was not discussed before.

I get a weird issue on my desktop install (I use some lenovo mini PC, instead of RPI).

Any time I reboot it Pandora plugin doesn’t get auto connected, it shows this message each time I click on Pandora source:
image

if I go to plugins, all I do it just click on “ON” button and it gets connected with no issues whatsoever:

I also always get this Error: No Results when plugin gets enabled. So not sure if this is related.

Let me know if I can help debugging it.
thanks

Hi @dep

Hmm. This is odd. So what you are seeing there with the red dot, that means that the plugin didn’t properly load. It says it is on, but you should see a green dot, not a red dot.

Here is what it looks to me when the plugin is installed, but not enabled


And here is what it looks like when I enable it

The error may be mine or yours. One quick thing to try (may not work):

Uninstall the plugin
Reboot your machine either from the menu or by yourself
Install the plugin

Perhaps your settings file isn’t quite right. Let’s try that and then go from there.
The next step would be to send a log but let’s wait for that.

So I tried a few scenarios of re-installing the plugin. including your suggestion

  1. Uninstall the plugin
  2. Reboot your machine either from the menu or by yourself
  3. Install the plugin

Even if I get Error: No Results it still plays music

here’s what I get still, it also happens on another mini PC that I just tried… I don’t have RPI to test on RPI:
Animation