Posts by phloks


    You'll need to modify scripts/image to install it, or add it to another package's dependencies.

    Ok,
    Thanks for answering my question.
    I'm looking at scripts/image right now, but I don't see where to add in references to pyserial and pyusb.

    Is there documentation on how to do this ?

    Thanks,
    Hans

    I didn't mean to use that branch, because that branch won't work.

    I mean you can copy the folder or just the package.mk of the package you need.

    Ok,
    I probably do not understand how this works.
    I git cloned the current OE master branch, and created two extra directories under packages/python/system called pyserial and pyusb.
    And of course, I copied the package.mk files in their respctive directories.
    After that I compiled everything (had to change the URL for libssh-0.7.3 to another site because until now only 0.7.2 is available), and I got an nimage.

    It seems however that pyusb and pyserial have not been included in the build.

    Is there something else I need to do first ?

    Thanks,
    Hans

    Hi lrusak,

    Downloaded the OpenELEC.tv-WeeWXOS branch, and started compiling.
    It gets a long way, but when trying to compile libirman it stops with the error:

    UNPACK libirman
    gzip: stdin: not in gzip format

    and the compilations errors out.

    Any idea how to fix this, or how to determine where this goes wrong ?

    Thanks,
    Hans

    Thanks for answering my question.
    Should have seen that myself.....( slowly disappearing around the corner....)

    However, the python script I'm using is apparently unable to find this lib location, because
    the no backend error is still there.

    Hi,

    Managed to install python modules (pywws), but when I try to read from an USB attached device, I get the error :

    Quote


    usb.core.NoBackendError: No backend available

    People say this is due to the fact that package libusb is not installed.
    Can anyone of the developers tell me if this is the case, please ?
    I compiled the LE I'm using myself, but if I have to include libusb when compiling, I can't find a guide how to do that.....

    Thanks,
    Hans

    Hi,

    Thanks for developing LibreElec.
    It runs perfectly on my RPi 2B.

    I have one question, though.
    Next to my LibreElec box is the console of my weatherstation (WH1080, manuf. id. 1941:8021).
    When I plug the console usb output into my RPi, LibreElec is able to detect it using lsusb, however it does not
    get a ttyUSB0 (or similar) assigned in /dev.
    I know I can get around that by playing with some udev rules.

    I'd like to be able to collect data from my weatherstation, and for that I need to install some additional python
    modules.
    On OpenElec I was able to install pip, but on LE I cannot. Steps followed are :
    1) export PYTHONPATH=~/lib
    2) export PATH=$PATH:~/bin
    3) mkdir ~/lib ~/bin
    4) wget get-pip.py
    5) run python get-pip.py

    The output I'm getting is as follows :

    This is something I did not see when I tried installing pip on OpenElec.
    Now, I need pip to be able to install additional python modules to read from USB, like pyUSB.
    The idea is to collect data from USB, and send it to a MySQL server on another host.

    The version of LE I downloaded is LibreELEC (community) Version: devel-20160710175549-r23415-gf78c95e.
    I compiled it myself, after having edited packages/lang/Python/packages.mk and deleting unittest from the "disregard" line.....

    Questions :
    1) is it at all possible what I'm trying to achieve ?
    2) if yes, where do I go wrong ?
    3) is there any reason why I shouldn't 'abuse' LE for this purpose ? I feel that the impact of doing this on LE itself should not be disrupting anything. Or....?

    Hope someone can help me out, and save me the purchase of another rpi....

    Thanks,
    Hans