Thank you for your donation!


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


Idea: Pirate Audio 240x240 cover display
#34
(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
Smile
(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
  1. Tries to start the script  - [/home/pi/TFT-MoodeCoverArt/tft_moode_coverart.sh -s > /dev/null 2>&1]
  2. Stops the script - [/home/pi/TFT-MoodeCoverArt/tft_moode_coverart.sh -q]
  3. waits 10 seconds
  4. Starts the script
the first 2 lines seem unnecessary to me.
removing

Code:
/home/pi/TFT-MoodeCoverArt/tft_moode_coverart.sh -s > /dev/null 2>&1
/home/pi/TFT-MoodeCoverArt/tft_moode_coverart.sh -q
or commenting to stop execution
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
will be OK as long as it's the last command in rc.local. If you ever want to put anything in rc.local after this you well need to add an & at the end of this line, like ...

Code:
python3 /home/pi/TFT-MoodeCoverArt/tft_moode_coverart.py &

Of course, while it works for you, there's no need to change anything Big Grin

regards

Russ
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 rusconi - 03-13-2020, 09:23 PM
RE: Pirate Audio 240x240 cover display - by leobo - 04-12-2021, 06:26 PM

Forum Jump: