-
-
Notifications
You must be signed in to change notification settings - Fork 502
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
DietPi-Software | Add spotifyd #4713
Conversation
@MichaIng why not merging installation and configuration steps? I thought this would be our goal on long term. |
Yes, not done by me, I just found the brand and opened the PR to not forget about it 😄. The wiki needs to be updated: https://github.com/MichaIng/DietPi/wiki/How-to-add-a-new-software-title |
Hah! Well done finding it.. Yes, you are free to merge. I meant to create a doc pull request for it at some point, but life got in the way. The installer could use a bit of work. I only tested it on a RPi, but there are other binaries there as well. |
Many thanks! Indeed, currently its only armhf, but shouldn't be hard to add an arch dependent variable to the mawk pattern where pre-compiled binaries are provided. |
Is there an easy way to see what the various ARCH variables look like on other platforms? One of the reasons why I didn't spend too much time fixing the mawk pattern was that I wasn't able to easily find references for those... |
It's only four:
The filename changes accordingly:
|
This change adds support to all supported platforms.
There we go, added the missing patterns. I used the slim package for older RPi's, but to be honest, I'm not fully certain about the differences so I decided to play it safe. |
Many thanks, looks good. I'll not be able to test for first beta tonight, but maybe, as it is a very simple clean implementation, on a future beta iteration next week. |
+ DietPi-Software | Spotifyd: Change software ID to 199 + DietPi-Software | Spotifyd: Change install dir to /opt/spotifyd and config/cache dir to /mnt/dietpi_userdata/spotifyd + DietPi-Software | Spotifyd: Pre-create a config template, if not yet present + DietPi-Software | Spotifyd: Do not add "spotifyd" user to "dietpi" group + DietPi-Software | Spotifyd: Merge install and config code blocks + DietPi-Software | Spotify Connect Web: Merge install and config code blocks + DietPi-Software | Raspotify: Remove APT key as well on uninstall
@ressu |
Done.. I couldn't find a way to retroactively make a PR committable, so I simply invited you to my fork of the repo. |
Many thanks, I though about the So I aligned it a bit with our other install options:
What I'm unsure about is what to do about the Spotify account credentials. We could do some input boxes, but there is quite a bunch of possibilities, password, password command and key, so this may be complicated. I'll do an install test now to see how it behaves without credentials given at first. ... with no credentials, it starts up. I have really no idea about Spotify. In this case one authenticates via client, or how does it work? |
Normally you would attach this to your spotify account via spotify connect. And what is different from raspotify (for example) is that spotifyd will cache the credentials in cache directory when the connection is first made with a spotify client (mobile or native client) and this will make spotifyd visible in web too. So unlike with raspotify where adding credentials is recommended for some operational modes, spotifyd goes the extra mile and attempts to work out of the box, even without credentials. In my installation I'm not explicitly defining credentials anywhere and things just work. So did raspotify, but if it disconnected from spotify hotspot the connection would have had to been recreated with a native client. As for the file locations, those make sense. I was mostly mimicking other installers when I was writing the code and I was unable to find guidance on how DietPi prefers the paths to be created. |
Awesome, then I think we're good to go. I'm still not 100% sure in this case whether the executable location is really good there. The official docs likely state to call the |
Ready from my end. @ressu anything missing? Btw would you find time to write a docs section? https://dietpi.com/docs/software/media/#raspotify |
Looks good from my side. I'll try and get to documentation during the weekend. |
As we do the release tomorrow, I'll start with a rough template. |
@ressu, I just had a look through forks and found your good work on implementing spotifyd. Am I allowed to merge it? 😃