Skip to content
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

Roadmap & Suggestions #1

Open
6 of 8 tasks
Gadgetoid opened this issue Aug 23, 2020 · 5 comments
Open
6 of 8 tasks

Roadmap & Suggestions #1

Gadgetoid opened this issue Aug 23, 2020 · 5 comments

Comments

@Gadgetoid
Copy link
Member

Gadgetoid commented Aug 23, 2020

This isn't a super complex package, and I intend to keep the feature-set pretty narrow although it could be expanded to display this same information on almost any other LCD display with some tweaks.

However for now my roadmap is as follows:

  • Add support for reading options from a config file /etc/default/pidi_spotify perhaps?
  • Add support for this program to be run as a client allowing it to interpret Raspotify hook environment variables directly and effectively control its server counterpart via the FIFO.
  • Add support for this program to be run as a daemon... probably doesn't need forking and all that fancy stuff, but might be nice?
  • Allow cache path to be configured in settings/args
  • Add logging with configurable output
  • Maybe add some indication of whether the track is currently playing or paused (should be possible)
  • Tidy up this library and turn into a Python package with an endpoint serving the pidi_spotify "binary".
  • Test support for this LCD suggested by @dglaude https://shop.pimoroni.com/products/adafruit-mini-pitft-1-3-240x240-tft-add-on-for-raspberry-pi (should work- same resolution and driver - Data/Command = 25, Backlight = 22)

If you have any suggestions, desires or requests then please add them here. However I intend to keep this tool pretty slimline and wont be adding any complicated features.

Here's what it will never do:

  • It will never support any kind of button input, if you want to use the buttons for something use RPi.GPIO or gpiozero and write your own script
  • This also means no volume control, no skip and no play/pause on Pirate Audio. Sorry. It's not possible.
  • In fact - It will never be able to control Spotify or read private information from your Spotify account. It will only ever know the TRACK_ID you have played via Spotify Connect, the VOLUME set, and the POSITION_MS into that track you have seek'd.

Note: This will not run alongside Mopidy and is not indended for Mopidy users. If you're installing Raspotify alongside Mopidy then you can use mpc to push Spotify tracks into Mopidy. See my last post here: pimoroni/pirate-audio#17

@Gadgetoid
Copy link
Member Author

It should be possible to use the Adafruit Mini PiTFT 1.3" by editing /etc/default/pidi-spotify and adding:

spi-data-command-pin=25
spi-backlight-pin=22

If anyone wants to give it a go, this requires the devel version of the code in the pending PR: #2

@robrecord
Copy link

Will it be possible to clear the display and turn the backlight off when Spotify has stopped?

@Gadgetoid
Copy link
Member Author

Possibly, I think there's a "stop" command issued, but I don't know what circumstances this is triggered by.

@JasonLG1979
Copy link

@Gadgetoid Not so much a suggestion but you and/or your users may find the asound.conf in this Gist useful.

asound.conf can be a bit of black magic for most people, the above Gist vastly simplifies audio configuration and tweaking. It creates sorta a plughw on steroids. It allows you to change pretty much everything except channel count and mapping by editing only 1 line (well, 3 if your DAC isn't CARD 0).

See: dtcooper/raspotify#298 (comment)

@EvanHopps
Copy link

Would there be a way to rotate the display like there was in Mopidy? I my Pi on the wall in its case with the LCD on the bottom because of space requirements and the direction my aux jack needed to point. In Mopidy I used Rotate=270 in the config file. Now I don't use Mopidy at all and didn't see a good place to rotate the display.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants