dupontgu / retro-ipod-spotify-client

The software that powers the sPot: a 4th generation "Click Wheel" iPod with a full Spotify client.
Apache License 2.0
892 stars 90 forks source link

error when I run spotifpod.py #57

Open XEROxMEXICANO opened 2 years ago

XEROxMEXICANO commented 2 years ago

When I Spotifypod.py manually it in the terminal it just spams 'no ints' and I've looked on every issue and read the comments and I can't seem to find a solution for this problem any help im kind of a noob to all this.

Dream1iner commented 1 year ago

same issue, looks like there is connection problems.

doris1347 commented 1 year ago

You have to do a refresh data !

Dream1iner commented 1 year ago

@doris1347 could you be more specific, please?

doris1347 commented 1 year ago

Synchronize Spotify Data

Synchronizing Spotify data! Last but not least, if you want to make sure all your playlists artists, etc are synchronized every time you turn on your Spotifypod, you can simply modify the script view_model.py

instead of calling refresh_device, you can execute refresh_data. This will sync all your data and then will execute refresh.devices. This will make the boot up way slower! but it will synchronize every single time you switch on :). If you dont run at least once refresh_data() no playlist, artist or anything related with your account will be displayed!

cd retro-ipod-spotify-client/frontend

Then

sudo nano view_model.py go to line 16

spotify_manager.refresh_devices()

spotify_manager.refresh_data()

Comment out the first existing below line:

spotify_manager.refresh_devices()

add a second non existing below line un-commented: spotify_manager.refresh_data()

Then reboot!

Be sure you throughly read issue 21 & 69.

Another suggestion is to create a file called testit.py with the following 3 lines:

import spotify_manager from functools import lru_cache spotify_manager.refresh_data()

Place it in the frontend folder,

and then run it from the command line:

cd retro-ipod-spotify-client/frontend

Then at the command prompt run:

python3 testit.py

This will only work if you created a .cache file, But if you're good to go you should see output to the screen as it downloads playlists, artists, etc.

FYI: When you make a track selection (http request) with the "sPoT" you will see it as being selected in the Spotify app. device list of your phone or computer (and your selection will start playing) ### as long as your audio endpoint (bluetooth) is configured and working if not your selected track will only increment 3 seconds and dropout. the same will happen if you first select your device using another authorized Spotify client, if your audio endpoint (bluetooth) isn't up and running your connection will dropout after approx. 3 seconds no audio!

Good Luck! and Have Fun! 😊✅