Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Idea: Pirate Audio 240x240 cover display
#30
(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
Code:
python3 /home/pi/TFT-MoodeCoverArt/tft_moode_coverart.py

and its work perfect!

Thanks a lot rusconi  !

p.s. sorry for my bad english
You're English is better than some of my fellow countrymen Cool 
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

# USB storage auto-mounter
/usr/bin/udisks-glue --config=/etc/udisks-glue.conf > /dev/null 2>&1
#/usr/bin/devmon --exec-on-drive "/var/www/command/util.sh smb_add %d %f" --exec-on-remove "/var/www/command/util.sh smb_remove %f" --always-exec --no-gui > /dev/null 2>&1 &

# 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

# moOde startup and job processor daemon
/var/www/command/worker.php > /dev/null 2>&1

# start TFT-Moode-CoverArt
/home/pi/TFT-MoodeCoverArt/tft_moode_coverart.sh -s > /dev/null 2>&1

exit 0

If it still doesn't work you could use
Code:
usr/bin/python3 /home/pi/TFT-MoodeCoverArt/tft_moode_coverart.py > /dev/null 2>&1

to replace

Code:
/home/pi/TFT-MoodeCoverArt/tft_moode_coverart.sh -s > /dev/null 2>&1


Regards

Russ

Thanks for your help but this replace not work for me...  iam put next text in rc.local:



Code:
# start TFT-Moode-CoverArt
/home/pi/TFT-MoodeCoverArt/tft_moode_coverart.sh -s > /dev/null 2>&1
/home/pi/TFT-MoodeCoverArt/tft_moode_coverart.sh -q
sleep 10
python3 /home/pi/TFT-MoodeCoverArt/tft_moode_coverart.py
....iam not programmer, but it work now.

Thanks for help rusconi !!

p.s. and my gpio config for pirate audio, if somebody need it


Attached Files Thumbnail(s)
       
Reply


Messages In This Thread
Pirate Audio 240x240 cover display - by bobr80 - 01-11-2020, 07:59 PM
RE: Pirate Audio 240x240 cover display - by exviia - 03-13-2020, 01:50 AM
RE: Pirate Audio 240x240 cover display - by leobo - 04-12-2021, 06:26 PM

Forum Jump: