@AxLED Do you plan to update the plugin to work with the latest version of Volumio (VERSION: 3.779 RELEASE DATE: 08-11-2024)?
@Arut_Arakelov
whats not working in your installation?
If its the buttons - there is an issue with rpi kernel 6.6 an rpi.gpio library
I dont have a solution yet
AxLED
Yes. That’s it. Hope you will find a solution.
Hi AxLED and thank you for your hard work…
I have installed tomatpasser’s GPIO Buttons 0.8.4 version and the 3 buttons A, B, & Y are working perfect after assignments A=5, B=6 and Y=24 on my pirate audio board! The only problem is that in this GPIO Buttons plugin there is not assignment for the Menu ( X button)…
I am running the latest volumio update (25th Nov 2024) on a Zero2W motherboard.
If you can give us a solution for X button everything will be fine.
Thanks in advance
& Keep your excellent work
Alex K (GR)
Hi @alexfeb68. There is a Plugin option (Plugins → Installed Plugins → Pirate Audio) to set the GPIO pin for the Y button of the Pirate Audio board (20 or 24), but none for the X button as far as I know. Maybe try changing from 24 to 20 and see if that works. If that doesn’t help, you can ssh into the volumio machine, and run Pirate Audio from the command line (stop the service first). When you run it this way, it will print out the button that has been pressed each time you press one (e.g. ‘button press: 20’). Hope this helps!
Continuing the discussion from [Plugin] pirate audio:
Lemmy,
Itried unsuccssfully using your instructions. It still updated upon connecting to the internet. Reflashed the image and it offered to update to kernal 6.6, so I installed it still is not working, just a dark screen and appears the buttons don’t function. getting desperate to get it working again.
Hopefuly you or AxLED can come up ith a guide that works.
Thanks, Karl
I thought I’d share a personal fix that might help others. I updated the GPIOs to use a polling thread inside display.py
. I know it’s not the ideal approach, but the overhead is very low.
For reference, I’m running this on Volumio 3.785 with kernel 6.6.
I’m not sure about the rules here regarding sharing scripts directly, but I’d be happy to pass this along to Axled or anyone else who might find it useful!
Hey @Retro_teck,
You can post diff here. I am confident, that our repo gurus will have better understanding what will be required next.
@balbuze - can you kindly step in with instructions please?
Kind Regards,
hello,
the best way to share your work:
read this : Plugin system overview | Volumio Developers Documentation
from your volumio device
- clone github repo
git clone https://github.com/volumio/volumio-plugins-sources --depth=1
- cd to the plugin you want to modify, in this case
cd volumio-plugins-sources/pirateaudio
- modify the code you want. Don’t forget to update version number in
package.json
Install the plugin
volumio plugin install
and test carefully!
- uninstall the plugin
If previous step are ok, you are ready to commit, but first remove node-modules folder
rm -Rf node_modules
- then
git add *
git commit -m 'pirateaudio - my mod'
git push origin master
- once approved, it will be merged. And I’ll submit it to make it available as beta!
- Thanks!
lemmy668
I followed lemmy668 full instruction - but I got the down mentioned error!
python3 display.py
Traceback (most recent call last):
File “display.py”, line 12, in
from PIL import ImageFont, Image, ImageDraw, ImageStat, ImageFilter
ModuleNotFoundError: No module named ‘PIL’
Because of error
I had to add this:
sudo apt-get update
sudo apt-get install -y python3-rpi.gpio python3-spidev python3-pip python3-pil python3-numpy
Then you get another error(Importing the multiarray numpy extension module failed…):
I had to add this:
sudo apt-get install libatlas-base-dev
python3 display.py
register 5
success
register 6
success
register 16
success
register 20
success
Worked!
AND in the volumio interface → plugin : pirate audio → settings → change 20 to 24(GPIO Pin) - for buttons to work normally
The OK volumio version mentioned by Sef:
https://updates.volumio.org/pi/volumio/3.631/Volumio-3.631-2024-02-21-pi.zip
!!!Watch out: sudo pip3 install “python-socketio>=4,<5” it should be " ", not “ ”
Credits:
lemmy668
Sef
Thank both of you!
Forgot to mention - Raspberry Pi Zero W1.1 with Pirate Audio
Also
For the DAC to work In Playback Options → select HifiBerry Dac and Mixer type - Software
@Retro_teck Any news about sharing your fix ?
@Arut_Arakelov
It’s available as a beta, enable Test Mode via volumio.local/dev (Or 192.168.x.x/dev). And download version 0.1.3. If it works please give feedback.
Thanks for the new Pirate audio plugin verion !!
I have tried this version 0.1.3 of the Pirate Radio plugin in combination with the latest version of Volumio (3.795). The Pirate Audio device does not start instantly, when logging is enabled on the xxx.xxx.xxx.xxx/dev webpage, I can see this error message when I try to start the file display.py.
*File “/data/plugins/system_hardware/pirateaudio/display.py”, line 13, in *
import ST7789 # v0.0.6
ModuleNotFoundError: No module named ‘ST7789’
pirateaudio.service: Main process exited, code=exited, status=1/FAILURE
pirateaudio.service: Failed with result ‘exit-code’.
By installing some modules as described by lemmy668:
sudo pip3 install st7789==0.0.4
sudo pip3 install “python-socketio>=4,<5”
and changing GPIO 20 to GPIO 24 (already described), a reboot,
the pirate audio board gets working, with buttons, and as far as I can see all features of Volumio are OK
But, it looks like Volumio restarts every few minutes, during this process I can see repeatedly these lines in the logging:
info: CoreStateMachine::syncState stateService stop
info: CoreStateMachine::syncState currentStatus play
info: CoreCommandRouter::volumioPushState
info: CoreStateMachine::stPlaybackTimer
info: ControllerMpd::pushState
info: CoreCommandRouter::servicePushState
info: CoreStateMachine::pushState
info: CoreCommandRouter::executeOnPlugin: volumiodiscovery , saveDeviceInfo
info: CoreCommandRouter::volumioPushState
info: CorePlayQueue::getTrack 0
Has anybody an idea how to get rid of these restarts?
The display/button problem that occurred after the Volumio update of autumn 2024 has been solved I think.
Thanks !
Kind Regards,
Sef
Newbie trying this: I got the stable plugin installed but no video. I saw in the thread that someone said you had to also install the touchscreen plugin. Is that accurate? I am installing it to give it a try. If that doesn’t work I will try the beta plugin route.
Got it to work. I installed the touchscreen plugin. Then…I stepped through the commands that @lemmy668 did but had to do them one at a time and replaced double quotation marks on this step (sudo pip3 install “python-socketio>=4,<5”) with single quotation marks and then rebooted. YAY!!!