Posts by lsellens

    I have a userspace nsfv4 server addon in my repo. Its not 100% complete. I still need to add a avahi config so it can announce its shares, but you can manual set the shares with it as is. It will only run on x86_64. if you need it for a different architecture let me know. Would love to get some feed back on it. It's the nfs-ganesha one. There is also a unfsd addon, but that doesn't support nfsv4.

    cat would work great if you were working on a bash script but addons are written in python. You can call bash commands from python but no reason to when you can read the file directly.

    Code
    f = open('/etc/os-release', 'r') #opens the file for reading
    data = f.read() #stores it
    f.close() #closes the file

    You can then parse the data with a for loop. Look up a python 101 it's a simple language to learn and addons are a great way to get started. I doubt you'll get much help posting in this forum beginners questions of this nature without first doing some googling to teach yourself a bit. Read, practice, google some more, examine other peoples source code that does something similar, and if you get really stuck try asking a more specific question with the code you've tried so far. Good luck!


    Hello,

    I installed it, and I have CPU temp:

    Code
    # sensors 
    coretemp-isa-0000
    Adapter: ISA adapter
    Core 0:       +60.0 C  (crit = +125.0 C)
    Core 1:       +61.0 C  (crit = +125.0 C)

    But it is not integrate with SNMPD, there is no temp info in the snmpwalk:

    I will investigate it.

    Regards.

    A lot of the scripts that tie it to other services are written in perl. Unfortunately Libreleec doesn't have perl so you might be out of luck, but check the snmp wiki to make sure before giving up. If perl isn't required let me know and I'll try to look into it.

    If you need lm_sensors for monitoring temp with snmp it's already part of the system-tools addon in the programs section of the libreelec repo.

    Great!

    I test it and it works:

    Could you build the addon to other architectures? Amlogic?

    Best regards.

    Did you test v3 or authentication?


    Great!

    In the configuration the community is set to "libreelec", it is well this way. And the SNMP verdion is set to version 2c.

    It will be OK to add settings for location and contact.

    I will try your build later.

    Regards.

    Did you get a chance to look at it? I took a look at the man pages for the config and v3 is configured very different then v1 and v2c. If you guys want a working addon then please supply me with the specifics for the config and do some testing. This addon is of zero use to me so if it's not useful to anyone else then I'm completely wasting my time.

    Here is the most current version to be tested.
    service.net-snmp-8.1.101~beta4.zip
    It's limited to adding only 1 user which is rw and md5 des on v3
    the actual config file I need feedback on is stored here
    /storage/.kodi/userdata/addon_data/service.net-snmp/share/snmpd/snmpd.conf
    I don't expect v3 authentication is currently working the way I wrote the gui configs. Need to know what needs to change in order to have a working config.
    Thanks


    Hello,

    Where could we configure the options? I don't care to do it by command line.

    The basic settings will be:

    • community
    • location
    • contact

    Advanced settings will be SNMP version and user/pass if we select SNMPv3.

    Kind regards.

    This is the current config as supplied by the original addon.
    snmpd.conf

    The syslocation and syscontact is obviously the config option you want modifiable when you said location and contact. Could you be more specific what needs to be changed when you say community? Also how are the snmp version options supplied?
    I'm writing a script to modify these options from the addons settings, so in other words it will not be command line editing.
    if you want to test what I've done so far
    service.net-snmp-8.1.101~beta1.zip
    this will only run on a generic x86_64 build

    I honestly don't know much anything about net-snmp. I don't own any snmp devices to test with, but If you could take the time to look into Net-SNMP Wiki and let me know what config options you need to be able to modify and in what way I could add way to change those option through the addons gui config tab. I didn't have a whole ton of time right now to look into it myself.


    Hello,

    I installed the addon, but it doesn't start as a service:

    Code
    # snmpd.start 
    /storage/.kodi/addons/service.net-snmp/bin/snmpd: error while loading shared libraries: libnetsnmpagent.so.30: cannot open shared object file: No such file or directory

    Need I configure something?

    Thanks and regards.

    I only tested that the service loaded on a generic x86_64 build. What build are you running and did you compile this yourself from source?
    [hr]


    Hello,

    On wetek play 2 ( aarch64) this addon miss two .so file

    libnetsnmpmibs.so and libnetsnmpagent.so

    Log during compilation

    Code
    ...
    libtool:   error: error: relink 'libnetsnmpmibs.la' with the above command before installing it
    ...
    libtool:   error: error: relink 'libnetsnmpagent.la' with the above command before installing it
    ...

    Where did you get the addon you ran? Did you compile from source? I don't think they built one for the wetek but should probably compile and run but I never tested it.


    I've tried to achieve the same my TV does support CEC however I'm yet to find a way to identify if the TV is on or off.

    Any suggestions welcome

    My only suggestion is if there is a usb port on the tv you can use a volt meter to check if it still has 5v when the tv is off/standby or not. I have an lg that has one usb. It turns off when the tv is in standby. Have a samsung with two usb ports. One turns off and the other does not, so this can vary between modules and manufactures. If you're some what handy there are ways to use this to trigger events.