mark expert parameters and non-ui-parameters

This commit is contained in:
CaCO3
2023-02-04 15:06:24 +01:00
parent 3d5aee189f
commit 5cd6bac889
75 changed files with 380 additions and 6 deletions

View File

@@ -0,0 +1,26 @@
demo
WaitBeforeTakingPicture
ImageQuality
ImageSize
LEDIntensity
Brightness
Contrast
Saturation
FixedExposure
SearchFieldX
SearchFieldY
AlignmentAlgo
CNNGoodThreshold
PreValueAgeStartup
ErrorMessage
CheckDigitIncreaseConsistency
IO0
IO1
IO3
IO4
IO12
IO13
AutoStart
AutoStart
Hostname
RSSIThreashold

View File

@@ -13,6 +13,9 @@ configFileUrl = "https://raw.githubusercontent.com/jomjol/AI-on-the-edge-device/
parameterDocsFolder = "parameter-pages" parameterDocsFolder = "parameter-pages"
parameterTemplateFile = "./templates/parameter.md" parameterTemplateFile = "./templates/parameter.md"
expertParameterListFile = "./expert-params.txt"
hiddenInUiParameterListFile = "./hidden-in-ui.txt"
# Fetch default config file from URL # Fetch default config file from URL
print("Fetching %r..." % configFileUrl) print("Fetching %r..." % configFileUrl)
@@ -28,6 +31,14 @@ for l in range(len(lines)):
content = "".join(lines) content = "".join(lines)
# Fetch list of expert parameters
with open(expertParameterListFile) as f:
expertParameters = f.read().splitlines()
# Fetch list of parameters not available through the UI
with open(hiddenInUiParameterListFile) as f:
hiddenInUiParameters = f.read().splitlines()
config = configparser.ConfigParser(allow_no_value=True) config = configparser.ConfigParser(allow_no_value=True)
config.optionxform = str # Make it case-insensitive config.optionxform = str # Make it case-insensitive
@@ -56,6 +67,9 @@ for section in config:
value = config[section][parameter] value = config[section][parameter]
#print(" %s = %s" % (parameter, value)) #print(" %s = %s" % (parameter, value))
if "main." in parameter:
parameter = parameter.replace("main.", "<NUMBER>.")
""" """
For each config line, create a markdown file For each config line, create a markdown file
""" """
@@ -68,4 +82,14 @@ for section in config:
content = content.replace("$NAME", parameter) content = content.replace("$NAME", parameter)
content = content.replace("$DEFAULT", value) content = content.replace("$DEFAULT", value)
if parameter in expertParameters:
content = content.replace("$EXPERT_PARAMETER", "!!! Warning\n This is an expert parameter!") # Note: Needs a 4 whitespace Intent!
else:
content = content.replace("$EXPERT_PARAMETER", "")
if parameter in hiddenInUiParameters:
content = content.replace("$HIDDEN_IN_UI", "!!! Note\n This parameter is not accessible through the Web Interface Configuration Page!") # Note: Needs a 4 whitespace Intent!
else:
content = content.replace("$HIDDEN_IN_UI", "")
paramFileHandle.write(content) paramFileHandle.write(content)

View File

@@ -0,0 +1,6 @@
InitialRotate
InitialMirror
FlipImageSize
MainTopicMQTT
AutoAdjustSummertime
SetupMode

View File

@@ -1,6 +1,11 @@
# Parameter `AlignmentAlgo` # Parameter `AlignmentAlgo`
Default Value: `Default` Default Value: `Default`
!!! Warning
This is an expert parameter!
## Description ## Description
Please fill me with an explanation and useful links Please fill me with an explanation and useful links

View File

@@ -1,6 +1,11 @@
# Parameter `FlipImageSize` # Parameter `FlipImageSize`
Default Value: `false` Default Value: `false`
!!! Note
This parameter is not accessible through the Web Interface Configuration Page!
## Description ## Description
Please fill me with an explanation and useful links Please fill me with an explanation and useful links

View File

@@ -1,6 +1,11 @@
# Parameter `InitialMirror` # Parameter `InitialMirror`
Default Value: `false` Default Value: `false`
!!! Note
This parameter is not accessible through the Web Interface Configuration Page!
## Description ## Description
Please fill me with an explanation and useful links Please fill me with an explanation and useful links

View File

@@ -1,6 +1,11 @@
# Parameter `InitialRotate` # Parameter `InitialRotate`
Default Value: `179` Default Value: `179`
!!! Note
This parameter is not accessible through the Web Interface Configuration Page!
## Description ## Description
Please fill me with an explanation and useful links Please fill me with an explanation and useful links

View File

@@ -1,6 +1,11 @@
# Parameter `SearchFieldX` # Parameter `SearchFieldX`
Default Value: `20` Default Value: `20`
!!! Warning
This is an expert parameter!
## Description ## Description
Please fill me with an explanation and useful links Please fill me with an explanation and useful links

View File

@@ -1,6 +1,11 @@
# Parameter `SearchFieldY` # Parameter `SearchFieldY`
Default Value: `20` Default Value: `20`
!!! Warning
This is an expert parameter!
## Description ## Description
Please fill me with an explanation and useful links Please fill me with an explanation and useful links

View File

@@ -1,6 +1,11 @@
# Parameter `CNNGoodThreshold` # Parameter `CNNGoodThreshold`
Default Value: `0.5` Default Value: `0.5`
!!! Warning
This is an expert parameter!
## Description ## Description
Please fill me with an explanation and useful links Please fill me with an explanation and useful links

View File

@@ -1,6 +1,10 @@
# Parameter `ExtendedResolution` # Parameter `ExtendedResolution`
Default Value: `true` Default Value: `true`
## Description ## Description
Please fill me with an explanation and useful links Please fill me with an explanation and useful links

View File

@@ -1,6 +1,10 @@
# Parameter `LogImageLocation` # Parameter `LogImageLocation`
Default Value: `/log/analog` Default Value: `/log/analog`
## Description ## Description
Please fill me with an explanation and useful links Please fill me with an explanation and useful links

View File

@@ -1,6 +1,10 @@
# Parameter `LogfileRetentionInDays` # Parameter `LogfileRetentionInDays`
Default Value: `3` Default Value: `3`
## Description ## Description
Please fill me with an explanation and useful links Please fill me with an explanation and useful links

View File

@@ -1,6 +1,10 @@
# Parameter `Model` # Parameter `Model`
Default Value: `/config/ana-cont_11.3.1_s2.tflite` Default Value: `/config/ana-cont_11.3.1_s2.tflite`
## Description ## Description
Please fill me with an explanation and useful links Please fill me with an explanation and useful links

View File

@@ -1,6 +1,11 @@
# Parameter `AutoStart` # Parameter `AutoStart`
Default Value: `true` Default Value: `true`
!!! Warning
This is an expert parameter!
## Description ## Description
Please fill me with an explanation and useful links Please fill me with an explanation and useful links

View File

@@ -1,6 +1,10 @@
# Parameter `Intervall` # Parameter `Intervall`
Default Value: `5` Default Value: `5`
## Description ## Description
Please fill me with an explanation and useful links Please fill me with an explanation and useful links

View File

@@ -1,6 +1,10 @@
# Parameter `DataLogActive` # Parameter `DataLogActive`
Default Value: `true` Default Value: `true`
## Description ## Description
Please fill me with an explanation and useful links Please fill me with an explanation and useful links

View File

@@ -1,6 +1,10 @@
# Parameter `DataLogRetentionInDays` # Parameter `DataLogRetentionInDays`
Default Value: `3` Default Value: `3`
## Description ## Description
Please fill me with an explanation and useful links Please fill me with an explanation and useful links

View File

@@ -1,6 +1,10 @@
# Parameter `Logfile` # Parameter `Logfile`
Default Value: `1` Default Value: `1`
## Description ## Description
Please fill me with an explanation and useful links Please fill me with an explanation and useful links

View File

@@ -1,6 +1,10 @@
# Parameter `LogfileRetentionInDays` # Parameter `LogfileRetentionInDays`
Default Value: `3` Default Value: `3`
## Description ## Description
Please fill me with an explanation and useful links Please fill me with an explanation and useful links

View File

@@ -1,6 +1,11 @@
# Parameter `CNNGoodThreshold` # Parameter `CNNGoodThreshold`
Default Value: `0.5` Default Value: `0.5`
!!! Warning
This is an expert parameter!
## Description ## Description
Please fill me with an explanation and useful links Please fill me with an explanation and useful links

View File

@@ -1,6 +1,10 @@
# Parameter `LogImageLocation` # Parameter `LogImageLocation`
Default Value: `/log/digit` Default Value: `/log/digit`
## Description ## Description
Please fill me with an explanation and useful links Please fill me with an explanation and useful links

View File

@@ -1,6 +1,10 @@
# Parameter `LogfileRetentionInDays` # Parameter `LogfileRetentionInDays`
Default Value: `3` Default Value: `3`
## Description ## Description
Please fill me with an explanation and useful links Please fill me with an explanation and useful links

View File

@@ -1,6 +1,10 @@
# Parameter `Model` # Parameter `Model`
Default Value: `/config/dig-cont_0600_s3.tflite` Default Value: `/config/dig-cont_0600_s3.tflite`
## Description ## Description
Please fill me with an explanation and useful links Please fill me with an explanation and useful links

View File

@@ -1,6 +1,11 @@
# Parameter `IO0` # Parameter `IO0`
Default Value: `input disabled 10 false false` Default Value: `input disabled 10 false false`
!!! Warning
This is an expert parameter!
## Description ## Description
Please fill me with an explanation and useful links Please fill me with an explanation and useful links

View File

@@ -1,6 +1,11 @@
# Parameter `IO1` # Parameter `IO1`
Default Value: `input disabled 10 false false` Default Value: `input disabled 10 false false`
!!! Warning
This is an expert parameter!
## Description ## Description
Please fill me with an explanation and useful links Please fill me with an explanation and useful links

View File

@@ -1,6 +1,11 @@
# Parameter `IO12` # Parameter `IO12`
Default Value: `input-pullup disabled 10 false false` Default Value: `input-pullup disabled 10 false false`
!!! Warning
This is an expert parameter!
## Description ## Description
Please fill me with an explanation and useful links Please fill me with an explanation and useful links

View File

@@ -1,6 +1,11 @@
# Parameter `IO13` # Parameter `IO13`
Default Value: `input-pullup disabled 10 false false` Default Value: `input-pullup disabled 10 false false`
!!! Warning
This is an expert parameter!
## Description ## Description
Please fill me with an explanation and useful links Please fill me with an explanation and useful links

View File

@@ -1,6 +1,11 @@
# Parameter `IO3` # Parameter `IO3`
Default Value: `input disabled 10 false false` Default Value: `input disabled 10 false false`
!!! Warning
This is an expert parameter!
## Description ## Description
Please fill me with an explanation and useful links Please fill me with an explanation and useful links

View File

@@ -1,6 +1,11 @@
# Parameter `IO4` # Parameter `IO4`
Default Value: `built-in-led disabled 10 false false` Default Value: `built-in-led disabled 10 false false`
!!! Warning
This is an expert parameter!
## Description ## Description
Please fill me with an explanation and useful links Please fill me with an explanation and useful links

View File

@@ -1,6 +1,10 @@
# Parameter `LEDColor` # Parameter `LEDColor`
Default Value: `150 150 150` Default Value: `150 150 150`
## Description ## Description
Please fill me with an explanation and useful links Please fill me with an explanation and useful links

View File

@@ -1,6 +1,10 @@
# Parameter `LEDNumbers` # Parameter `LEDNumbers`
Default Value: `2` Default Value: `2`
## Description ## Description
Please fill me with an explanation and useful links Please fill me with an explanation and useful links

View File

@@ -1,6 +1,10 @@
# Parameter `LEDType` # Parameter `LEDType`
Default Value: `WS2812` Default Value: `WS2812`
## Description ## Description
Please fill me with an explanation and useful links Please fill me with an explanation and useful links

View File

@@ -1,6 +1,11 @@
# Parameter `MainTopicMQTT` # Parameter `MainTopicMQTT`
Default Value: `wasserzaehler/GPIO` Default Value: `wasserzaehler/GPIO`
!!! Note
This parameter is not accessible through the Web Interface Configuration Page!
## Description ## Description
Please fill me with an explanation and useful links Please fill me with an explanation and useful links

View File

@@ -1,6 +1,10 @@
# Parameter `Database` # Parameter `Database`
Default Value: `` Default Value: ``
## Description ## Description
Please fill me with an explanation and useful links Please fill me with an explanation and useful links

View File

@@ -1,6 +1,10 @@
# Parameter `Measurement` # Parameter `Measurement`
Default Value: `undefined` Default Value: `undefined`
## Description ## Description
Please fill me with an explanation and useful links Please fill me with an explanation and useful links

View File

@@ -1,6 +1,10 @@
# Parameter `Uri` # Parameter `Uri`
Default Value: `undefined` Default Value: `undefined`
## Description ## Description
Please fill me with an explanation and useful links Please fill me with an explanation and useful links

View File

@@ -1,6 +1,10 @@
# Parameter `password` # Parameter `password`
Default Value: `undefined` Default Value: `undefined`
## Description ## Description
Please fill me with an explanation and useful links Please fill me with an explanation and useful links

View File

@@ -1,6 +1,10 @@
# Parameter `user` # Parameter `user`
Default Value: `undefined` Default Value: `undefined`
## Description ## Description
Please fill me with an explanation and useful links Please fill me with an explanation and useful links

View File

@@ -1,6 +1,10 @@
# Parameter `ClientID` # Parameter `ClientID`
Default Value: `watermeter` Default Value: `watermeter`
## Description ## Description
Please fill me with an explanation and useful links Please fill me with an explanation and useful links

View File

@@ -1,6 +1,10 @@
# Parameter `HomeassistantDiscovery` # Parameter `HomeassistantDiscovery`
Default Value: `true` Default Value: `true`
## Description ## Description
Please fill me with an explanation and useful links Please fill me with an explanation and useful links

View File

@@ -1,6 +1,10 @@
# Parameter `MainTopic` # Parameter `MainTopic`
Default Value: `watermeter` Default Value: `watermeter`
## Description ## Description
Please fill me with an explanation and useful links Please fill me with an explanation and useful links

View File

@@ -1,6 +1,10 @@
# Parameter `MeterType` # Parameter `MeterType`
Default Value: `other` Default Value: `other`
## Description ## Description
Please fill me with an explanation and useful links Please fill me with an explanation and useful links

View File

@@ -1,6 +1,10 @@
# Parameter `SetRetainFlag` # Parameter `SetRetainFlag`
Default Value: `true` Default Value: `true`
## Description ## Description
Please fill me with an explanation and useful links Please fill me with an explanation and useful links

View File

@@ -1,6 +1,10 @@
# Parameter `Uri` # Parameter `Uri`
Default Value: `mqtt://IP-ADRESS:1883` Default Value: `mqtt://IP-ADRESS:1883`
## Description ## Description
Please fill me with an explanation and useful links Please fill me with an explanation and useful links

View File

@@ -1,6 +1,10 @@
# Parameter `password` # Parameter `password`
Default Value: `PASSWORD` Default Value: `PASSWORD`
## Description ## Description
Please fill me with an explanation and useful links Please fill me with an explanation and useful links

View File

@@ -1,6 +1,10 @@
# Parameter `user` # Parameter `user`
Default Value: `USERNAME` Default Value: `USERNAME`
## Description ## Description
Please fill me with an explanation and useful links Please fill me with an explanation and useful links

View File

@@ -1,6 +1,11 @@
# Parameter `Brightness` # Parameter `Brightness`
Default Value: `0` Default Value: `0`
!!! Warning
This is an expert parameter!
## Description ## Description
Please fill me with an explanation and useful links Please fill me with an explanation and useful links

View File

@@ -1,6 +1,11 @@
# Parameter `Contrast` # Parameter `Contrast`
Default Value: `0` Default Value: `0`
!!! Warning
This is an expert parameter!
## Description ## Description
Please fill me with an explanation and useful links Please fill me with an explanation and useful links

View File

@@ -1,6 +1,10 @@
# Parameter `Demo` # Parameter `Demo`
Default Value: `true` Default Value: `true`
## Description ## Description
Please fill me with an explanation and useful links Please fill me with an explanation and useful links

View File

@@ -1,6 +1,11 @@
# Parameter `FixedExposure` # Parameter `FixedExposure`
Default Value: `false` Default Value: `false`
!!! Warning
This is an expert parameter!
## Description ## Description
Please fill me with an explanation and useful links Please fill me with an explanation and useful links

View File

@@ -1,6 +1,11 @@
# Parameter `ImageQuality` # Parameter `ImageQuality`
Default Value: `12` Default Value: `12`
!!! Warning
This is an expert parameter!
## Description ## Description
Please fill me with an explanation and useful links Please fill me with an explanation and useful links

View File

@@ -1,6 +1,11 @@
# Parameter `ImageSize` # Parameter `ImageSize`
Default Value: `VGA` Default Value: `VGA`
!!! Warning
This is an expert parameter!
## Description ## Description
Please fill me with an explanation and useful links Please fill me with an explanation and useful links

View File

@@ -1,6 +1,11 @@
# Parameter `LEDIntensity` # Parameter `LEDIntensity`
Default Value: `50` Default Value: `50`
!!! Warning
This is an expert parameter!
## Description ## Description
Please fill me with an explanation and useful links Please fill me with an explanation and useful links

View File

@@ -1,6 +1,10 @@
# Parameter `LogImageLocation` # Parameter `LogImageLocation`
Default Value: `/log/source` Default Value: `/log/source`
## Description ## Description
Please fill me with an explanation and useful links Please fill me with an explanation and useful links

View File

@@ -1,6 +1,10 @@
# Parameter `LogfileRetentionInDays` # Parameter `LogfileRetentionInDays`
Default Value: `15` Default Value: `15`
## Description ## Description
Please fill me with an explanation and useful links Please fill me with an explanation and useful links

View File

@@ -1,6 +1,11 @@
# Parameter `Saturation` # Parameter `Saturation`
Default Value: `0` Default Value: `0`
!!! Warning
This is an expert parameter!
## Description ## Description
Please fill me with an explanation and useful links Please fill me with an explanation and useful links

View File

@@ -1,6 +1,11 @@
# Parameter `WaitBeforeTakingPicture` # Parameter `WaitBeforeTakingPicture`
Default Value: `5` Default Value: `5`
!!! Warning
This is an expert parameter!
## Description ## Description
Please fill me with an explanation and useful links Please fill me with an explanation and useful links

View File

@@ -1,6 +1,10 @@
# Parameter `main.AnalogDigitalTransitionStart` # Parameter `<NUMBER>.AnalogDigitalTransitionStart`
Default Value: `9.2` Default Value: `9.2`
## Description ## Description
Please fill me with an explanation and useful links Please fill me with an explanation and useful links

View File

@@ -1,6 +1,10 @@
# Parameter `main.DecimalShift` # Parameter `<NUMBER>.DecimalShift`
Default Value: `0` Default Value: `0`
## Description ## Description
Please fill me with an explanation and useful links Please fill me with an explanation and useful links

View File

@@ -1,6 +1,10 @@
# Parameter `main.ExtendedResolution` # Parameter `<NUMBER>.ExtendedResolution`
Default Value: `false` Default Value: `false`
## Description ## Description
Please fill me with an explanation and useful links Please fill me with an explanation and useful links

View File

@@ -1,6 +1,10 @@
# Parameter `main.IgnoreLeadingNaN` # Parameter `<NUMBER>.IgnoreLeadingNaN`
Default Value: `true` Default Value: `true`
## Description ## Description
Please fill me with an explanation and useful links Please fill me with an explanation and useful links

View File

@@ -1,6 +1,10 @@
# Parameter `main.MaxRateType` # Parameter `<NUMBER>.MaxRateType`
Default Value: `AbsoluteChange` Default Value: `AbsoluteChange`
## Description ## Description
Please fill me with an explanation and useful links Please fill me with an explanation and useful links

View File

@@ -1,6 +1,10 @@
# Parameter `main.MaxRateValue` # Parameter `<NUMBER>.MaxRateValue`
Default Value: `0.05` Default Value: `0.05`
## Description ## Description
Please fill me with an explanation and useful links Please fill me with an explanation and useful links

View File

@@ -1,6 +1,10 @@
# Parameter `AllowNegativeRates` # Parameter `AllowNegativeRates`
Default Value: `false` Default Value: `false`
## Description ## Description
Please fill me with an explanation and useful links Please fill me with an explanation and useful links

View File

@@ -1,6 +1,11 @@
# Parameter `CheckDigitIncreaseConsistency` # Parameter `CheckDigitIncreaseConsistency`
Default Value: `false` Default Value: `false`
!!! Warning
This is an expert parameter!
## Description ## Description
Please fill me with an explanation and useful links Please fill me with an explanation and useful links

View File

@@ -1,6 +1,11 @@
# Parameter `ErrorMessage` # Parameter `ErrorMessage`
Default Value: `true` Default Value: `true`
!!! Warning
This is an expert parameter!
## Description ## Description
Please fill me with an explanation and useful links Please fill me with an explanation and useful links

View File

@@ -1,6 +1,11 @@
# Parameter `PreValueAgeStartup` # Parameter `PreValueAgeStartup`
Default Value: `720` Default Value: `720`
!!! Warning
This is an expert parameter!
## Description ## Description
Please fill me with an explanation and useful links Please fill me with an explanation and useful links

View File

@@ -1,6 +1,10 @@
# Parameter `PreValueUse` # Parameter `PreValueUse`
Default Value: `true` Default Value: `true`
## Description ## Description
Please fill me with an explanation and useful links Please fill me with an explanation and useful links

View File

@@ -1,6 +1,11 @@
# Parameter `AutoAdjustSummertime` # Parameter `AutoAdjustSummertime`
Default Value: `false` Default Value: `false`
!!! Note
This parameter is not accessible through the Web Interface Configuration Page!
## Description ## Description
Please fill me with an explanation and useful links Please fill me with an explanation and useful links

View File

@@ -1,6 +1,11 @@
# Parameter `Hostname` # Parameter `Hostname`
Default Value: `undefined` Default Value: `undefined`
!!! Warning
This is an expert parameter!
## Description ## Description
Please fill me with an explanation and useful links Please fill me with an explanation and useful links

View File

@@ -1,6 +1,11 @@
# Parameter `SetupMode` # Parameter `SetupMode`
Default Value: `true` Default Value: `true`
!!! Note
This parameter is not accessible through the Web Interface Configuration Page!
## Description ## Description
Please fill me with an explanation and useful links Please fill me with an explanation and useful links

View File

@@ -1,6 +1,10 @@
# Parameter `TimeServer` # Parameter `TimeServer`
Default Value: `pool.ntp.org` Default Value: `pool.ntp.org`
## Description ## Description
Please fill me with an explanation and useful links Please fill me with an explanation and useful links

View File

@@ -1,6 +1,10 @@
# Parameter `TimeZone` # Parameter `TimeZone`
Default Value: `CET-1CEST,M3.5.0,M10.5.0/3` Default Value: `CET-1CEST,M3.5.0,M10.5.0/3`
## Description ## Description
Please fill me with an explanation and useful links Please fill me with an explanation and useful links

View File

@@ -1,6 +1,10 @@
# Parameter `$NAME` # Parameter `$NAME`
Default Value: `$DEFAULT` Default Value: `$DEFAULT`
$EXPERT_PARAMETER
$HIDDEN_IN_UI
## Description ## Description
Please fill me with an explanation and useful links Please fill me with an explanation and useful links