[IDEA] Pirate Audio 240x240 cover display - Printable Version +- Moode Forum (https://moodeaudio.org/forum) +-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3) +--- Forum: Feature requests (https://moodeaudio.org/forum/forumdisplay.php?fid=8) +--- Thread: [IDEA] Pirate Audio 240x240 cover display (/showthread.php?tid=2065) |
RE: Pirate Audio 240x240 cover display - rusconi - 03-13-2020 (03-13-2020, 01:50 AM)exviia Wrote: Thanks for your help but this replace not work for me... iam put next text in rc.local: Glad it's working foe you. did you need to add the 'sleep 10' command for it to start properly? If so, it's probably because of the pi zero, and MPD not being fully started when the script starts I've had to use the sleep command in the past for similar issues. And thanks form sharing the gpio config Russ RE: Pirate Audio 240x240 cover display - prithesh - 03-13-2020 (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: RE: Pirate Audio 240x240 cover display - exviia - 03-13-2020 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.. RE: Pirate Audio 240x240 cover display - rusconi - 03-13-2020 (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: (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. 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
removing Code: /home/pi/TFT-MoodeCoverArt/tft_moode_coverart.sh -s > /dev/null 2>&1 Code: #/home/pi/TFT-MoodeCoverArt/tft_moode_coverart.sh -s > /dev/null 2>&1 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 RE: Pirate Audio 240x240 cover display - exviia - 03-14-2020 In my case.. If I leave only these two lines: Code: sleep 10 with or without &.... or just leave only: Code: python3 /home/pi/TFT-MoodeCoverArt/tft_moode_coverart.py ....I always have a screen alltime like this, with "snow"... (foto). rusconi Thank you very much for explaining, I understand something, but things like "> /dev/null 2>&1" I don't understand what it is and why... Important for me that everything is turned on with a single button to turn on zero pi (I have a battery for zero pi) and it is no longer necessary to have a pc, mobile, etc to see music information that sounds. I have used google translator this time. Greetings! RE: Pirate Audio 240x240 cover display - juantronik - 03-14-2020 @rusconi Hey, it`s working real great now. But I have another problem right now. Is it possible to use only the display of the Pirate Audio ? Everytime I changed the audio output to bluetooth, the display doesn`t work anymore. It stuck on the last image and the buttons also doesn`t work. If i switch back to the Pirate Audio, it worked again. RE: Pirate Audio 240x240 cover display - rusconi - 03-14-2020 (03-14-2020, 06:32 PM)juantronik Wrote: @rusconi My understanding is that bluetooth audio does not use mpd. the display script requires mpd and will crash without it. Most song and image display data is obtained from MPD. It only works with internet radio and the library at this stage. Russ RE: Pirate Audio 240x240 cover display - rusconi - 03-16-2020 (03-15-2020, 12:55 PM)maartin Wrote: Hi there Russ and others, @maartin Do you mean just a cover and artist, title and album/station.? Making the script more complex is part of me learning python, so I keep adding features I'll look at making extras optional at start. And a simpler script may work best for you. Russ RE: Pirate Audio 240x240 cover display - rusconi - 03-16-2020 @maartin I have added script 'coverdisplay-basic.py' that: Only displays
edit the rc.local ines to Code: # start TFT-Moode-CoverArt /usr/bin/python3 Russ RE: Pirate Audio 240x240 cover display - rusconi - 03-17-2020 (01-11-2020, 07:59 PM)bobr80 Wrote: I've bought one of the Pimoroni Pirate Audio DAC that has a 1.3" IPS colour LCD (240x240px) (ST7789 driver) Pirate Audio: Line-out for Raspberry Pi (03-17-2020, 09:08 AM)maartin Wrote: Hi Russ, @maartin Apologies My proof-reading is terrible. Code: #start TFT-Moode-CoverArt /usr/bin/python3 should have read Code: #start TFT-Moode-CoverArt I'm expecting delivery of a 240*240 ST7789 TFT later this week. My testing should be more complete after that Russ |