Posts by LuRu

    I am glad that it works, but I did not find any problem in the structure of the add-on.
    I believe that the installation problem was caused by the fact that the previous (incompatible) version of the add-on was not completely uninstalled (preferably with a subsequent restart).
    But I could be wrong, of course.
    I would be very happy if someone (who owns an RPi2 or RPi3) could do a test that would shed some light on this.

    Ah, that's probably because my versions of the RPi Tools add-ons are compiled for the aarch64 architecture, so only for RPi4 and RPi5. For RPi3, the add-ons have to be compiled differently (ARCH=arm). I can try it, but I don't promise anything, it might take a while.

    I'm sorry, but I didn't understand what you need. Could you please be more specific about your request?
    Did something work before and now it doesn't?
    In any case, I need a lot more information to help.

    @LuRu i came across your post earlier but since i'm a novice Libreelec user i wanted to see if i could make it work without custom modifications to the official components.

    The script you are editing is probably also an "official component", but I understand. :)
    I just don't understand the attitude of the authors on this issue. Why does every user (who uses RPi Tools) once they upgrade to 12 have to run into the same problem and solve it?
    Why did they recklessly break a thing that could continue to work without problems without the user having to change anything?


    I've been asked to republish the OLEDproc add-on (since the original download links are broken).
    So here it is: service.oled-12.0.0.105.zip

    Compared to the previously published version, there is only one small modification, thanks to which the scrolling of the text is smoother.
    I recently published the updated add-on dependencies here.

    I tested the add-on on libreelec 12.0.1 and it does not work.

    HarryH is right. This is not the fault of the Raspberry Pi Tools add-on.
    In my case (regular RPi4) the OLEDproc add-on works quite smoothly with the upgraded Raspberry Pi Tools add-on (where rpi-lgpio emulates RPi.GPIO). This is (OLEDproc add-on) the original version of 104 from 2022 unchanged.
    But I have upgraded all dependencies.
    However, the log presented does not look like a dependency problem. Restarting the RPi helped me with similar problems. Just to be sure, I'm attaching the dependencies built for LE12.

    In less than two months, the modified add-on was downloaded more than 100 times!

    And none of the people (who downloaded the add-on) left any feedback here. This is really sad.

    I don't know if something is wrong. Please write your experience with it! Any, even negative.

    And maybe there are some positive ones?

    How would you comment on the idea that such a modified add-on would become part of the official distribution?

    First of RPi.GPIO is EOL and does not support RPi5 and has problems with recent kernels.

    Yes, I am aware of the EOL situation. But I (and surely many other users) don't have an RPi5 and for the RPi4 the RPi.GPIO library works FOR NOW...
    I just wanted to use the Raspberry Pi Legacy Tools to help myself (and perhaps other similarly affected users) give some time to the final solution.
    But okay, there's another option. It is also a workaround, but probably with a much longer perspective than the previous solution.
    The other option is rpi-lgpio.
    I tried to integrate it into Raspberry Pi Tools and it works!
    I am attaching both the finished add-on and the modified sources.

    I would like to know the reasons why the RPi.GPIO library was dropped from the Raspberry Pi Tools add-on. In my opinion, this is a mistake. I'll explain. I am the author of the OLEDproc plugin. It depends on several libraries, including the luma.oled and luma.core libraries. And therein lies the trouble. The luma.core library needs the RPi.GPIO library to work. I am convinced that it is unthinkable and also pointless for me to create some clone of the luma.core library, which would use, for example, gpiozero instead of RPi.GPIO. So, as it stands, the OLEDproc add-on user could not upgrade their system to LE12, otherwise their OLED display would stop working. It occurred to me that it was possible to go another way. I tried to reincarnate the Raspberry Pi Tools add-on to include the necessary RPi.GPIO library. The result is the "new" add-on Raspberry Pi Legacy Tools.
    And it really works!
    I know there are more similarly affected add-ons (dependent on Raspberry Pi Tools/RPi.GPIO). If their users couldn't upgrade to LE12 because of this, now they can! It is really easy. You only need to do two steps:
    1. Install the Raspberry Pi Legacy Tools add-on
    2. Make a simple edit to the addon.xml file of the dependent addon. As an example, I present an excerpt from the addon.xml file that belongs to the OLEDproc add-on:
    Original version:
     <requires>
       <import addon="xbmc.python" version="3.0.0"/>
       <import addon="script.module.luma" />
       <import addon="script.module.cbor2" />
       <import addon="script.module.smbus2" />
       <import addon="script.module.spidev" />
       <import addon="virtual.rpi-tools" />
     </requires>

    Modified version:
     <requires>
       <import addon="xbmc.python" version="3.0.0"/>
       <import addon="script.module.luma" />
       <import addon="script.module.cbor2" />
       <import addon="script.module.smbus2" />
       <import addon="script.module.spidev" />
       <import addon="virtual.rpi-legacy-tools" />
     </requires>

    I don't exactly understand your question. So I will try to give more detailed instructions for installing the "Orange Pi Cooling Fan" add-on.

    The mentioned add-on cannot work without "Orange Pi Tools" add-on (it's a dependency).

    Proceed as follows:

    1. Unzip the file "Compiled_addon_virtual.opi-tools-003.zip" This contains two files virtual.opi-tools-10.0.0.003.zip. One is for H3 processors, the other is for H6 processors. Choose the one you need.

    2. In Kodi, go to the Add-ons menu - Install from zip file (you may have to allow installation from unknown sources) and select the file "virtual.opi-tools-10.0.0.003.zip". The "Orange Pi Tools" add-on will be installed.

    3. Go to the Add-ons - Install from zip file menu again and select the "service.fan.orangepi-0.0.2.zip" file. The "Orange Pi Cooling Fan" add-on will be installed.

    4. It's almost done. The "Orange Pi Cooling Fan" add-on must of course be set up. It is simple. Go to the menu Add-ons - My add-ons - Services - Orange Pi Cooling Fan - Configure.

    May be I don't execute this command and take file virtual.opi-tools-10.0.0.003.zip from Compiled_addon_virtual.opi-tools-003.zip

    After this I must in kodi insall 2 plugin
    virtual.opi-tools-10.0.0.003.zip

    service.fan.orangepi-0.0.2.zip

    just like i usually install kodi plugins.

    Please write if I understand the sequence of actions correctly?

    Yes, that's all you need. You (most likely) don't need to compile your own version of the "Orange Pi Tools" plugin (virtual.opi-tools).

    Quote from harrysmith63

    And where find this directory ../http://LibreELEC.tv/packages/addons/

    You will not find this directory unless you follow the instructions in the "Building (Basics)" chapter of the LE wiki..