Long time ago I was thinking about the build made a custom (during the build made) systeminfo.py with everything inside..... but that is also implementation...
That is the direction I am thinking off, but then not in Python, but on a higher level (as it needs to be accessable from Bash, C and Python). Since it is hardware information, virtually everything in there is static data.
No, not all is hardware. Some of the variables are related to firmware, e.g. getImageArch(), which in the case of some boxes has changed, so not static either, just static for current build.
SUPPORTED_FUNCTIONS = [
# software specific
'getDriverDate',
'getImageArch',
'getMachineKernelFile',
'getMachineMKUBIFS',
'getMachineMtdKernel',
'getMachineMtdRoot',
'getMachineRootFile',
'getMachineUBINIZE',
'getImageFileSystem',
# Distro/Build
'getFeedsUrl',
'getImageDistro',
'getOEVersion',
'getImageVersion',
'getImageBuild',
'getImageDevBuild',
'getImageType',
'getImageFolder',
'getMachineBuild',
# These should be the same in all distros, but with non-OE-Alliance distros all bets are off.
'getMachineName',
'getMachineProcModel',
'getBoxType',
# Manufacturer
'getMachineMake',
'getMachineBrand',
# Hardware specific functions
'getBrandOEM',
'getDisplayType',
'getHaveAVJACK',
'getHaveCI',
'getHaveDVI',
'getHaveHDMI',
'getHaveHDMIinFHD',
'getHaveHDMIinHD',
'getHaveMiniTV',
'getHaveRCA',
'getHaveSCART',
'getHaveSCARTYUV',
'getHaveTranscoding1',
'getHaveWOL',
'getHaveWWOL',
'getHaveYUV',
'getHaveTranscoding2',]
Yep another point the procs... sometimes 0, 1, sometimes on, off sometimes enable, disable.... crazy!!!!!! Even on one box it could be different.... this is something we a community should never accept.... and then two different procs for the same depending on the machine
Yes, same problem with the name of the blindscan binary. Different name on every piece of hardware... and even worse on Vu+, has different names on different tuners. So you have to read the name of the tuner and select the correct binary based on tuner name.
Edited by Huevos, 19 July 2020 - 16:54.