03-13-2020, 09:23 PM
(03-13-2020, 06:40 AM)prithesh Wrote:(03-13-2020, 02:47 AM)Hi Russoni Thank you for you replying, I have it running now I used exviia\s start up code and all seems well when i press play on the Moode Audio interface. Thank you to exviia for sharing his work around : Wrote: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
(03-13-2020, 10:25 AM)exviia Wrote: Hi! Iam noob in programing. So, i have searched with google "delay script autorun raspbian" and used sleep command, because i needed script working after music started. At same time, in my case, it wasnt working..display was on, but no showed cover.
I hope you guys understand my english..
Great that it works for both of you now.
The delay can be important, as the display script requires MPD to be running first.
Just some things..
what you have in rc.local
- Tries to start the script - [/home/pi/TFT-MoodeCoverArt/tft_moode_coverart.sh -s > /dev/null 2>&1]
- Stops the script - [/home/pi/TFT-MoodeCoverArt/tft_moode_coverart.sh -q]
- waits 10 seconds
- Starts the script
removing
Code:
/home/pi/TFT-MoodeCoverArt/tft_moode_coverart.sh -s > /dev/null 2>&1
/home/pi/TFT-MoodeCoverArt/tft_moode_coverart.sh -q
Code:
#/home/pi/TFT-MoodeCoverArt/tft_moode_coverart.sh -s > /dev/null 2>&1
#/home/pi/TFT-MoodeCoverArt/tft_moode_coverart.sh -q
should work for you, although the delay might need to be increased to 12 or 15 seconds without those two script executions.
Removing those lines removes 2 places where things can fail.
and
Code:
python3 /home/pi/TFT-MoodeCoverArt/tft_moode_coverart.py
Code:
python3 /home/pi/TFT-MoodeCoverArt/tft_moode_coverart.py &
Of course, while it works for you, there's no need to change anything
regards
Russ