(03-08-2020, 12:31 PM)maartin Wrote: After installing:
Rebooting leads to loss of current playlist. And no more text.
Having pictures with white (i.e. Linn) makes the text hard to read.
regarding Text color: I have some options here that I have tried with some success and will add Loss of playlist: Not sure what you mean here? No more text: Has this reverted to the cover only script which I assume you stll have as a service?
Just to confirm:
The script with text is not fully integrated into the install and will only run by the command
Quote:python3 moode-pirate.py.
If the service is still installed you can stop it before running moode-pirate
Quote:sudo service stop tft-cover
(03-08-2020, 01:23 PM)juantronik Wrote: Hi Russ,
I have the same experience Maartin has. But on local mp3s the text doesn`t scoll, it overlays several times til you can`t read the text anymore.
OK. I'm not happy with the scrolling myself, and will find a better way
I have some improvements in mind, based on some more pimorini libraries that are used in their mopidy scripts.
03-12-2020, 11:51 AM (This post was last modified: 03-12-2020, 12:07 PM by prithesh.
Edit Reason: delete other users comment
)
(03-12-2020, 09:46 AM)Hi Ross thank you for the very detailed guide. Your previous script worked very well , however the new code will display more information.I installed as per your new post, however script will not work once the pi has rebooted.I can only get to work by : Wrote:
when working the radio station logo is displayed with the correct Artist and Title, however the screen also shows the four push button displays which are non responsive these need to configured via gpio as directed in an earlier post.
the rolling script on certain radio stations is hard to read.
regards
(03-12-2020, 09:46 AM)Hi Ross thank you for the very detailed guide. Your previous script worked very well , however the new code will display more information.I installed as per your new post, however script will not work once the pi has rebooted.I can only get to work by : Wrote:
when working the radio station logo is displayed with the correct Artist and Title, however the screen also shows the four push button displays which are non responsive these need to configured via gpio as directed in an earlier post.
the rolling script on certain radio stations is hard to read.
regards
Hi.
is there any output to the shell when you try this?
Hello!! Its working fine for me at zero/rpi3+ and pirate audio headphones (last version moode and your instruction from github).. Show radios and mp3s covers.
....have one problem - its not start from rc.local (i made chmod before)... just one way for me - after moode start go to ssh and make manually
(03-12-2020, 11:43 PM)exviia Wrote: Hello!! Its working fine for me at zero/rpi3+ and pirate audio headphones (last version moode and your instruction from github).. Show radios and mp3s covers.
....have one problem - its not start from rc.local (i made chmod before)... just one way for me - after moode start go to ssh and make manually
You're English is better than some of my fellow countrymen
This is my complete /etc/rc.local file and it works for me:
Code:
#!/bin/sh -e
SQLDB=/var/local/www/db/moode-sqlite3.db
# Set cpu govenor
CPU_GOV=$(sqlite3 $SQLDB "select value from cfg_system where param='cpugov'")
echo "$CPU_GOV" | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
# Work around for Katana driver load failure on Pi-4B
AUDIO_DEVICE=$(sqlite3 $SQLDB "select value from cfg_system where param='i2sdevice'")
PI_REVNUM_SEGMENT=$(awk '{if ($1=="Revision") print substr($3,3,3)}' /proc/cpuinfo)
if [ "$AUDIO_DEVICE" = "Allo Katana DAC" ] && [ $PI_REVNUM_SEGMENT = "311" ]; then
rmmod snd_soc_allo_katana_codec
rmmod snd_soc_audio_graph_card
modprobe snd_soc_audio_graph_card
modprobe snd_soc_allo_katana_codec
echo `date +'%Y%m%d %H%M%S'` "rc.local ran Katana|Pi-4B driver reload" > /home/pi/katana.log
fi
(03-12-2020, 09:46 AM)maartin Wrote: Hi Ross, thank you for being that enthusiastic!
I did a quick try following your instructions on Githhub.
Trying to start the script results to:
Code:
pi@moode:~ $ python3 /home/pi/TFT-MoodeCoverArt/tft_moode_coverart.py
Traceback (most recent call last):
File "/home/pi/TFT-MoodeCoverArt/tft_moode_coverart.py", line 295, in <module>
main()
File "/home/pi/TFT-MoodeCoverArt/tft_moode_coverart.py", line 193, in main
mn = mean(im_mean)
UnboundLocalError: local variable 'im_mean' referenced before assignment
03-13-2020, 01:50 AM (This post was last modified: 03-13-2020, 01:56 AM by exviia.)
(03-12-2020, 11:57 PM)rusconi Wrote:
(03-12-2020, 11:43 PM)exviia Wrote: Hello!! Its working fine for me at zero/rpi3+ and pirate audio headphones (last version moode and your instruction from github).. Show radios and mp3s covers.
....have one problem - its not start from rc.local (i made chmod before)... just one way for me - after moode start go to ssh and make manually
You're English is better than some of my fellow countrymen
This is my complete /etc/rc.local file and it works for me:
Code:
#!/bin/sh -e
SQLDB=/var/local/www/db/moode-sqlite3.db
# Set cpu govenor
CPU_GOV=$(sqlite3 $SQLDB "select value from cfg_system where param='cpugov'")
echo "$CPU_GOV" | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
# Work around for Katana driver load failure on Pi-4B
AUDIO_DEVICE=$(sqlite3 $SQLDB "select value from cfg_system where param='i2sdevice'")
PI_REVNUM_SEGMENT=$(awk '{if ($1=="Revision") print substr($3,3,3)}' /proc/cpuinfo)
if [ "$AUDIO_DEVICE" = "Allo Katana DAC" ] && [ $PI_REVNUM_SEGMENT = "311" ]; then
rmmod snd_soc_allo_katana_codec
rmmod snd_soc_audio_graph_card
modprobe snd_soc_audio_graph_card
modprobe snd_soc_allo_katana_codec
echo `date +'%Y%m%d %H%M%S'` "rc.local ran Katana|Pi-4B driver reload" > /home/pi/katana.log
fi