|Bertrand Benjamin dcd7ee16b8||9 months ago|
|fonts||9 months ago|
|images||9 months ago|
|pics||9 months ago|
|.gitattributes||9 months ago|
|.gitignore||9 months ago|
|README.md||9 months ago|
|clear_display.py||9 months ago|
|config.yml||9 months ago|
|install_service.sh||9 months ago|
|remove_service.sh||9 months ago|
|tft-moodecoverart.service||9 months ago|
|tft_moode_coverart.py||9 months ago|
|tft_moode_coverart.sh||9 months 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