@suisat and @gez-mycroft First of all, my apologies for my late response / abscence. Momentarily it is rather busy with my daytime job, so haven’t much played with mycroft, nor being active online.
First things first;
This plugin was quickly, let say “blind” coded without any Python knowledge what so ever. I just saw @Dominik his Skill for the ReSpeaker V2 box and looking at his code I discovered that the Python libraries it used, already had everything in place for the “other” MIC arrays. That code also was properly commented, so it looked like a quick revamp to get it working on the 4-MIC array. Apparently is isn’t
I still don’t have much / any time to investigate or fix / adjust, but here are my thoughts on the above testing and information.
With the commands here I think I bring it to run. I am running that skill on a RPi3B+ with Picroft stable.
Yes, this is what I already expected some what. These commands can be added to a “requirements.sh” next to the “requirements.txt” file. Similar as this one from @Dominik ;
However the first command; “mycroft-pip install RPi.GPIO” should be removed and added to the “requirements.txt” file instead;
pixel-ring
gpiozero
RPi.GPIO
I don’t know if both; “gpiozero” and “RPi.GPIO” are needed, or that I made a mistake and “gpiozero” needs to be changed to “RPi.GPIO”
Then on to the strangest thing of all, you needed to type this into another terminal / python CLI;
from pixel_ring import pixel_ring
from gpiozero import LED
power = LED(5)
power.on()
pixel_ring.set_brightness(10)
pixel_ring.wakeup()
All this code is within the Skill init.py file as shown here;
So it looks like the code within the Skill is not properly loaded or initialised. I have no clue why as I don’t know Python yet.
What I can think of is that, perhaps the Skill initialisation fails because I deleted the " settingsmeta.json" ?!?! The content of it looked like only placeholders, so deleted it. It does not do much yet, but considering that you apparantly also can enable/disable the pixelring by commands, hence toggling it is needed to get stuff working, perhaps this file need to be there as well ?
Perhaps @forslund can have a look, if that could be the cause of it. Or perhaps you could test it by creating the file with the following content, similar as @Dominik ;
So far, my ideas and thoughts. Hope to start cracking with Mycroft again any time soon now…