Well, just noticed my repo was finally removed from openelec's site anyway lol
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.
-
Ahh I see. I don't think I fully read your question. I didn't realize they had changed the behaviour of the 'info' button. I'd have to look into it. Have you tried '
ContextMenu
' yet? -
Should be 'Info' that you're looking for.
-
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.
Codef = 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!
-
No problem. You can view the source of the settings addon on github to get a better usage idea.
GitHub - LibreELEC/service.libreelec.settings: the LibreELEC settings addon for KODI
-
-
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:
Code
Display More# snmpwalk -v2c -c libreelec tacens1 iso.3.6.1.2.1.1.1.0 = STRING: "Linux tacens1 4.9.13 #1 SMP Wed Mar 22 17:35:19 GMT 2017 x86_64" iso.3.6.1.2.1.1.2.0 = OID: iso.3.6.1.4.1.8072.3.2.10 iso.3.6.1.2.1.1.3.0 = Timeticks: (75813) 0:12:38.13 iso.3.6.1.2.1.1.4.0 = STRING: "root@localhost" iso.3.6.1.2.1.1.5.0 = STRING: "tacens1" iso.3.6.1.2.1.1.6.0 = STRING: "HOME" iso.3.6.1.2.1.1.8.0 = Timeticks: (0) 0:00:00.00 iso.3.6.1.2.1.1.9.1.2.1 = OID: iso.3.6.1.6.3.1 iso.3.6.1.2.1.1.9.1.2.2 = OID: iso.3.6.1.6.3.16.2.2.1 iso.3.6.1.2.1.1.9.1.2.3 = OID: iso.3.6.1.6.3.11.3.1.1 iso.3.6.1.2.1.1.9.1.2.4 = OID: iso.3.6.1.6.3.15.2.1.1 iso.3.6.1.2.1.1.9.1.2.5 = OID: iso.3.6.1.6.3.10.3.1.1 iso.3.6.1.2.1.1.9.1.3.1 = STRING: "The MIB module for SNMPv2 entities" iso.3.6.1.2.1.1.9.1.3.2 = STRING: "View-based Access Control Model for SNMP." iso.3.6.1.2.1.1.9.1.3.3 = STRING: "The MIB for Message Processing and Dispatching." iso.3.6.1.2.1.1.9.1.3.4 = STRING: "The management information definitions for the SNMP User-based Security Model." iso.3.6.1.2.1.1.9.1.3.5 = STRING: "The SNMP Management Architecture MIB." iso.3.6.1.2.1.1.9.1.4.1 = Timeticks: (0) 0:00:00.00 iso.3.6.1.2.1.1.9.1.4.2 = Timeticks: (0) 0:00:00.00 iso.3.6.1.2.1.1.9.1.4.3 = Timeticks: (0) 0:00:00.00 iso.3.6.1.2.1.1.9.1.4.4 = Timeticks: (0) 0:00:00.00 iso.3.6.1.2.1.1.9.1.4.5 = Timeticks: (0) 0:00:00.00 iso.3.6.1.2.1.11.1.0 = Counter32: 114 iso.3.6.1.2.1.11.2.0 = Counter32: 106 iso.3.6.1.2.1.11.3.0 = Counter32: 0 iso.3.6.1.2.1.11.4.0 = Counter32: 8 iso.3.6.1.2.1.11.5.0 = Counter32: 0 iso.3.6.1.2.1.11.6.0 = Counter32: 0 iso.3.6.1.2.1.11.8.0 = Counter32: 0 iso.3.6.1.2.1.11.9.0 = Counter32: 0 iso.3.6.1.2.1.11.10.0 = Counter32: 0 iso.3.6.1.2.1.11.11.0 = Counter32: 0 iso.3.6.1.2.1.11.12.0 = Counter32: 0 iso.3.6.1.2.1.11.13.0 = Counter32: 439 iso.3.6.1.2.1.11.14.0 = Counter32: 0 iso.3.6.1.2.1.11.15.0 = Counter32: 66 iso.3.6.1.2.1.11.16.0 = Counter32: 37 iso.3.6.1.2.1.11.17.0 = Counter32: 0 iso.3.6.1.2.1.11.18.0 = Counter32: 0 iso.3.6.1.2.1.11.19.0 = Counter32: 0 iso.3.6.1.2.1.11.20.0 = Counter32: 0 iso.3.6.1.2.1.11.21.0 = Counter32: 0 iso.3.6.1.2.1.11.22.0 = Counter32: 0 iso.3.6.1.2.1.11.24.0 = Counter32: 0 iso.3.6.1.2.1.11.25.0 = Counter32: 0 iso.3.6.1.2.1.11.26.0 = Counter32: 0 iso.3.6.1.2.1.11.27.0 = Counter32: 0 iso.3.6.1.2.1.11.28.0 = Counter32: 130 iso.3.6.1.2.1.11.29.0 = Counter32: 0 iso.3.6.1.2.1.11.30.0 = INTEGER: 2 iso.3.6.1.2.1.11.31.0 = Counter32: 0 iso.3.6.1.2.1.11.32.0 = Counter32: 0
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.
-
That's surprising but good news. I'll push my changes to libreelec now so it should show up in the addon repo soon.
net-snmp: make addon configurable through gui settings by lsellens · Pull Request #1499 · LibreELEC/LibreELEC.tv · GitHub -
Great!
I test it and it works:
Code
Display More# snmpwalk -v2c -c libreelec tacens1 iso.3.6.1.2.1.1.1.0 = STRING: "Linux tacens1 4.9.13 #1 SMP Wed Mar 22 17:35:19 GMT 2017 x86_64" iso.3.6.1.2.1.1.2.0 = OID: iso.3.6.1.4.1.8072.3.2.10 iso.3.6.1.2.1.1.3.0 = Timeticks: (52188) 0:08:41.88 iso.3.6.1.2.1.1.4.0 = STRING: "root@localhost" iso.3.6.1.2.1.1.5.0 = STRING: "tacens1" iso.3.6.1.2.1.1.6.0 = STRING: "HOME" iso.3.6.1.2.1.1.8.0 = Timeticks: (0) 0:00:00.00 iso.3.6.1.2.1.1.9.1.2.1 = OID: iso.3.6.1.6.3.1 iso.3.6.1.2.1.1.9.1.2.2 = OID: iso.3.6.1.6.3.16.2.2.1 iso.3.6.1.2.1.1.9.1.2.3 = OID: iso.3.6.1.6.3.11.3.1.1 iso.3.6.1.2.1.1.9.1.2.4 = OID: iso.3.6.1.6.3.15.2.1.1 iso.3.6.1.2.1.1.9.1.2.5 = OID: iso.3.6.1.6.3.10.3.1.1 iso.3.6.1.2.1.1.9.1.3.1 = STRING: "The MIB module for SNMPv2 entities" iso.3.6.1.2.1.1.9.1.3.2 = STRING: "View-based Access Control Model for SNMP." iso.3.6.1.2.1.1.9.1.3.3 = STRING: "The MIB for Message Processing and Dispatching." iso.3.6.1.2.1.1.9.1.3.4 = STRING: "The management information definitions for the SNMP User-based Security Model." iso.3.6.1.2.1.1.9.1.3.5 = STRING: "The SNMP Management Architecture MIB." iso.3.6.1.2.1.1.9.1.4.1 = Timeticks: (0) 0:00:00.00 iso.3.6.1.2.1.1.9.1.4.2 = Timeticks: (0) 0:00:00.00 iso.3.6.1.2.1.1.9.1.4.3 = Timeticks: (0) 0:00:00.00 iso.3.6.1.2.1.1.9.1.4.4 = Timeticks: (0) 0:00:00.00 iso.3.6.1.2.1.1.9.1.4.5 = Timeticks: (0) 0:00:00.00 iso.3.6.1.2.1.11.1.0 = Counter32: 157 iso.3.6.1.2.1.11.2.0 = Counter32: 153 iso.3.6.1.2.1.11.3.0 = Counter32: 0 iso.3.6.1.2.1.11.4.0 = Counter32: 4 iso.3.6.1.2.1.11.5.0 = Counter32: 0 iso.3.6.1.2.1.11.6.0 = Counter32: 0 iso.3.6.1.2.1.11.8.0 = Counter32: 0 iso.3.6.1.2.1.11.9.0 = Counter32: 0 iso.3.6.1.2.1.11.10.0 = Counter32: 0 iso.3.6.1.2.1.11.11.0 = Counter32: 0 iso.3.6.1.2.1.11.12.0 = Counter32: 0 iso.3.6.1.2.1.11.13.0 = Counter32: 429 iso.3.6.1.2.1.11.14.0 = Counter32: 0 iso.3.6.1.2.1.11.15.0 = Counter32: 63 iso.3.6.1.2.1.11.16.0 = Counter32: 90 iso.3.6.1.2.1.11.17.0 = Counter32: 0 iso.3.6.1.2.1.11.18.0 = Counter32: 0 iso.3.6.1.2.1.11.19.0 = Counter32: 0 iso.3.6.1.2.1.11.20.0 = Counter32: 0 iso.3.6.1.2.1.11.21.0 = Counter32: 0 iso.3.6.1.2.1.11.22.0 = Counter32: 0 iso.3.6.1.2.1.11.24.0 = Counter32: 0 iso.3.6.1.2.1.11.25.0 = Counter32: 0 iso.3.6.1.2.1.11.26.0 = Counter32: 0 iso.3.6.1.2.1.11.27.0 = Counter32: 0 iso.3.6.1.2.1.11.28.0 = Counter32: 177 iso.3.6.1.2.1.11.29.0 = Counter32: 0 iso.3.6.1.2.1.11.30.0 = INTEGER: 2 iso.3.6.1.2.1.11.31.0 = Counter32: 0 iso.3.6.1.2.1.11.32.0 = Counter32: 0
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.confThe 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
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.
-
Will take a day or two for pirates to find a way to circumvent this new tech that cisco probably spent a boat load of money to develop.
-
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.
-