(02-27-2020, 11:51 AM)maartin Wrote: That did the trick. Now I have the MoOde Logo on the TFT (very nice!). I had to reboot twice before I was able to listen to Webradio again, but there a no images of the stations, only "moOde".
apologies again. Something else for the readme.
The metadata file must be turned on in moode as the python script uses a combination of data from this file and mpd itself to know where to get the images.
Open the moode web page
then go to...
Configure -> System
Scroll to Local Services
click the Metadata file switch to on and click "set"
can't remember if a reboot is required.
That should help.
The buttons...
The Mopidy setuo won't work for moode.
Moode has some shell scripts that should do what you want for volume. pc cappands can do the rest.
check out this forum thread on using Moode's gpio config feature.
Code:
For:
play_pause,active_low,150 use mpc toggle
volume_down,active_low,150 use /var/www/vol.sh dn 1
next,active_low,150 use mpc next
volume_up,active_low,150 use /var/www/vol.sh up 1
Try this, but if there are issues with images not displaying correctly on the pirateaudio, let me know.
I need to tidy the code a bit to prevent some issues anyway, but it may be a couple of days.
I will also add files to allow you torun the script as a systemd service if you wish, which I find works well for other python scripts.
Quote:It is so nice to have that Logo visible. Thanks so much!
Glad to help.
Do you only use the pirateaudio for radio stations?
I am adding some extra functionality that will display cover art that is embedded in files.
So far it works for mp3, flac, m4a and ogg files.
So if you play songs from your own collection, embedded cover art will display.
(03-01-2020, 12:04 PM)maartin Wrote: Hi there Russ,
strange new problem here.
Because of not having any sound anymore I installed all from scratch.
All as expected. But when starting the Station first time the sound stops just after parts of a second, but the clock in the GUI is still running.
When rebooting after this happens, strangely my playlist is gone. Adding a station and start play leads to the having no sound at all, while the clock in GUI is turning.
Any ideas anybody??
Quote:Audio information Input / Output
Source: http://direct.francemusique.fr/live/fran...z-hifi.mp3
Encoded at: VBR compression
Decoded to: 24 bit, 48 kHz, Stereo, 128 kbps
Destination: Local
Output rate: 24 bit, 48 kHz, Stereo, 2.304 Mbps DSP operations
Volume ctl: Software (MPD 32-bit float with dither)
Resampling: off
Polarity inv: off
Crossfade: off
Crossfeed: off
Parametric EQ: off
Graphic EQ: off
Replaygain: off
Normalize vol: off
Chip options: , Gain=-6dB, Boost=0dB Audio Device
Device: Pimoroni pHAT DAC
Chip: Burr Brown PCM5102A
Interface: I2S
Formats: S16_LE, S24_LE, S32_LE
Platform: Pi-3B+ 1GB v1.3
Any other output needed to find the problem?
All the Best
Maartin
I have no issues with the script on my pi zero, albeit with the ST7735 driver
Can we test to see if the cover script with the ST7789 driver is causing this?
Can you try this?
Disable the tft-cover service and reboot the rpi without the cover script
Then start the radio station again and see if the problem persists without the cover display.
This helps to have the sound back, of course no more TFT.
On the MoOd- GUI I have this error message if the ST7789-Script is active:
MPD error JSON.parse: unexpected end of data at line 1 column 1 of the JSON data
Hope this is a hint to the error which seems to be found in the ST7789-Script.
If there are any other test to do I am glad to help.
All the Best
Maartin
[/quote]
I may have found the issue.
Some of the Pimoroni documentation appears to have errors, and pirateaudio owners were having the same problem with players other than moode
I have updated github with a correction to cover_7789.py that removes the problem on my RPI zero with Pimorone Phat Dac.
As I don't have an ST7789 display I cannot be sure if the covers will still display.
Please reinstall the script from github.
Code:
cd /home/pi
git clone https://github.com/rusconi/tft-cover.git
and make bash scripts executable
Code:
cd /home/pi/tft-cover
chmod u+x install.sh
chmod u+x tft-cover_start.sh
The update was to the backlight control pin, so I hope the display still works
03-05-2020, 11:54 AM (This post was last modified: 03-06-2020, 04:04 PM by juantronik.)
Thanks all for the good information about the Pirate Audio. Is it possible to display the artist and trackname on the tiny display like on the added image ? Can`t find any information about it.