[HowTo] Access MyOSMC modules seperately and create menu items

After some help from @Karnage I managed to access MyOSMC modules separately.
I created menu items with these modules, so I could access some of them directly (which is faster, instead of going through MyOSMC app).
I’m currently using OSMC 2016.02-3 on my Raspberry Pi 2, but this should work with older and newer versions too.
Of course it goes without saying that if MyOSMC app gets changed (as it’s going to be at some point) this tutorial probably won’t work!

For creating a menu/submenu item you need a skin which works with skin shortcuts addon.
Modules are numbered like this:
Osmcsetting.pi - 0
PiOverclock - 1
Updates - 2
Networking - 3
Logging - 4
Appstore - 5
Services - 6
Remotes - 7

These numbers are to be used while creating labels and custom commands for menu items.
Follow the codes below exactly and you’ll get access to MyOSMC modules with names from MyOSMC app.
Label should be:
X is one of the numbers from the above list.

Action should be:
RunScript($INFO[Window.Property(MyOSMC.Module.Script)], $INFO[Window.Property(MyOSMC.Module.X.id)])
X is one of the numbers from the above list.

If you have any questions go ahead and ask, I’ll do my best to help you out.

1 Like

This has been taken care off, thanks Karnage!

You figured it out then?

If you feel up to it, then maybe write up a How To for other users?

Your solution may not survive the next major upgrade to the MyOSMC addon, but that is probably quite a way off anyway and would have a better implementation to boot.

Yeah, you pointed me out to a right direction.
It was just the question of finding the right part of code.

I’ll write it up when I get some free time!

I agree, this addon should be at least redesigned, maybe even rewritten in order to provide better implementation.

All done with the tutorial.
Let me know if I should include anything else.