Open zburhop opened 3 years ago
yes 3 correct variables show up. Still no cache file. Also very wierd view_model.py seems to be gone.....
your Pi is haunted
view_model.py is in the frontend subdirectory
and it doesn't normally disappear without being deleted
if you reboot and don't have spotifypod.py automatically execute, then you will probably have to export the 3 variables manually again
Yeah i agree. when i do sudo nano its trying to create a new file
go have a drink and come back to it
get more sleep too
I rebooted and tried again and it showed up... wierd but added the line and rebooted. Still black screen and no cache. I am going to take a break. Thanks so much for your help. I owe you one. If you think of any more good ideas let me know.
ok, sorry we couldn't get there, but you must be close; probably some remnant file causing gremlins
Today I decided to install the project on a new SD card because rather than unsolder things on the pieces I already had lying around, I bought a Pi Zero without headers soldered in and an Adafruit Powerboost 1000 without connectors soldered in either, to try to finalize my iPod. I did the installation on the SD card from my Pi 400, because it goes much faster. But then I ran into just about all of the issues that have been plaguing @zburhop, including black screen, "Address in use" and "no int" repeated over and over.
I finally got it working, but I have to say I'm not completely sure what did the trick. Even though I got these errors, at some point I decided to check if my .cache file had been written, and sure enough, it had been. Frankly, I think this is the meshugaas (apparently the "official spelling") I went through the first time.
However--and I don't see why this would work--after I discovered I had the .cache file, the spotifypod.py script would run, but there would not be any songs to be seen (or heard). I then wrote a very truncated copy of view_model.py that I named sync.py. It only takes the first few lines (ending after the refresh_data() and refresh_devices() lines). Running that script, I could see the messages printed to the command line, telling me it was downloading songs, playlists, etc.
From then on, the spotifypod.py script worked fine and the playlists, artists and album data was there.
I'll try to figure out from my notes and my history the last few things I tried before I got satisfaction, but it would seem that the order you do things in is very important. Also, I did things like comment out the line in /etc/xdg/openbox/autostart that otherwise would start spotifypod.py automatically, and change the redirect URI several times--although each time I got the "Address in use" error. Obviously it must have worked at least once, because I got the .cache file.
I have been over this very carefully and my ipod just boots to a command line. I cant get it to run anything else. Anyone have any ideas?