-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
argonforty-device: add package (support for the Argon ONE cases) #9662
base: master
Are you sure you want to change the base?
argonforty-device: add package (support for the Argon ONE cases) #9662
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please change the depends and the addon projects settings.
a047bfd
to
c87cb60
Compare
the current type Moving to
EDIT: First wiki link corrected. If I'm wrong and only the directory in the build system changes, that would of course only be a cosmetic change. ;-) The package.mk files have been updated. |
The package.mk changes look fine but I'm still confused regarding the addon type. PKG_ADDON_TYPE likely doesn't matter as you ship your own addon.xml but in your addon.xml you define the addon to be a service type one: So I'd say the package should be moved to the service directory, PKG_SECTION should be changed to service and you should set the addon id to service.argonforty-device This is also how we do it in our LibreELEC settings addon - see https://github.com/LibreELEC/service.libreelec.settings/blob/master/addon.xml I'll let my colleagues comment on this, kodi addons isn't excatly my area of expertise |
When I started to improve and stabilize the addon, I came to the same point as you. However, I found the KODI documentation on the differences of addon types in detail rather irritating than a clear advice. After finding some other addons with “script.service” and the linked table in the wiki entry from above - I had stopped researching to change the addon type. Some months ago I made the first steps to adopt the current addon to the LibreELEC build system. I started with the existing package.mk delivered by Argon40 and tried to understand what was going wrong with it. I tried to ensure that the generated addon.xml in the target matches to the existing one. This ensures also, that new installation are cross compatible to existing ones - because the addon id doesn't changes. I appreciate getting some light on this as I feel lost in the documentation on this point. |
For testing purposes I moved the package.mk from script to service directory and ended with that situation:
Afterwards I changed PKG_SECTION to "service" as well:
I can't remember all the details, but that might have been the reason for my decision to place it below the script directory. If it should be better to place it below 'service' directory and 'PKG_SECTION="service"' it need some little changes in the sources. Maybe as a patch or in general. This will trigger the migration problem mentioned above, but I guess it would only be a temporary problem. I will await the comments from your colleagues, to get some more clarity about the best practice if possible. :-) |
Looking at the kodi addon repo https://mirrors.kodi.tv/addons/omega/addons.xml.gz I count 7 addons using a As It will be a one-time action for your current users (removing the old addon) when switching to the one from our repo, but after that everything should be fine |
I will rename it to “service.argonforty-device” to match the section. Or did you also think I should rename the addon from argonforty to argon40? It was Argon40's decision to use 2 different spellings for their company, depending on which logo/imprint you look at. By the way: It's not just the users from my repo. I can inform them via the GitHub page and maybe in the existing discussion thread in the LE forum. I think there are also many others out there who are being misled by the Argon40 remote control user guide and its recommendation to install the outdated 0.0.1 version. |
service.argonforty-device is of course fine as addon id. And as you have created a fork / new version of the old argon addon it's also a good idea to use a different addon id, in case argon update their addon at some point in the future. If you'd keep using the same id you'd have a clash |
Can I suggest |
I'm open to suggestions if we're going to start again anyway. The previous ID was purely historical (and due my lack of knowledge). I don't know anything about Argon40's idea behind it. In the past I had stumbled across other Argon40 accessories/enclosures that use the same I2C command set for fan control and might be compatible with it. |
During the continuous development of the ArgonForty Device Configuration add-on I was asked several times, like: “Why is the addon not installable out-of-the-box”. I think now it is in a state where that is possible...
The addon is required for the RPi4/5 Argon ONE cases. It provides the fan control and ensures that the shutdown works properly and power button events working as well. Additional it enables the IR receiver and provides support for the Argon Remote.
https://github.com/HungerHa/libreelec_package_argonforty-device
It would be nice, if it could be part of the LibreELEC addon repo.