|Bertrand Benjamin dcd7ee16b8||1 year ago|
|fonts||1 year ago|
|images||1 year ago|
|pics||1 year ago|
|.gitattributes||1 year ago|
|.gitignore||1 year ago|
|README.md||1 year ago|
|clear_display.py||1 year ago|
|config.yml||1 year ago|
|install_service.sh||1 year ago|
|remove_service.sh||1 year ago|
|tft-moodecoverart.service||1 year ago|
|tft_moode_coverart.py||1 year ago|
|tft_moode_coverart.sh||1 year ago|
version = "0.0.5" : changes
version = "0.0.4" : changes
version = "0.0.3" : changes
Based on the look of the pirate audio plugin for mopidy.
Works with Pimoroni pirate audio boards with 240*240 TFT (ST7789), as well as standalone ST7789 boards.
The script will display cover art (where available) for the moode library or radio stations.
Overlays with a Time bar, Volume bar and Play/Pause, Next and Volume icons to match the Pirate Audio buttons are optional.
There is also an option in config.yml to not display metadata
The script has a built in test to see if the mpd service is running. This should allow enough delay when used as a service. If a running mpd service is not found after around 30 seconds the script displays the following and stops.
MPD not Active! Ensure MPD is running Then restart script
Metadata will only be displayed for Radio Stations and the Library.
Dac Input renderers, different backgrounds will display.
The overlay colours adjust for light and dark artwork, but can be hard to read with some artwork.
The script does not search online for artwork
You can SSH into your RPI, enter commands at the shell prompt, and use the nano editor.
Your moode installation works and produces audio
If your pirate audio board doesn't output anything
Choose "Pimoroni pHAT DAC" or "HiFiBerry DAC" in moode audio config
See the Installation section here about gpio pin 25.
Enable SPI pn your RPI
see Configuring SPI
Install these pre-requisites:
sudo apt-get update sudo apt-get install python3-rpi.gpio python3-spidev python3-pip python3-pil python3-numpy sudo pip3 install mediafile sudo pip3 install pyyaml
Install the TFT driver.
I have forked the Pimoroni driver and modified it to work with other ST7789 boards. Install it with the following command:
sudo pip3 install RPI-ST7789
Ensure 'Metadata file' is turned on in Moode System Configuration
cd /home/pi git clone https://github.com/rusconi/TFT-MoodeCoverArt.git
The default config should work with Pirate Audio boards
The config.yml file can be edited to:
The comments in 'config.yml' should be self explanatory
Make the shell scripts executable:
chmod 777 *.sh
Test the script:
python3 /home/pi/TFT-MoodeCoverArt/tft_moode_coverart.py Ctrl-c to quit
If the script works, you may want to start the display at boot:
cd /home/pi/TFT-MoodeCoverArt ./install_service.sh
Follow the prompts.
If you wish to remove the script as a service:
cd /home/pi/TFT-MoodeCoverArt ./remove_service.sh