edit_config_param.html 72 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <link rel="icon" href="data:,">
  5. <title>Edit Config</title>
  6. <meta charset="utf-8">
  7. <style>
  8. h1 {font-size: 2em;}
  9. h2 {font-size: 1.5em; margin-block-start: 0.0em; margin-block-end: 0.2em;}
  10. h3 {font-size: 1.2em;}
  11. p {font-size: 1em;}
  12. .button {
  13. padding: 5px 20px;
  14. width: 211px;
  15. font-size: 16px;
  16. }
  17. textarea {
  18. font-size: 14px;
  19. }
  20. .description {
  21. color: black;
  22. font-size: 80%;
  23. }
  24. .disabled {
  25. color:lightgrey;
  26. }
  27. .smallSelect {
  28. width: 30px;
  29. }
  30. .invalid-input {
  31. background-color: #FFAA00;
  32. }
  33. .hidden {
  34. display: none;
  35. }
  36. </style>
  37. </head>
  38. <body style="font-family: arial; padding: 0px 10px;">
  39. <table style="width:100%">
  40. <tr>
  41. <td>
  42. <h2>Config.ini:</h2>
  43. </td>
  44. <td>
  45. <button class="button" id="Edit_Config_Direct" onclick="editConfigDirect()" style="display:none">Edit Config.ini direct</button>
  46. <input type="checkbox" id="ExpertModus_enabled" value="1" onclick = 'UpdateExpertModus()' unchecked><label for="ExpertModus_enabled"> Expert Mode </label>
  47. </td>
  48. </tr>
  49. </table>
  50. <br>
  51. <div id = "divall" style="display:none">
  52. <table>
  53. <tr>
  54. <th width="20px" style="text-align: left;">
  55. Enable
  56. </th>
  57. <th width="200px" style="text-align: left;">
  58. Parameter
  59. </th>
  60. <th style="text-align: left;">
  61. Value
  62. </th>
  63. <th style="text-align: left;">
  64. Information
  65. </th>
  66. </tr>
  67. <tr>
  68. <td colspan="4" style="padding-left: 20px;"><h4>MakeImage</h4></td>
  69. </tr>
  70. <tr>
  71. <td width="20px" style="padding-left: 40px;">
  72. <input type="checkbox" id="MakeImage_LogImageLocation_enabled" value="1" onclick = 'InvertEnableItem("MakeImage", "LogImageLocation")' unchecked >
  73. </td>
  74. <td width="200px">
  75. <class id="MakeImage_LogImageLocation_text" style="color:black;">LogImageLocation</class>
  76. </td>
  77. <td>
  78. <input type="text" name="name" id="MakeImage_LogImageLocation_value1">
  79. </td>
  80. <td class="description">
  81. Location to store raw images for logging
  82. </td>
  83. </tr>
  84. <tr>
  85. <td width="20px" style="padding-left: 40px;">
  86. <td"><input type="checkbox" id="MakeImage_LogfileRetentionInDays_enabled" value="1" onclick = 'InvertEnableItem("MakeImage", "LogfileRetentionInDays")' unchecked ></td>
  87. </td>
  88. <td>
  89. <class id="MakeImage_LogfileRetentionInDays_text" style="color:black;">LogfileRetentionInDays</class>
  90. </td>
  91. <td>
  92. <input type="number" id="MakeImage_LogfileRetentionInDays_value1" size="13" min="0" step="1">
  93. </td>
  94. <td class="description">
  95. Time to keep the raw image (in days -"0" = forever)
  96. </td>
  97. </tr>
  98. <tr class="expert" id="ex1">
  99. <td width="20px" style="padding-left: 40px;">
  100. </td>
  101. <td>
  102. <class id="MakeImage_WaitBeforeTakingPicture_text" style="color:black;">WaitBeforeTakingPicture</class>
  103. </td>
  104. <td>
  105. <input type="number" id="MakeImage_WaitBeforeTakingPicture_value1" size="13" min="0" step="any">
  106. </td>
  107. <td class="description">
  108. Wait time between illumination switch on and take the picture (in seconds)
  109. </td>
  110. </tr>
  111. <tr class="expert" id="ex2">
  112. <td width="20px" style="padding-left: 40px;">
  113. </td>
  114. <td>
  115. <class id="MakeImage_ImageQuality_text" style="color:black;">ImageQuality</class>
  116. </td>
  117. <td>
  118. <input type="number" id="MakeImage_ImageQuality_value1" size="13" min="0" max="63">
  119. </td>
  120. <td class="description">
  121. Quality index for picture (default = "12" - "0" high ... "63" low) <br>
  122. Remark: values smaller than 12 can result in a reboot, as the bigger sized JPEG might not fit in the available RAM!
  123. </td>
  124. </tr>
  125. <tr class="expert" id="ex3">
  126. <td width="20px" style="padding-left: 40px;">
  127. </td>
  128. <td>
  129. <class id="MakeImage_ImageSize_text" style="color:black;">ImageSize</class>
  130. </td>
  131. <td>
  132. <select id="MakeImage_ImageSize_value1">
  133. <option value="VGA" selected>VGA</option>
  134. <option value="QVGA" >QVGA</option>
  135. </select>
  136. </td>
  137. <td class="description">
  138. Picture size camera (default = "VGA")
  139. </td>
  140. </tr>
  141. <tr class="expert" id="LEDIntensity_ex3">
  142. <td width="20px" style="padding-left: 40px;">
  143. </td>
  144. <td>
  145. <class id="MakeImage_LEDIntensity_text" style="color:black;">LEDIntensity</class>
  146. </td>
  147. <td>
  148. <input type="number" id="MakeImage_LEDIntensity_value1" size="13" min="0" max="100">
  149. </td>
  150. <td style="font-size: 80%;">
  151. Internal LED Flash Intensity (PWM from 0% - 100%). <br>
  152. Remark: as the camera autoillumination settings are used, this is rather for energy saving, than reducing reflections.
  153. </td>
  154. </tr>
  155. <tr class="expert" id="Brightness_ex3">
  156. <td width="20px" style="padding-left: 40px;">
  157. </td>
  158. <td>
  159. <class id="MakeImage_Brightness_text" style="color:black;">Brightness</class>
  160. </td>
  161. <td>
  162. <input type="number" id="MakeImage_Brightness_value1" size="13" min="-2" max="2">
  163. </td>
  164. <td style="font-size: 80%;">
  165. Image Brightness (-2 .. 2 - default = "0")
  166. </td>
  167. </tr>
  168. <tr class="expert" id="Contrast_ex3">
  169. <td width="20px" style="padding-left: 40px;">
  170. </td>
  171. <td>
  172. <class id="MakeImage_Contrast_text" style="color:black;">Contrast</class>
  173. </td>
  174. <td>
  175. <input type="number" id="MakeImage_Contrast_value1" size="13" min="-2" max="2">
  176. </td>
  177. <td style="font-size: 80%;">
  178. Image Contrast (-2 .. 2 - default = "0") <br>
  179. Remark: camera driver is not fully supporting this setting yet (no impact on image)
  180. </td>
  181. </tr>
  182. <tr class="expert" id="Saturation_ex3">
  183. <td width="20px" style="padding-left: 40px;">
  184. </td>
  185. <td>
  186. <class id="MakeImage_Saturation_text" style="color:black;">Saturation</class>
  187. </td>
  188. <td>
  189. <input type="number" id="MakeImage_Saturation_value1" size="13" min="-2" max="2">
  190. </td>
  191. <td style="font-size: 80%;">
  192. Image Saturation (-2 .. 2 - default = "0") <br>
  193. Remark: camera driver is not fully supporting this setting yet (no impact on image)
  194. </td>
  195. </tr>
  196. <tr class="expert" id="MakeImage_FixedExposure_ex10">
  197. <td width="20px" style="padding-left: 40px;">
  198. </td>
  199. <td width="200px">
  200. <class id="MakeImage_FixedExposure_text" style="color:black;">FixedExposure</class>
  201. </td>
  202. <td>
  203. <select id="MakeImage_FixedExposure_value1">
  204. <option value="true" selected>true</option>
  205. <option value="false" >false</option>
  206. </select>
  207. </td>
  208. <td style="font-size: 80%;">
  209. Fixes the illumination setting of camera at the startup and uses this later --> individual round is faster
  210. </td>
  211. </tr>
  212. <tr class="expert" id="ex4">
  213. <td colspan="4" style="padding-left: 20px;"><h4>Alignment</h4></td>
  214. </tr>
  215. <tr class="expert" id="ex6">
  216. <td width="20px" style="padding-left: 40px;">
  217. </td>
  218. <td width="200px">
  219. <class id="Alignment_SearchFieldX_text" style="color:black;">SearchFieldX</class>
  220. </td>
  221. <td>
  222. <input type="number" name="name" id="Alignment_SearchFieldX_value1" size="13" min="1" step="1">
  223. </td>
  224. <td style="font-size: 80%;">
  225. x size (width) in which the reference is searched (default = "20")
  226. </td>
  227. </tr>
  228. <tr class="expert" id="ex8">
  229. <td width="20px" style="padding-left: 40px;">
  230. </td>
  231. <td>
  232. <class id="Alignment_SearchFieldY_text" style="color:black;">SearchFieldY</class>
  233. </td>
  234. <td>
  235. <input type="number" name="name" id="Alignment_SearchFieldY_value1" size="13" min="1">
  236. </td>
  237. <td style="font-size: 80%;">
  238. y size (height) in which the reference is searched (default = "20")
  239. </td>
  240. </tr>
  241. <tr class="expert" id="AlignmentAlgo_ex8">
  242. <td width="20px" style="padding-left: 40px;">
  243. <input type="checkbox" id="Alignment_AlignmentAlgo_enabled" value="1" onclick = 'InvertEnableItem("Alignment", "AlignmentAlgo")' unchecked >
  244. </td>
  245. <td>
  246. <class id="Alignment_AlignmentAlgo_text" style="color:black;">AlignmentAlgo</class>
  247. </td>
  248. <td>
  249. <select id="Alignment_AlignmentAlgo_value1">
  250. <option value="default" selected>Default</option>
  251. <option value="highAccurity" >HighAccurity</option>
  252. <option value="fast" >Fast</option>
  253. </select>
  254. </td>
  255. <td style="font-size: 80%;">
  256. "Default" = use only R-Channel, "HighAccurity" = use all Channels (RGB, 3x slower), <br> "Fast" (First time RGB, then only check if image is shifted)
  257. </td>
  258. </tr>
  259. <tr id="Category_Digits_ex4">
  260. <td colspan="4" style="padding-left: 20px;">
  261. <h4><input type="checkbox" id="Category_Digits_enabled" value="1" onclick = 'UpdateAfterCategoryCheck()' unchecked >Digits</h4></td>
  262. </tr>
  263. <tr>
  264. <td width="20px" style="padding-left: 40px;">
  265. </td>
  266. <td width="200px">
  267. <class id="Digits_Model_text" style="color:black;">Model</class>
  268. </td>
  269. <td>
  270. <select id="Digits_Model_value1">
  271. </select>
  272. </td>
  273. <td style="font-size: 80%;">
  274. Path to CNN model file for image recognition
  275. </td>
  276. </tr>
  277. <tr class="expert" id="ex91">
  278. <td width="20px" style="padding-left: 40px;">
  279. <input type="checkbox" id="Digits_CNNGoodThreshold_enabled" value="1" onclick = 'InvertEnableItem("Digits", "CNNGoodThreshold")' unchecked >
  280. </td>
  281. <td>
  282. <class id="Digits_CNNGoodThreshold_text" style="color:black;">CNNGoodThreshold</class>
  283. </td>
  284. <td>
  285. <input type="number" id="Digits_CNNGoodThreshold_value1" min="0" max="1">
  286. </td>
  287. <td style="font-size: 80%;">
  288. EXPERIMENTAL - NOT WORKING FOR ALL CNNs! - Threshold above which the classification should be to accept the value (only for digits meaningfull)
  289. </td>
  290. </tr>
  291. <tr>
  292. <td width="20px" style="padding-left: 40px;">
  293. <input type="checkbox" id="Digits_LogImageLocation_enabled" value="1" onclick = 'InvertEnableItem("Digits", "LogImageLocation")' unchecked >
  294. </td>
  295. <td>
  296. <class id="Digits_LogImageLocation_text" style="color:black;">LogImageLocation</class>
  297. </td>
  298. <td>
  299. <input type="text" name="name" id="Digits_LogImageLocation_value1">
  300. </td>
  301. <td style="font-size: 80%;">
  302. Location to store separated digits for logging
  303. </td>
  304. </tr>
  305. <tr>
  306. <td width="20px" style="padding-left: 40px;">
  307. <td"><input type="checkbox" id="Digits_LogfileRetentionInDays_enabled" value="1" onclick = 'InvertEnableItem("Digits", "LogfileRetentionInDays")' unchecked ></td>
  308. </td>
  309. <td>
  310. <class id="Digits_LogfileRetentionInDays_text" style="color:black;">LogfileRetentionInDays</class>
  311. </td>
  312. <td>
  313. <input type="number" id="Digits_LogfileRetentionInDays_value1" min="0" step="1">
  314. </td>
  315. <td style="font-size: 80%;">
  316. Time to keep the separated digit images (in days -"0" = forever)
  317. </td>
  318. </tr>
  319. <tr class="expert" id="ex9">
  320. <td width="20px" style="padding-left: 40px;">
  321. </td>
  322. <td>
  323. <class id="Digits_ModelInputSize_text" style="color:black;">ModelInputSize</class>
  324. </td>
  325. <td>
  326. x: <input type="number" id="Digits_ModelInputSize_value1" class="smallSelect" min="1" step="1">
  327. y: <input type="number" id="Digits_ModelInputSize_value2" class="smallSelect" min="1" step="1">
  328. </td>
  329. <td style="font-size: 80%;">
  330. Size of the input image for the CNN model
  331. </td>
  332. </tr>
  333. <tr id="Category_Analog_ex4">
  334. <td colspan="4" style="padding-left: 20px;">
  335. <h4><input type="checkbox" id="Category_Analog_enabled" value="1" onclick = 'UpdateAfterCategoryCheck()' unchecked > Analog</h4></td>
  336. </tr>
  337. <tr>
  338. <td width="20px" style="padding-left: 40px;"> </td>
  339. <td width="200px"> <class id="Analog_Model_text" style="color:black;">Model</class> </td>
  340. <td>
  341. <select id="Analog_Model_value1">
  342. </select>
  343. </td>
  344. <td style="font-size: 80%;"> Path to CNN model file for image recognition</td>
  345. </tr>
  346. <tr>
  347. <td width="20px" style="padding-left: 40px;">
  348. <input type="checkbox" id="Analog_LogImageLocation_enabled" value="1" onclick = 'InvertEnableItem("Analog", "LogImageLocation")' unchecked >
  349. </td>
  350. <td> <class id="Analog_LogImageLocation_text" style="color:black;">LogImageLocation</class> </td>
  351. <td> <input type="text" name="name" id="Analog_LogImageLocation_value1"> </td>
  352. <td style="font-size: 80%;"> Location to store separated digits for logging </td>
  353. </tr>
  354. <tr>
  355. <td width="20px" style="padding-left: 40px;">
  356. <td"><input type="checkbox" id="Analog_LogfileRetentionInDays_enabled" value="1" onclick = 'InvertEnableItem("Analog", "LogfileRetentionInDays")' unchecked ></td>
  357. </td>
  358. <td> <class id="Analog_LogfileRetentionInDays_text" style="color:black;">LogfileRetentionInDays</class> </td>
  359. <td> <input type="number" id="Analog_LogfileRetentionInDays_value1" min="0" step="1"> </td>
  360. <td style="font-size: 80%;"> Time to keep the separated digit images (in days -"0" = forever) </td>
  361. </tr>
  362. <tr class="expert" id="ex10">
  363. <td width="20px" style="padding-left: 40px;"> </td>
  364. <td> <class id="Analog_ModelInputSize_text" style="color:black;">ModelInputSize</class> </td>
  365. <td>
  366. x: <input type="number" id="Analog_ModelInputSize_value1" class="smallSelect" min="1" step="1">
  367. y: <input type="number" id="Analog_ModelInputSize_value2" class="smallSelect" min="1" step="1">
  368. </td>
  369. <td style="font-size: 80%;"> Size of the input image for the CNN model </td>
  370. </tr>
  371. <tr>
  372. <td colspan="4" style="padding-left: 20px;"><h4>PostProcessing</h4></td>
  373. </tr>
  374. <tr>
  375. <td width="20px" style="padding-left: 40px;">
  376. <input type="checkbox" id="PostProcessing_PreValueUse_enabled" value="1" onclick = 'InvertEnableItem("PostProcessing", "PreValueUse")' unchecked >
  377. </td>
  378. <td width="200px">
  379. <class id="PostProcessing_PreValueUse_text" style="color:black;">PreValueUse</class>
  380. </td>
  381. <td>
  382. <select id="PostProcessing_PreValueUse_value1">
  383. <option value="true" selected>true</option>
  384. <option value="false" >false</option>
  385. </select>
  386. </td>
  387. <td style="font-size: 80%;">
  388. Enable to use the previous read value for consistency checks - also on reboots
  389. </td>
  390. </tr>
  391. <tr class="expert" id="ex11">
  392. <td width="20px" style="padding-left: 40px;">
  393. <input type="checkbox" id="PostProcessing_PreValueAgeStartup_enabled" value="1" onclick = 'InvertEnableItem("PostProcessing", "PreValueAgeStartup")' unchecked >
  394. </td>
  395. <td width="200px">
  396. <class id="PostProcessing_PreValueAgeStartup_text" style="color:black;">PreValueAgeStartup</class>
  397. </td>
  398. <td>
  399. <input type="number" id="PostProcessing_PreValueAgeStartup_value1" size="13" min="0">
  400. </td>
  401. <td style="font-size: 80%;">
  402. Time (in minutes), how long a previous read value is valid after reboot (default = 720 min)
  403. </td>
  404. </tr>
  405. <tr>
  406. <td width="20px" style="padding-left: 40px;">
  407. <input type="checkbox" id="PostProcessing_AllowNegativeRates_enabled" value="1" onclick = 'InvertEnableItem("PostProcessing", "AllowNegativeRates")' unchecked >
  408. </td>
  409. <td width="200px">
  410. <class id="PostProcessing_AllowNegativeRates_text" style="color:black;">AllowNegativeRates</class>
  411. </td>
  412. <td>
  413. <select id="PostProcessing_AllowNegativeRates_value1">
  414. <option value="true" selected>true</option>
  415. <option value="false" >false</option>
  416. </select>
  417. </td>
  418. <td style="font-size: 80%;">
  419. Set on "false" to ensure, that only positive changes are accepted (typically for counter)
  420. </td>
  421. </tr>
  422. <tr class="expert" id="ex12">
  423. <td width="20px" style="padding-left: 40px;">
  424. <input type="checkbox" id="PostProcessing_ErrorMessage_enabled" value="1" onclick = 'InvertEnableItem("PostProcessing", "ErrorMessage")' unchecked >
  425. </td>
  426. <td width="200px">
  427. <class id="PostProcessing_ErrorMessage_text" style="color:black;">ErrorMessage</class>
  428. </td>
  429. <td>
  430. <select id="PostProcessing_ErrorMessage_value1">
  431. <option value="true" selected>true</option>
  432. <option value="false" >false</option>
  433. </select>
  434. </td>
  435. <td style="font-size: 80%;">
  436. Do not show error message in return value - in error case, the last valid number will be send out
  437. </td>
  438. </tr>
  439. <tr class="expert" id="ex1dddd">
  440. <td width="20px" style="padding-left: 40px;">
  441. <input type="checkbox" id="PostProcessing_CheckDigitIncreaseConsistency_enabled" value="1" onclick = 'InvertEnableItem("PostProcessing", "CheckDigitIncreaseConsistency")' unchecked >
  442. </td>
  443. <td width="200px">
  444. <class id="PostProcessing_CheckDigitIncreaseConsistency_text" style="color:black;">CheckDigitIncreaseConsistency</class>
  445. </td>
  446. <td>
  447. <select id="PostProcessing_CheckDigitIncreaseConsistency_value1">
  448. <option value="true" selected>true</option>
  449. <option value="false" >false</option>
  450. </select>
  451. </td>
  452. <td style="font-size: 80%;">
  453. Enable additional consistency check - especially zero crossing check between digits
  454. </td>
  455. </tr>
  456. <tr>
  457. <td style="padding-left: 40px;" colspan="4">
  458. <br>
  459. <b>Postprocessing Individual Parameters:
  460. <select id="Numbers_value1" onchange="numberChanged()">
  461. <option value="0" selected>default</option>
  462. <option value="1" >NT</option>
  463. <option value="2" >HT</option>
  464. </select></b>
  465. </td>
  466. </tr>
  467. <tr>
  468. <td width="20px" style="padding-left: 40px;">
  469. <input type="checkbox" id="PostProcessing_DecimalShift_enabled" value="1" onclick = 'InvertEnableItem("PostProcessing", "DecimalShift")' unchecked >
  470. </td>
  471. <td width="200px">
  472. <class id="PostProcessing_DecimalShift_text" style="color:black;">DecimalShift</class>
  473. </td>
  474. <td>
  475. <input type="number" id="PostProcessing_DecimalShift_value1" step="1">
  476. </td>
  477. <td style="font-size: 80%;">
  478. Shift the digit separator within the digital digits (positiv and negativ)
  479. </td>
  480. </tr>
  481. <tr>
  482. <td width="20px" style="padding-left: 40px;">
  483. <input type="checkbox" id="PostProcessing_MaxRateValue_enabled" value="1" onclick = 'InvertEnableItem("PostProcessing", "MaxRateValue")' unchecked >
  484. </td>
  485. <td width="200px">
  486. <class id="PostProcessing_MaxRateValue_text" style="color:black;">MaxRateValue</class>
  487. </td>
  488. <td>
  489. <input type="number" id="PostProcessing_MaxRateValue_value1" size="13" min="0" step="any">
  490. </td>
  491. <td style="font-size: 80%;">
  492. Maximum change of a reading - if threated as absolute or relative change see next parameter.
  493. </td>
  494. </tr>
  495. <tr>
  496. <td width="20px" style="padding-left: 40px;">
  497. <input type="checkbox" id="PostProcessing_MaxRateType_enabled" value="1" onclick = 'InvertEnableItem("PostProcessing", "MaxRateType")' unchecked >
  498. </td>
  499. <td width="200px">
  500. <class id="PostProcessing_MaxRateType_text" style="color:black;">MaxRateType</class>
  501. </td>
  502. <td>
  503. <select id="PostProcessing_MaxRateType_value1">
  504. <option value="AbsoluteChange" >AbsoluteChange</option>
  505. <option value="RateChange" selected>RateChange</option>
  506. </select>
  507. </td>
  508. <td style="font-size: 80%;">
  509. Defines if the change rate compared to the previous value is calculated as absolute change (AbsoluteChange) or as rate normalized to the intervall (RateChange = change/minute).
  510. </td>
  511. </tr>
  512. <tr>
  513. <td width="20px" style="padding-left: 40px;">
  514. <input type="checkbox" id="PostProcessing_ExtendedResolution_enabled" value="1" onclick = 'InvertEnableItem("PostProcessing", "ExtendedResolution")' unchecked >
  515. </td>
  516. <td width="200px">
  517. <class id="PostProcessing_ExtendedResolution_text" style="color:black;">ExtendedResolution</class>
  518. </td>
  519. <td>
  520. <select id="PostProcessing_ExtendedResolution_value1">
  521. <option value="true" >true</option>
  522. <option value="false" selected>false</option>
  523. </select>
  524. </td>
  525. <td style="font-size: 80%;">
  526. Enable to use the after point resolution for the last analog counter
  527. </td>
  528. </tr>
  529. <tr>
  530. <td id="ex121" width="20px" style="padding-left: 40px;">
  531. <input type="checkbox" id="PostProcessing_IgnoreLeadingNaN_enabled" value="1" onclick = 'InvertEnableItem("PostProcessing", "IgnoreLeadingNaN")' unchecked >
  532. </td>
  533. <td width="200px">
  534. <class id="PostProcessing_IgnoreLeadingNaN_text" style="color:black;">IgnoreLeadingNaN</class>
  535. </td>
  536. <td>
  537. <select id="PostProcessing_IgnoreLeadingNaN_value1">
  538. <option value="true" >true</option>
  539. <option value="false" selected>false</option>
  540. </select>
  541. </td>
  542. <td style="font-size: 80%;">
  543. Leading "N"'s will be deleted before further processing
  544. </td>
  545. </tr>
  546. <tr>
  547. <td colspan="4" style="padding-left: 20px;"><h4><input type="checkbox" id="Category_MQTT_enabled" value="1" onclick = 'UpdateAfterCategoryCheck()' unchecked > MQTT</h4></td>
  548. </tr>
  549. <tr>
  550. <td width="20px" style="padding-left: 40px;">
  551. <input type="checkbox" id="MQTT_Uri_enabled" value="1" onclick = 'InvertEnableItem("MQTT", "Uri")' unchecked >
  552. </td>
  553. <td width="200px">
  554. <class id="MQTT_Uri_text" style="color:black;">Uri</class>
  555. </td>
  556. <td>
  557. <input type="text" id="MQTT_Uri_value1">
  558. </td>
  559. <td style="font-size: 80%;">
  560. URI to the MQTT broker including port e.g.: mqtt://IP-Address:Port
  561. </td>
  562. </tr>
  563. <tr>
  564. <td width="20px" style="padding-left: 40px;">
  565. <input type="checkbox" id="MQTT_MainTopic_enabled" value="1" onclick = 'InvertEnableItem("MQTT", "MainTopic")' unchecked >
  566. </td>
  567. <td width="200px">
  568. <class id="MQTT_MainTopic_text" style="color:black;">MainTopic</class>
  569. </td>
  570. <td>
  571. <input type="text" id="MQTT_MainTopic_value1">
  572. </td>
  573. <td style="font-size: 80%;">
  574. MQTT main topic, under which the counters are published. The single value will be published with the following key: MAINTOPIC/VALUE_NAME/PARAMETER <br>
  575. where parameters are: value, rate, timestamp, error<br>
  576. The general connection status can be found in MAINTOPIC/CONNECTION
  577. </td>
  578. </tr>
  579. <tr>
  580. <td width="20px" style="padding-left: 40px;">
  581. <input type="checkbox" id="MQTT_ClientID_enabled" value="1" onclick = 'InvertEnableItem("MQTT", "ClientID")' unchecked >
  582. </td>
  583. <td width="200px">
  584. <class id="MQTT_ClientID_text" style="color:black;">ClientID</class>
  585. </td>
  586. <td>
  587. <input type="text" id="MQTT_ClientID_value1">
  588. </td>
  589. <td style="font-size: 80%;">
  590. ClientID to connect to the MQTT broker
  591. </td>
  592. </tr>
  593. <tr>
  594. <td width="20px" style="padding-left: 40px;">
  595. <input type="checkbox" id="MQTT_user_enabled" value="1" onclick = 'InvertEnableItem("MQTT", "user")' unchecked >
  596. </td>
  597. <td width="200px">
  598. <class id="MQTT_user_text" style="color:black;">user</class>
  599. </td>
  600. <td>
  601. <input type="text" id="MQTT_user_value1">
  602. </td>
  603. <td style="font-size: 80%;">
  604. User for MQTT authentication
  605. </td>
  606. </tr>
  607. <tr>
  608. <td width="20px" style="padding-left: 40px;">
  609. <input type="checkbox" id="MQTT_password_enabled" value="1" onclick = 'InvertEnableItem("MQTT", "password")' unchecked >
  610. </td>
  611. <td width="200px">
  612. <class id="MQTT_password_text" style="color:black;">password</class>
  613. </td>
  614. <td>
  615. <input type="text" id="MQTT_password_value1">
  616. </td>
  617. <td style="font-size: 80%;">
  618. Password for MQTT authentication
  619. </td>
  620. </tr>
  621. <tr>
  622. <td width="20px" style="padding-left: 40px;">
  623. <input type="checkbox" id="MQTT_SetRetainFlag_enabled" value="1" onclick = 'InvertEnableItem("MQTT", "SetRetainFlag")' unchecked >
  624. </td>
  625. <td width="200px">
  626. <class id="MQTT_SetRetainFlag_text" style="color:black;">Enable MQTT Retain Flag</class>
  627. </td>
  628. <td>
  629. <select id="MQTT_SetRetainFlag_value1">
  630. <option value="true" selected>true</option>
  631. <option value="false" >false</option>
  632. </select>
  633. </td>
  634. <td style="font-size: 80%;">
  635. Enable or disable the retain flag for all MQTT entries
  636. </td>
  637. </tr>
  638. <tr>
  639. <td colspan="4" style="padding-left: 20px;"><h4><input type="checkbox" id="Category_InfluxDB_enabled" value="1" onclick = 'UpdateAfterCategoryCheck()' unchecked > InfluxDB</h4></td>
  640. </tr>
  641. <tr>
  642. <td width="20px" style="padding-left: 40px;">
  643. <input type="checkbox" id="InfluxDB_Uri_enabled" value="1" onclick = 'InvertEnableItem("InfluxDB", "Uri")' unchecked >
  644. </td>
  645. <td width="200px">
  646. <class id="InfluxDB_Uri_text" style="color:black;">Uri</class>
  647. </td>
  648. <td>
  649. <input type="text" id="InfluxDB_Uri_value1">
  650. </td>
  651. <td style="font-size: 80%;">
  652. URI of the HTTP interface to InfluxDB, without traililing slash, e.g. http://IP-Address:Port
  653. </td>
  654. </tr>
  655. <tr>
  656. <td width="20px" style="padding-left: 40px;">
  657. <input type="checkbox" id="InfluxDB_Database_enabled" value="1" onclick = 'InvertEnableItem("InfluxDB", "Database")' unchecked >
  658. </td>
  659. <td width="200px">
  660. <class id="InfluxDB_Database_text" style="color:black;">Database</class>
  661. </td>
  662. <td>
  663. <input type="text" id="InfluxDB_Database_value1">
  664. </td>
  665. <td style="font-size: 80%;">
  666. Database name in which to publish the read value.
  667. </td>
  668. </tr>
  669. <tr>
  670. <td width="20px" style="padding-left: 40px;">
  671. <input type="checkbox" id="InfluxDB_Measurement_enabled" value="1" onclick = 'InvertEnableItem("InfluxDB", "Measurement")' unchecked >
  672. </td>
  673. <td width="200px">
  674. <class id="InfluxDB_Measurement_text" style="color:black;">Measurement</class>
  675. </td>
  676. <td>
  677. <input type="text" id="InfluxDB_Measurement_value1">
  678. </td>
  679. <td style="font-size: 80%;">
  680. Measurement name to use to publish the read value.
  681. </td>
  682. </tr>
  683. <tr>
  684. <td width="20px" style="padding-left: 40px;">
  685. <input type="checkbox" id="InfluxDB_user_enabled" value="1" onclick = 'InvertEnableItem("InfluxDB", "user")' unchecked >
  686. </td>
  687. <td width="200px">
  688. <class id="InfluxDB_user_text" style="color:black;">user</class>
  689. </td>
  690. <td>
  691. <input type="text" id="InfluxDB_user_value1">
  692. </td>
  693. <td style="font-size: 80%;">
  694. User for InfluxDB authentication
  695. </td>
  696. </tr>
  697. <tr>
  698. <td width="20px" style="padding-left: 40px;">
  699. <input type="checkbox" id="InfluxDB_password_enabled" value="1" onclick = 'InvertEnableItem("InfluxDB", "password")' unchecked >
  700. </td>
  701. <td width="200px">
  702. <class id="InfluxDB_password_text" style="color:black;">password</class>
  703. </td>
  704. <td>
  705. <input type="text" id="InfluxDB_password_value1">
  706. </td>
  707. <td style="font-size: 80%;">
  708. Password for InfluxDB authentication
  709. </td>
  710. </tr>
  711. <tr>
  712. <td colspan="4" style="padding-left: 20px;"><h4>AutoTimer</h4></td>
  713. </tr>
  714. <tr class="expert" id="ex13">
  715. <td width="20px" style="padding-left: 40px;">
  716. </td>
  717. <td width="200px">
  718. <class id="AutoTimer_AutoStart_text" style="color:black;">AutoStart</class>
  719. </td>
  720. <td>
  721. <select id="AutoTimer_AutoStart_value1">
  722. <option value="true" selected>true</option>
  723. <option value="false" >false</option>
  724. </select>
  725. </td>
  726. <td style="font-size: 80%;">
  727. Start the image recognition immediatly after power up. false is basically for debugging.
  728. </td>
  729. </tr>
  730. <tr>
  731. <td width="20px" style="padding-left: 40px;">
  732. </td>
  733. <td width="200px">
  734. <class id="AutoTimer_Intervall_text" style="color:black;">Intervall</class>
  735. </td>
  736. <td>
  737. <input type="number" id="AutoTimer_Intervall_value1" size="13" min="3" step="any">
  738. </td>
  739. <td style="font-size: 80%;">
  740. Intervall in which the counter is read (in minutes). Number must be greater than 3 minutes.
  741. </td>
  742. </tr>
  743. <tr>
  744. <td colspan="4" style="padding-left: 20px;">
  745. <h4><input type="checkbox" id="Category_GPIO_enabled" value="1" onclick='UpdateAfterCategoryCheck()' unchecked >
  746. GPIO Settings
  747. <span class="GPIO_item" > - Enabling GPIO handler, disable by default integrated flash light. Please enable it with GPIO4 (internal flash LED) settings or GPIO12 (external LED).</span>
  748. </h4>
  749. </td>
  750. </tr>
  751. <!------------- GPIO0 begin ------------------>
  752. <tr class="expert" class="GPIO_IO0 GPIO_item">
  753. <td width="20px" style="padding-left: 40px;">
  754. <input type="checkbox" id="GPIO_IO0_enabled" value="1" onclick = 'InvertEnableItem("GPIO", "IO0")' unchecked>
  755. </td>
  756. <td>
  757. <span id="GPIO_IO0_text">GPIO 0 state</span>
  758. </td>
  759. <td>
  760. <td">
  761. <select id="GPIO_IO0_value1">
  762. <option value="input">input</option>
  763. <option value="input-pullup">input pullup</option>
  764. <option value="input-pulldown">input pulldown</option>
  765. <option value="output">output</option>
  766. </select>
  767. </td>
  768. </td>
  769. <td class="description">
  770. GPIO 0 Usable with restrictions.<br>
  771. <span style="color: red">Must be disabled when camera is used.</span><br>
  772. <span style="color: red">Pin is used to activate flash mode and must therefore be HIGH when booting.</span>
  773. </td>
  774. </tr>
  775. <tr class="expert" class="GPIO_IO0 GPIO_item">
  776. <td width="20px" style="padding-left: 40px;"></td>
  777. <td>
  778. <span id="GPIO_IO0_text" class="GPIO_IO0 GPIO_item">GPIO 0 use interrupt</span>
  779. </td>
  780. <td>
  781. <td">
  782. <select id="GPIO_IO0_value2">
  783. <option value="disabled">disabled</option>
  784. <option value="rising-edge">rising edge</option>
  785. <option value="falling-edge">falling edge</option>
  786. <option value="rising-and-falling">rising and falling</option>
  787. <option value="low-level-trigger">low level trigger</option>
  788. <option value="high-level-trigger">high level trigger</option>
  789. </select>
  790. </td>
  791. </td>
  792. <td class="description">
  793. GPIO 0 enable interrupt trigger
  794. </td>
  795. </tr>
  796. <tr class="expert" class="GPIO_IO0 GPIO_item">
  797. <td width="20px" style="padding-left: 40px;"></td>
  798. <td>
  799. <span class="GPIO_IO0 GPIO_item">GPIO 0 PWM duty resolution</span>
  800. </td>
  801. <td>
  802. <td"><input type="number" id="GPIO_IO0_value3" min="1" max="20"></td>
  803. </td>
  804. <td class="description">
  805. GPIO 0 LEDC PWM duty resolution in bit
  806. </td>
  807. </tr>
  808. <tr class="expert" class="GPIO_IO0 GPIO_item">
  809. <td width="20px" style="padding-left: 40px;"></td>
  810. <td>
  811. <span class="GPIO_IO0 GPIO_item">GPIO 0 enable MQTT</span>
  812. </td>
  813. <td>
  814. <td"><input type="checkbox" id="GPIO_IO0_value4"></td>
  815. </td>
  816. <td class="description">
  817. GPIO 0 enable MQTT publishing/subscribing
  818. </td>
  819. </tr>
  820. <tr class="expert" class="GPIO_IO0 GPIO_item">
  821. <td width="20px" style="padding-left: 40px;"></td>
  822. <td>
  823. <span class="GPIO_IO0 GPIO_item">GPIO 0 enable HTTP</span>
  824. </td>
  825. <td>
  826. <td"><input type="checkbox" id="GPIO_IO0_value5"></td>
  827. </td>
  828. <td class="description">
  829. GPIO 0 enable HTTP write/read
  830. </td>
  831. </tr>
  832. <tr class="expert" class="GPIO_IO0 GPIO_item">
  833. <td width="20px" style="padding-left: 40px;"></td>
  834. <td>
  835. <span class="GPIO_IO0 GPIO_item">GPIO 0 name</span>
  836. </td>
  837. <td>
  838. <td"><input type="text" id="GPIO_IO0_value6"></td>
  839. </td>
  840. <td class="description">
  841. GPIO 0 MQTT topic name (empty = GPIO0). Allowed characters (a-z, A-Z, 0-9, _, -)
  842. </td>
  843. </tr>
  844. <!------------- GPIO0 end ------------------>
  845. <!------------- GPIO1 begin ------------------>
  846. <tr class="expert" class="GPIO_IO1 GPIO_item">
  847. <td width="20px" style="padding-left: 40px;">
  848. <input type="checkbox" id="GPIO_IO1_enabled" value="1" onclick = 'InvertEnableItem("GPIO", "IO1")' unchecked>
  849. </td>
  850. <td>
  851. <span id="GPIO_IO1_text" class="GPIO_IO1 GPIO_item">GPIO 1 state</span>
  852. </td>
  853. <td>
  854. <td">
  855. <select id="GPIO_IO1_value1">
  856. <option value="input">input</option>
  857. <option value="input-pullup">input pullup</option>
  858. <option value="input-pulldown">input pulldown</option>
  859. <option value="output">output</option>
  860. </select>
  861. </td>
  862. </td>
  863. <td class="description">
  864. GPIO 1 <br><span style="color: blue">Used by default for serial communication as TX pin.<br>Required for seriales monitor.</span>
  865. </td>
  866. </tr>
  867. <tr class="expert" class="GPIO_IO1 GPIO_item">
  868. <td width="20px" style="padding-left: 40px;"></td>
  869. <td>
  870. <span class="GPIO_IO1 GPIO_item" class="expert">GPIO 1 use interrupt</span>
  871. </td>
  872. <td>
  873. <td">
  874. <select id="GPIO_IO1_value2">
  875. <option value="disabled">disabled</option>
  876. <option value="rising-edge" disabled>rising edge</option>
  877. <option value="falling-edge" disabled>falling edge</option>
  878. <option value="rising-and-falling">rising and falling</option>
  879. <option value="low-level-trigger">low level trigger</option>
  880. <option value="high-level-trigger">high level trigger</option>
  881. </select>
  882. </td>
  883. </td>
  884. <td class="description">
  885. GPIO 1 enable interrupt trigger
  886. </td>
  887. </tr>
  888. <tr class="expert" class="GPIO_IO1 GPIO_item">
  889. <td width="20px" style="padding-left: 40px;"></td>
  890. <td>
  891. <span class="GPIO_IO1 GPIO_item">GPIO 1 PWM duty resolution</span>
  892. </td>
  893. <td>
  894. <td"><input type="number" id="GPIO_IO1_value3" min="1" max="20"></td>
  895. </td>
  896. <td class="description">
  897. GPIO 1 LEDC PWM duty resolution in bit
  898. </td>
  899. </tr>
  900. <tr class="expert" class="GPIO_IO1 GPIO_item">
  901. <td width="20px" style="padding-left: 40px;"></td>
  902. <td>
  903. <span class="GPIO_IO1 GPIO_item">GPIO 1 enable MQTT</span>
  904. </td>
  905. <td>
  906. <td"><input type="checkbox" id="GPIO_IO1_value4"></td>
  907. </td>
  908. <td class="description">
  909. GPIO 1 enable MQTT publishing/subscribing
  910. </td>
  911. </tr>
  912. <tr class="expert" class="GPIO_IO1 GPIO_item">
  913. <td width="20px" style="padding-left: 40px;"></td>
  914. <td>
  915. <span class="GPIO_IO1 GPIO_item">GPIO 1 enable HTTP</span>
  916. </td>
  917. <td>
  918. <td"><input type="checkbox" id="GPIO_IO1_value5"></td>
  919. </td>
  920. <td class="description">
  921. GPIO 1 enable HTTP write/read
  922. </td>
  923. </tr>
  924. <tr class="expert" class="GPIO_IO1 GPIO_item">
  925. <td width="20px" style="padding-left: 40px;"></td>
  926. <td>
  927. <span class="GPIO_IO1 GPIO_item" class="expert">GPIO 1 name</span>
  928. </td>
  929. <td>
  930. <td"><input type="text" id="GPIO_IO1_value6"></td>
  931. </td>
  932. <td class="description">
  933. GPIO 1 MQTT topic name (empty = GPIO1). Allowed characters (a-z, A-Z, 0-9, _, -)
  934. </td>
  935. </tr>
  936. <!------------- GPIO1 end ------------------>
  937. <!------------- GPIO3 begin ------------------>
  938. <tr class="expert" class="GPIO_IO3 GPIO_item">
  939. <td width="20px" style="padding-left: 40px;">
  940. <input type="checkbox" id="GPIO_IO3_enabled" value="1" onclick = 'InvertEnableItem("GPIO", "IO3")' unchecked>
  941. </td>
  942. <td>
  943. <span id="GPIO_IO3_text" class="GPIO_IO3 GPIO_item">GPIO 3 state</span>
  944. </td>
  945. <td>
  946. <td">
  947. <select id="GPIO_IO3_value1">
  948. <option value="input">input</option>
  949. <option value="input-pullup">input pullup</option>
  950. <option value="input-pulldown">input pulldown</option>
  951. <option value="output">output</option>
  952. </select>
  953. </td>
  954. </td>
  955. <td class="description">
  956. GPIO 3 <span style="color: blue">Used by default for serial communication as RX pin.</span>
  957. </td>
  958. </tr>
  959. <tr class="expert" class="GPIO_IO3 GPIO_item">
  960. <td width="20px" style="padding-left: 40px;"></td>
  961. <td>
  962. <span class="GPIO_IO3 GPIO_item">GPIO 3 use interrupt</span>
  963. </td>
  964. <td>
  965. <td">
  966. <select id="GPIO_IO3_value2">
  967. <option value="disabled">disabled</option>
  968. <option value="rising-edge" disabled>rising edge</option>
  969. <option value="falling-edge" disabled>falling edge</option>
  970. <option value="rising-and-falling">rising and falling</option>
  971. <option value="low-level-trigger">low level trigger</option>
  972. <option value="high-level-trigger">high level trigger</option>
  973. </select>
  974. </td>
  975. </td>
  976. <td class="description">
  977. GPIO 3 Used by default for serial communication as RX pin.
  978. </td>
  979. </tr>
  980. <tr class="expert" class="GPIO_IO3 GPIO_item">
  981. <td width="20px" style="padding-left: 40px;"></td>
  982. <td>
  983. <span class="GPIO_IO3 GPIO_item">GPIO 3 PWM duty resolution</span>
  984. </td>
  985. <td>
  986. <td"><input type="number" id="GPIO_IO3_value3" min="1" max="20"></td>
  987. </td>
  988. <td class="description">
  989. GPIO 3 LEDC PWM duty resolution in bit
  990. </td>
  991. </tr>
  992. <tr class="expert" class="GPIO_IO3 GPIO_item">
  993. <td width="20px" style="padding-left: 40px;"></td>
  994. <td>
  995. <span class="GPIO_IO3 GPIO_item">GPIO 3 enable MQTT</span>
  996. </td>
  997. <td>
  998. <td"><input type="checkbox" id="GPIO_IO3_value4"></td>
  999. </td>
  1000. <td class="description">
  1001. GPIO 3 enable MQTT publishing/subscribing
  1002. </td>
  1003. </tr>
  1004. <tr class="expert" class="GPIO_IO3 GPIO_item">
  1005. <td width="20px" style="padding-left: 40px;"></td>
  1006. <td>
  1007. <span class="GPIO_IO3 GPIO_item">GPIO 3 enable HTTP</span>
  1008. </td>
  1009. <td>
  1010. <td"><input type="checkbox" id="GPIO_IO3_value5"></td>
  1011. </td>
  1012. <td class="description">
  1013. GPIO 3 enable HTTP write/read
  1014. </td>
  1015. </tr>
  1016. <tr class="expert" class="GPIO_IO3 GPIO_item">
  1017. <td width="20px" style="padding-left: 40px;"></td>
  1018. <td>
  1019. <span class="GPIO_IO3 GPIO_item">GPIO 3 name</span>
  1020. </td>
  1021. <td>
  1022. <td"><input type="text" id="GPIO_IO3_value6"></td>
  1023. </td>
  1024. <td class="description">
  1025. GPIO 3 MQTT topic name (empty = GPIO3). Allowed characters (a-z, A-Z, 0-9, _, -)
  1026. </td>
  1027. </tr>
  1028. <!------------- GPIO3 end ------------------>
  1029. <!------------- GPIO4 begin ------------------>
  1030. <tr class="GPIO_IO4 GPIO_item">
  1031. <td width="20px" style="padding-left: 40px;">
  1032. <input type="checkbox" id="GPIO_IO4_enabled" value="1" onclick = 'InvertEnableItem("GPIO", "IO4")' unchecked>
  1033. </td>
  1034. <td>
  1035. <span id="GPIO_IO4_text" class="GPIO_IO4 GPIO_item">GPIO 4 state</span>
  1036. </td>
  1037. <td>
  1038. <td">
  1039. <select id="GPIO_IO4_value1">
  1040. <option value="input">input</option>
  1041. <option value="input-pullup">input pullup</option>
  1042. <option value="input-pulldown">input pulldown</option>
  1043. <option value="output">output</option>
  1044. <option value="built-in-led">built-in led flash light</option>
  1045. </select>
  1046. </td>
  1047. </td>
  1048. <td class="description">
  1049. GPIO 4 Usable with restrictions.<br>
  1050. <span style="color: red">Pin is used for build-in flash light.</span>
  1051. </td>
  1052. </tr>
  1053. <tr class="expert" class="GPIO_IO4 GPIO_item">
  1054. <td width="20px" style="padding-left: 40px;"></td>
  1055. <td>
  1056. <span class="GPIO_IO4 GPIO_item">GPIO 4 use interrupt</span>
  1057. </td>
  1058. <td>
  1059. <td">
  1060. <select id="GPIO_IO4_value2">
  1061. <option value="disabled">disabled</option>
  1062. <option value="rising-edge">rising edge</option>
  1063. <option value="falling-edge">falling edge</option>
  1064. <option value="rising-and-falling">rising and falling</option>
  1065. <option value="low-level-trigger">low level trigger</option>
  1066. <option value="high-level-trigger">high level trigger</option>
  1067. </select>
  1068. </td>
  1069. </td>
  1070. <td class="description">
  1071. GPIO 4 enable interrupt trigger
  1072. </td>
  1073. </tr>
  1074. <tr class="expert" class="GPIO_IO4 GPIO_item">
  1075. <td width="20px" style="padding-left: 40px;"></td>
  1076. <td>
  1077. <span class="GPIO_IO4 GPIO_item">GPIO 4 PWM duty resolution</span>
  1078. </td>
  1079. <td>
  1080. <td"><input type="number" id="GPIO_IO4_value3" min="1" max="20"></td>
  1081. </td>
  1082. <td class="description">
  1083. GPIO 4 LEDC PWM duty resolution in bit
  1084. </td>
  1085. </tr>
  1086. <tr class="expert" class="GPIO_IO4 GPIO_item">
  1087. <td width="20px" style="padding-left: 40px;"></td>
  1088. <td>
  1089. <span class="GPIO_IO4 GPIO_item">GPIO 4 enable MQTT</span>
  1090. </td>
  1091. <td>
  1092. <td"><input type="checkbox" id="GPIO_IO4_value4"></td>
  1093. </td>
  1094. <td class="description">
  1095. GPIO 4 enable MQTT publishing/subscribing
  1096. </td>
  1097. </tr>
  1098. <tr class="expert" class="GPIO_IO4 GPIO_item">
  1099. <td width="20px" style="padding-left: 40px;"></td>
  1100. <td>
  1101. <span class="GPIO_IO4 GPIO_item">GPIO 4 enable HTTP</span>
  1102. </td>
  1103. <td>
  1104. <td"><input type="checkbox" id="GPIO_IO4_value5"></td>
  1105. </td>
  1106. <td class="description">
  1107. GPIO 4 enable HTTP write/read
  1108. </td>
  1109. </tr>
  1110. <tr class="expert" class="GPIO_IO4 GPIO_item">
  1111. <td width="20px" style="padding-left: 40px;"></td>
  1112. <td>
  1113. <span class="GPIO_IO4 GPIO_item">GPIO 4 name</span>
  1114. </td>
  1115. <td>
  1116. <td"><input type="text" id="GPIO_IO4_value6"></td>
  1117. </td>
  1118. <td class="description">
  1119. GPIO 4 MQTT topic name (empty = GPIO4). Allowed characters (a-z, A-Z, 0-9, _, -)
  1120. </td>
  1121. </tr>
  1122. <!------------- GPIO4 end ------------------>
  1123. <!------------- GPIO12 begin ------------------>
  1124. <tr class="GPIO_IO12 GPIO_item">
  1125. <td width="20px" style="padding-left: 40px;">
  1126. <input type="checkbox" id="GPIO_IO12_enabled" value="1" onclick = 'InvertEnableItem("GPIO", "IO12")' unchecked>
  1127. </td>
  1128. <td>
  1129. <span class="GPIO_IO12 GPIO_item" id="GPIO_IO12_text">GPIO 12 state</span>
  1130. </td>
  1131. <td>
  1132. <td">
  1133. <select id="GPIO_IO12_value1">
  1134. <option value="input">input</option>
  1135. <option value="input-pullup">input pullup</option>
  1136. <option value="input-pulldown">input pulldown</option>
  1137. <option value="output">output</option>
  1138. <option value="external-flash-ws281x">external flash light ws281x controlled</option>
  1139. </select>
  1140. </td>
  1141. </td>
  1142. <td class="description">
  1143. GPIO 12 is usable without restrictions
  1144. </td>
  1145. </tr>
  1146. <tr class="expert" class="GPIO_IO12 GPIO_item">
  1147. <td width="20px" style="padding-left: 40px;"></td>
  1148. <td>
  1149. <span class="GPIO_IO12 GPIO_item">GPIO 12 use interrupt</span>
  1150. </td>
  1151. <td>
  1152. <td>
  1153. <select class="GPIO_IO12 GPIO_item" id="GPIO_IO12_value2">
  1154. <option value="disabled">disabled</option>
  1155. <option value="rising-edge">rising edge</option>
  1156. <option value="falling-edge">falling edge</option>
  1157. <option value="rising-and-falling">rising and falling</option>
  1158. <option value="low-level-trigger">low level trigger</option>
  1159. <option value="high-level-trigger">high level trigger</option>
  1160. </select>
  1161. </td>
  1162. </td>
  1163. <td class="description">
  1164. GPIO 12 enable interrupt trigger
  1165. </td>
  1166. </tr>
  1167. <tr class="expert" class="GPIO_IO12 GPIO_item">
  1168. <td width="20px" style="padding-left: 40px;"></td>
  1169. <td>
  1170. <span class="GPIO_IO12 GPIO_item">GPIO 12 PWM duty resolution</span>
  1171. </td>
  1172. <td>
  1173. <td"><input type="number" id="GPIO_IO12_value3" min="1" max="20"></td>
  1174. </td>
  1175. <td class="description">
  1176. GPIO 12 LEDC PWM duty resolution in bit
  1177. </td>
  1178. </tr>
  1179. <tr class="expert" class="GPIO_IO12 GPIO_item">
  1180. <td width="20px" style="padding-left: 40px;"></td>
  1181. <td>
  1182. <span class="GPIO_IO12 GPIO_item">GPIO 12 enable MQTT</span>
  1183. </td>
  1184. <td>
  1185. <td"><input type="checkbox" id="GPIO_IO12_value4"></td>
  1186. </td>
  1187. <td class="description">
  1188. GPIO 12 enable MQTT publishing/subscribing
  1189. </td>
  1190. </tr>
  1191. <tr class="expert" class="GPIO_IO12 GPIO_item">
  1192. <td width="20px" style="padding-left: 40px;"></td>
  1193. <td>
  1194. <span class="GPIO_IO12 GPIO_item">GPIO 12 enable HTTP</span>
  1195. </td>
  1196. <td>
  1197. <td"><input type="checkbox" id="GPIO_IO12_value5"></td>
  1198. </td>
  1199. <td class="description">
  1200. GPIO 12 enable HTTP write/read
  1201. </td>
  1202. </tr>
  1203. <tr class="expert" class="GPIO_IO12 GPIO_item">
  1204. <td width="20px" style="padding-left: 40px;"></td>
  1205. <td>
  1206. <span class="GPIO_IO12 GPIO_item">GPIO 12 name</span>
  1207. </td>
  1208. <td>
  1209. <td"><input type="text" id="GPIO_IO12_value6"></td>
  1210. </td>
  1211. <td class="description">
  1212. GPIO 12 MQTT topic name (empty = GPIO12). Allowed characters (a-z, A-Z, 0-9, _, -)
  1213. </td>
  1214. </tr>
  1215. <tr class="GPIO_IO12 GPIO_item" id="wstypeex3">
  1216. <td width="20px" style="padding-left: 40px;">
  1217. </td>
  1218. <td>
  1219. <span class="GPIO_IO12 GPIO_item" id="GPIO_LEDType_text">LED-Type</span>
  1220. </td>
  1221. <td class="GPIO_IO12 GPIO_item">
  1222. <select class="GPIO_IO12 GPIO_item" id="GPIO_LEDType_value1">
  1223. <option value="WS2812" selected>WS2812</option>
  1224. <option value="WS2812B">WS2812B</option>
  1225. <option value="SK6812">SK6812 (not tested)</option>
  1226. <option value="WS2813">WS2813 (not tested)</option>
  1227. </select>
  1228. </td>
  1229. <td class="description">
  1230. Type of WS2812x, that is connected to GPIO12
  1231. </td>
  1232. </tr>
  1233. <tr class="GPIO_IO12 GPIO_item" id="LEDANZex8" >
  1234. <td width="20px" style="padding-left: 40px;">
  1235. </td>
  1236. <td>
  1237. <span class="GPIO_IO12 GPIO_item" id="GPIO_LEDNumbers_text">Numbers of LEDs</span>
  1238. </td>
  1239. <td>
  1240. <input type="number" name="name" id="GPIO_LEDNumbers_value1" size="13" min="1">
  1241. </td>
  1242. <td style="font-size: 80%;">
  1243. Number of LEDs on the external LED-stripe
  1244. </td>
  1245. </tr>
  1246. <tr class="GPIO_IO12 GPIO_item" id="LEDRGBex9">
  1247. <td width="20px" style="padding-left: 40px;">
  1248. </td>
  1249. <td>
  1250. <span class="GPIO_IO12 GPIO_item" id="GPIO_LEDColor_text">LED Color</span>
  1251. </td>
  1252. <td class="GPIO_IO12 GPIO_item">
  1253. R <input class="smallSelect" class="GPIO_IO12 GPIO_item" id="GPIO_LEDColor_value1" size="12">
  1254. G <input class="smallSelect" class="GPIO_IO12 GPIO_item" id="GPIO_LEDColor_value2" size="12">
  1255. B <input class="smallSelect" class="GPIO_IO12 GPIO_item" id="GPIO_LEDColor_value3" size="12">
  1256. </td>
  1257. <td style="font-size: 80%;">
  1258. Color of LEDs in (R)ed, (G)reen (B)lue from 0...255
  1259. </td>
  1260. </tr>
  1261. <!------------- GPIO12 end ------------------>
  1262. <!------------- GPIO13 begin ------------------>
  1263. <tr class="expert" class="GPIO_IO13 GPIO_item">
  1264. <td width="20px" style="padding-left: 40px;">
  1265. <input type="checkbox" id="GPIO_IO13_enabled" value="1" onclick = 'InvertEnableItem("GPIO", "IO13")' unchecked>
  1266. </td>
  1267. <td>
  1268. <span id="GPIO_IO13_text">GPIO 13 state</span>
  1269. </td>
  1270. <td>
  1271. <td">
  1272. <select id="GPIO_IO13_value1">
  1273. <option value="input">input</option>
  1274. <option value="input-pullup">input pullup</option>
  1275. <option value="input-pulldown">input pulldown</option>
  1276. <option value="output">output</option>
  1277. </select>
  1278. </td>
  1279. </td>
  1280. <td class="description">
  1281. GPIO 13 is usable without restrictions
  1282. </td>
  1283. </tr>
  1284. <tr class="expert" class="GPIO_IO13 GPIO_item">
  1285. <td width="20px" style="padding-left: 40px;"></td>
  1286. <td>
  1287. <span class="GPIO_IO13 GPIO_item">GPIO 13 use interrupt</span>
  1288. </td>
  1289. <td>
  1290. <td">
  1291. <select id="GPIO_IO13_value2">
  1292. <option value="disabled">disabled</option>
  1293. <option value="rising-edge" disabled>rising edge</option>
  1294. <option value="falling-edge" disabled>falling edge</option>
  1295. <option value="rising-and-falling">rising and falling</option>
  1296. <option value="low-level-trigger">low level trigger</option>
  1297. <option value="high-level-trigger">high level trigger</option>
  1298. </select>
  1299. </td>
  1300. </td>
  1301. <td class="description">
  1302. GPIO 13 enable interrupt trigger
  1303. </td>
  1304. </tr>
  1305. <tr class="expert" class="GPIO_IO13 GPIO_item">
  1306. <td width="20px" style="padding-left: 40px;"></td>
  1307. <td>
  1308. <span class="GPIO_IO13 GPIO_item">GPIO 13 PWM duty resolution</span>
  1309. </td>
  1310. <td>
  1311. <td"><input type="number" id="GPIO_IO13_value3" min="1" max="20"></td>
  1312. </td>
  1313. <td class="description">
  1314. GPIO 13 LEDC PWM duty resolution in bit
  1315. </td>
  1316. </tr>
  1317. <tr class="expert" class="GPIO_IO13 GPIO_item">
  1318. <td width="20px" style="padding-left: 40px;"></td>
  1319. <td>
  1320. <span class="GPIO_IO13 GPIO_item">GPIO 13 enable MQTT</span>
  1321. </td>
  1322. <td>
  1323. <td"><input type="checkbox" id="GPIO_IO13_value4"></td>
  1324. </td>
  1325. <td class="description">
  1326. GPIO 13 enable MQTT publishing/subscribing
  1327. </td>
  1328. </tr>
  1329. <tr class="expert" class="GPIO_IO13 GPIO_item">
  1330. <td width="20px" style="padding-left: 40px;"></td>
  1331. <td>
  1332. <span class="GPIO_IO13 GPIO_item">GPIO 13 enable HTTP</span>
  1333. </td>
  1334. <td>
  1335. <td"><input type="checkbox" id="GPIO_IO13_value5"></td>
  1336. </td>
  1337. <td class="description">
  1338. GPIO 13 enable HTTP write/read
  1339. </td>
  1340. </tr>
  1341. <tr class="expert" class="GPIO_IO13 GPIO_item">
  1342. <td width="20px" style="padding-left: 40px;"></td>
  1343. <td>
  1344. <span class="GPIO_IO13 GPIO_item">GPIO 13 name</span>
  1345. </td>
  1346. <td>
  1347. <td"><input type="text" id="GPIO_IO13_value6"></td>
  1348. </td>
  1349. <td class="description">
  1350. GPIO 13 MQTT topic name (empty = GPIO13). Allowed characters (a-z, A-Z, 0-9, _, -)
  1351. </td>
  1352. </tr>
  1353. <!------------- GPIO13 end ------------------>
  1354. <tr>
  1355. <td colspan="4" style="padding-left: 20px;"><h4>Debug</h4></td>
  1356. </tr>
  1357. <tr>
  1358. <td width="20px" style="padding-left: 40px;">
  1359. <input type="checkbox" id="Debug_Logfile_enabled" value="1" onclick = 'InvertEnableItem("Debug", "Logfile")' unchecked >
  1360. </td>
  1361. <td width="200px">
  1362. <class id="Debug_Logfile_text" style="color:black;">Logfile</class>
  1363. </td>
  1364. <td>
  1365. <select id="Debug_Logfile_value1">
  1366. <option value="true" selected>true</option>
  1367. <option value="false" >false</option>
  1368. </select>
  1369. </td>
  1370. <td class="description">
  1371. Turn on/off the extended logging
  1372. </td>
  1373. </tr>
  1374. <tr>
  1375. <td width="20px" style="padding-left: 40px;">
  1376. <td"><input type="checkbox" id="Debug_LogfileRetentionInDays_enabled" value="1" onclick = 'InvertEnableItem("Debug", "LogfileRetentionInDays")' unchecked ></td>
  1377. </td>
  1378. <td>
  1379. <class id="Debug_LogfileRetentionInDays_text" style="color:black;">LogfileRetentionInDays</class>
  1380. </td>
  1381. <td>
  1382. <input type="number" id="Debug_LogfileRetentionInDays_value1" size="13" min="0" step="1">
  1383. </td>
  1384. <td class="description">
  1385. Time to keep the log files (in days - "0" = forever)
  1386. </td>
  1387. </tr>
  1388. <tr>
  1389. <td colspan="4" style="padding-left: 20px;"><h4>System</h4></td>
  1390. </tr>
  1391. <tr>
  1392. <td width="20px" style="padding-left: 40px;">
  1393. <td"><input type="checkbox" id="System_TimeZone_enabled" value="1" onclick = 'InvertEnableItem("System", "TimeZone")' unchecked ></td>
  1394. </td>
  1395. <td>
  1396. <class id="System_TimeZone_text" style="color:black;">TimeZone</class>
  1397. </td>
  1398. <td>
  1399. <input type="text" id="System_TimeZone_value1">
  1400. </td>
  1401. <td class="description">
  1402. Time zone in POSIX syntax (Europe/Berlin = "CET-1CEST,M3.5.0,M10.5.0/3" - incl. daylight saving)
  1403. </td>
  1404. </tr>
  1405. <tr class="expert" id="ex16">
  1406. <td width="20px" style="padding-left: 40px;">
  1407. <td"><input type="checkbox" id="System_TimeServer_enabled" value="1" onclick = 'InvertEnableItem("System", "TimeServer")' unchecked ></td>
  1408. </td>
  1409. <td>
  1410. <class id="System_TimeServer_text" style="color:black;">TimeServer</class>
  1411. </td>
  1412. <td>
  1413. <input type="text" id="System_TimeServer_value1">
  1414. </td>
  1415. <td class="description">
  1416. Time server to synchronize system time (default: "pool.ntp.org" - used if nothing is specified)
  1417. </td>
  1418. </tr>
  1419. <tr class="expert" id="System_Hostname">
  1420. <td width="20px" style="padding-left: 40px;">
  1421. <td"><input type="checkbox" id="System_Hostname_enabled" value="1" onclick = 'InvertEnableItem("System", "Hostname")' unchecked ></td>
  1422. </td>
  1423. <td>
  1424. <class id="System_Hostname_text" style="color:black;">Hostname</class>
  1425. </td>
  1426. <td>
  1427. <input type="text" id="System_Hostname_value1">
  1428. </td>
  1429. <td class="description">
  1430. Hostname for server - will be transfered to wlan.ini at next startup)
  1431. </td>
  1432. </tr>
  1433. </table>
  1434. <p>
  1435. <button class="button" onclick="saveTextAsFile()">Update Config.ini</button>
  1436. </p>
  1437. <p>
  1438. </p>
  1439. <div id="doreboot">
  1440. <p>
  1441. <button class="button" id="Edit_Config_Direct" onclick="editConfigDirect()" style="display:none">Edit Config.ini direct</button>
  1442. <button class="button" id="reboot" type="button" onclick="doReboot()">Reboot to activate updates</button>
  1443. </p>
  1444. </div>
  1445. </div>
  1446. <script type="text/javascript" src="./gethost.js"></script>
  1447. <script type="text/javascript" src="./readconfigcommon.js"></script>
  1448. <script type="text/javascript" src="./readconfigparam.js"></script>
  1449. <script type="text/javascript">
  1450. var canvas = document.getElementById('canvas'),
  1451. basepath = "http://192.168.178.22";
  1452. param;
  1453. category;
  1454. NUNBERSAkt = -1;
  1455. NUMBERS;
  1456. function LoadConfigNeu() {
  1457. var isInitialSetup = getParameterByName('InitialSetup');
  1458. if (isInitialSetup === 'true')
  1459. {
  1460. document.getElementById("reboot").style.display = "none";
  1461. }
  1462. basepath = getbasepath();
  1463. if (!loadConfig(basepath)) {
  1464. alert("Config.ini could not be loaded!\nPlease reload the page.");
  1465. return;
  1466. }
  1467. ParseConfig();
  1468. param = getConfigParameters();
  1469. category = getConfigCategory();
  1470. InitIndivParameter();
  1471. UpdateInput();
  1472. UpdateInputIndividual();
  1473. UpdateExpertModus();
  1474. document.getElementById("divall").style.display = '';
  1475. }
  1476. function InitIndivParameter()
  1477. {
  1478. NUMBERS = getNUMBERInfo();
  1479. var _index = document.getElementById("Numbers_value1");
  1480. while (_index.length)
  1481. _index.remove(0);
  1482. for (var i = 0; i < NUMBERS.length; ++i){
  1483. var option = document.createElement("option");
  1484. option.text = NUMBERS[i]["name"];
  1485. option.value = i;
  1486. _index.add(option);
  1487. }
  1488. _index.selectedIndex = 0;
  1489. }
  1490. function getParameterByName(name, url = window.location.href) {
  1491. name = name.replace(/[\[\]]/g, '\\$&');
  1492. var regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)'),
  1493. results = regex.exec(url);
  1494. if (!results) return null;
  1495. if (!results[2]) return '';
  1496. return decodeURIComponent(results[2].replace(/\+/g, ' '));
  1497. }
  1498. function WriteParameter(_param, _category, _cat, _name, _optional, _number = -1){
  1499. let anzpara = _param[_cat][_name].anzParam;
  1500. if (_number > -1) {
  1501. if ((NUMBERS[_number] == undefined) || (NUMBERS[_number][_cat] == undefined) || (NUMBERS[_number][_cat][_name] == undefined))
  1502. return;
  1503. if (_optional) {
  1504. document.getElementById(_cat+"_"+_name+"_enabled").checked = NUMBERS[_number][_cat][_name]["enabled"];
  1505. for (var j = 1; j <= anzpara; ++j) {
  1506. document.getElementById(_cat+"_"+_name+"_value"+j).disabled = !NUMBERS[_number][_cat][_name]["enabled"];
  1507. }
  1508. }
  1509. document.getElementById(_cat+"_"+_name+"_text").style="color:black;"
  1510. setEnabled(_cat+"_"+_name, true);
  1511. for (var j = 1; j <= anzpara; ++j) {
  1512. let element = document.getElementById(_cat+"_"+_name+"_value"+j);
  1513. if (element.tagName.toLowerCase() == "select") {
  1514. var textToFind = NUMBERS[_number][_cat][_name]["value"+j];
  1515. if (textToFind == undefined)
  1516. continue;
  1517. _isFound = false;
  1518. element.selectedIndex = -1;
  1519. for (var i = 0; i < element.options.length; i++) {
  1520. if (element.options[i].value.toLowerCase() === textToFind.toLowerCase()) {
  1521. element.selectedIndex = i;
  1522. _isFound = true;
  1523. break;
  1524. }
  1525. }
  1526. if (!_isFound)
  1527. {
  1528. _zw_txt = "In the selectd field the value '" + textToFind + "' in the parameter '";
  1529. _zw_txt = _zw_txt + _cat + "' in the field '" + _name + "' is invalid.\nPLEASE CHECK BEFORE SAVING!";
  1530. alert(_zw_txt);
  1531. }
  1532. }
  1533. else if ((element.getAttribute("type") != null) && (element.getAttribute("type").toLowerCase() == "checkbox")) {
  1534. element.checked = NUMBERS[_number][_cat][_name]["value"+j] == "true";
  1535. }
  1536. else {
  1537. element.value = NUMBERS[_number][_cat][_name]["value"+j];
  1538. }
  1539. }
  1540. }
  1541. else {
  1542. if (_optional) {
  1543. document.getElementById(_cat+"_"+_name+"_enabled").checked = _param[_cat][_name]["enabled"];
  1544. for (var j = 1; j <= anzpara; ++j) {
  1545. document.getElementById(_cat+"_"+_name+"_value"+j).disabled = !_param[_cat][_name]["enabled"];
  1546. }
  1547. }
  1548. document.getElementById(_cat+"_"+_name+"_text").style="color:black;"
  1549. setEnabled(_cat+"_"+_name, true);
  1550. for (var j = 1; j <= anzpara; ++j) {
  1551. let element = document.getElementById(_cat+"_"+_name+"_value"+j);
  1552. if (element.tagName.toLowerCase() == "select") {
  1553. var textToFind = _param[_cat][_name]["value"+j];
  1554. if (textToFind == undefined)
  1555. continue;
  1556. _isFound = false;
  1557. element.selectedIndex = -1;
  1558. for (var i = 0; i < element.options.length; i++) {
  1559. if (element.options[i].value.toLowerCase() === textToFind.toLowerCase()) {
  1560. element.selectedIndex = i;
  1561. _isFound = true;
  1562. break;
  1563. }
  1564. }
  1565. if (!_isFound)
  1566. {
  1567. _zw_txt = "In the selectd field the value '" + textToFind + "' in the section '";
  1568. _zw_txt = _zw_txt + _cat + "' in the field '" + _name + "' is invalid.\nPLEASE CHECK BEFORE SAVING!";
  1569. alert(_zw_txt);
  1570. }
  1571. }
  1572. else if ((element.getAttribute("type") != null) && (element.getAttribute("type").toLowerCase() == "checkbox")) {
  1573. element.checked = _param[_cat][_name]["value"+j] == "true";
  1574. }
  1575. else {
  1576. element.value = _param[_cat][_name]["value"+j];
  1577. }
  1578. }
  1579. }
  1580. ///////////////// am Ende, falls Kategorie als gesamtes nicht ausgewählt --> deaktivieren
  1581. if (_category[_cat]["enabled"] == false)
  1582. {
  1583. if (_optional) {
  1584. document.getElementById(_cat+"_"+_name+"_enabled").disabled = true;
  1585. for (var j = 1; j <= anzpara; ++j) {
  1586. document.getElementById(_cat+"_"+_name+"_value"+j).disabled = true;
  1587. }
  1588. }
  1589. document.getElementById(_cat+"_"+_name+"_text").style="color:lightgrey;"
  1590. setEnabled(_cat+"_"+_name, false);
  1591. }
  1592. EnDisableItem(_category[_cat]["enabled"], _param, _category, _cat, _name, _optional, _number);
  1593. }
  1594. function InvertEnableItem(_cat, _param)
  1595. {
  1596. _zw = _cat + "_" + _param + "_enabled";
  1597. _isOn = document.getElementById(_zw).checked;
  1598. _color = "color:lightgrey;";
  1599. if (_isOn) {
  1600. _color = "color:black;";
  1601. }
  1602. _zw = _cat + "_" + _param + "_text";
  1603. document.getElementById(_zw).disabled = !_isOn;
  1604. document.getElementById(_zw).style = _color;
  1605. setEnabled(_cat + "_" + _param, _isOn);
  1606. for (var j = 1; j <= param[_cat][_param]["anzParam"]; ++j) {
  1607. document.getElementById(_cat+"_"+_param+"_value"+j).disabled = !_isOn;
  1608. document.getElementById(_cat+"_"+_param+"_value"+j).style=_color;
  1609. }
  1610. }
  1611. function setEnabled(className, enabled) {
  1612. _color = "color:lightgrey;";
  1613. if (enabled) {
  1614. _color = "color:black;";
  1615. }
  1616. let elements = document.getElementsByClassName(className);
  1617. for (i = 0; i < elements.length; i++) {
  1618. if (enabled) {
  1619. elements[i].classList.remove("disabled");
  1620. } else {
  1621. elements[i].classList.add("disabled");
  1622. }
  1623. let inputs = elements[i].getElementsByTagName("input");
  1624. for (j = 0; j < inputs.length; j++) {
  1625. if (inputs[j].id.endsWith("_enabled"))
  1626. continue;
  1627. inputs[j].style = _color
  1628. if (enabled) {
  1629. inputs[j].removeAttribute("disabled");
  1630. } else {
  1631. inputs[j].setAttribute("disabled", "disabled");
  1632. }
  1633. }
  1634. }
  1635. }
  1636. function setVisible(className, visible) {
  1637. let elements = document.getElementsByClassName(className);
  1638. for (i = 0; i < elements.length; i++) {
  1639. if (visible) {
  1640. elements[i].classList.remove("hidden");
  1641. } else {
  1642. elements[i].classList.add("hidden");
  1643. }
  1644. }
  1645. }
  1646. function EnDisableItem(_status, _param, _category, _cat, _name, _optional, _number = -1)
  1647. {
  1648. _status = _category[_cat]["enabled"];
  1649. _color = "color:lightgrey;";
  1650. if (_status) {
  1651. _color = "color:black;";
  1652. }
  1653. if (_optional) {
  1654. document.getElementById(_cat+"_"+_name+"_enabled").disabled = !_status;
  1655. document.getElementById(_cat+"_"+_name+"_enabled").style=_color;
  1656. }
  1657. if (_number == -1){
  1658. if (!_param[_cat][_name]["enabled"]) {
  1659. _status = false;
  1660. _color = "color:lightgrey;";
  1661. }
  1662. }
  1663. else
  1664. if (!NUMBERS[_number][_cat][_name]["enabled"]) {
  1665. _status = false;
  1666. _color = "color:lightgrey;";
  1667. }
  1668. document.getElementById(_cat+"_"+_name+"_text").disabled = !_status;
  1669. document.getElementById(_cat+"_"+_name+"_text").style = _color;
  1670. setEnabled(_cat+"_"+_name, _status);
  1671. for (var j = 1; j <= _param[_cat][_name]["anzParam"]; ++j) {
  1672. document.getElementById(_cat+"_"+_name+"_value"+j).disabled = !_status;
  1673. document.getElementById(_cat+"_"+_name+"_value"+j).style=_color;
  1674. }
  1675. }
  1676. function ReadParameter(_param, _cat, _name, _optional, _number = -1){
  1677. if (_number > -1) {
  1678. if (_cat == "Digits")
  1679. _cat = "digit";
  1680. if (_cat == "Analog")
  1681. _cat = "analog";
  1682. if ((NUMBERS[_number] == undefined) || (NUMBERS[_number][_cat] == undefined) || (NUMBERS[_number][_cat][_name] == undefined))
  1683. return;
  1684. if (_optional) {
  1685. NUMBERS[_number][_cat][_name]["enabled"] = document.getElementById(_cat+"_"+_name+"_enabled").checked;
  1686. }
  1687. for (var j = 1; j <= _param[_cat][_name]["anzParam"]; ++j) {
  1688. let element = document.getElementById(_cat+"_"+_name+"_value"+j);
  1689. if (element.tagName.toLowerCase() == "select") {
  1690. NUMBERS[_number][_cat][_name]["value"+j] = element.selectedIndex > -1 ? element.options[element.selectedIndex].value : "";
  1691. }
  1692. else if ((element.getAttribute("type") != null) && (element.getAttribute("type").toLowerCase() == "checkbox")) {
  1693. NUMBERS[_number][_cat][_name]["value"+j] = element.checked;
  1694. }
  1695. else {
  1696. if ((NUMBERS[_number][_cat][_name].checkRegExList != null) && (NUMBERS[_number][_cat][_name].checkRegExList[j-1] != null)) {
  1697. if (!element.value.match(NUMBERS[_cat][_name].checkRegExList[j-1])) {
  1698. element.classList.add("invalid-input");
  1699. } else {
  1700. element.classList.remove("invalid-input");
  1701. }
  1702. }
  1703. NUMBERS[_number][_cat][_name]["value"+j] = element.value;
  1704. }
  1705. }
  1706. }
  1707. else
  1708. {
  1709. if (_optional) {
  1710. _param[_cat][_name]["enabled"] = document.getElementById(_cat+"_"+_name+"_enabled").checked;
  1711. }
  1712. for (var j = 1; j <= _param[_cat][_name]["anzParam"]; ++j) {
  1713. let element = document.getElementById(_cat+"_"+_name+"_value"+j);
  1714. if (element.tagName.toLowerCase() == "select") {
  1715. _param[_cat][_name]["value"+j] = element.selectedIndex > -1 ? element.options[element.selectedIndex].value : "";
  1716. }
  1717. else if ((element.getAttribute("type") != null) && (element.getAttribute("type").toLowerCase() == "checkbox")) {
  1718. _param[_cat][_name]["value"+j] = element.checked;
  1719. }
  1720. else {
  1721. if ((_param[_cat][_name].checkRegExList != null) && (_param[_cat][_name].checkRegExList[j-1] != null)) {
  1722. if (!element.value.match(_param[_cat][_name].checkRegExList[j-1])) {
  1723. element.classList.add("invalid-input");
  1724. } else {
  1725. element.classList.remove("invalid-input");
  1726. }
  1727. }
  1728. _param[_cat][_name]["value"+j] = element.value;
  1729. }
  1730. }
  1731. }
  1732. }
  1733. function UpdateInputIndividual()
  1734. {
  1735. if (NUNBERSAkt != -1)
  1736. {
  1737. ReadParameter(param, "PostProcessing", "DecimalShift", true, NUNBERSAkt)
  1738. ReadParameter(param, "PostProcessing", "MaxRateValue", true, NUNBERSAkt)
  1739. ReadParameter(param, "PostProcessing", "MaxRateType", true, NUNBERSAkt)
  1740. ReadParameter(param, "PostProcessing", "ExtendedResolution", true, NUNBERSAkt)
  1741. ReadParameter(param, "PostProcessing", "IgnoreLeadingNaN", true, NUNBERSAkt)
  1742. }
  1743. var sel = document.getElementById("Numbers_value1");
  1744. NUNBERSAkt = sel.selectedIndex;
  1745. WriteParameter(param, category, "PostProcessing", "DecimalShift", true, NUNBERSAkt);
  1746. WriteParameter(param, category, "PostProcessing", "MaxRateValue", true, NUNBERSAkt);
  1747. WriteParameter(param, category, "PostProcessing", "MaxRateType", true, NUNBERSAkt);
  1748. WriteParameter(param, category, "PostProcessing", "ExtendedResolution", true, NUNBERSAkt);
  1749. WriteParameter(param, category, "PostProcessing", "IgnoreLeadingNaN", true, NUNBERSAkt);
  1750. }
  1751. function UpdateInput() {
  1752. document.getElementById("Category_Analog_enabled").checked = category["Analog"]["enabled"];
  1753. document.getElementById("Category_Digits_enabled").checked = category["Digits"]["enabled"];
  1754. document.getElementById("Category_MQTT_enabled").checked = category["MQTT"]["enabled"];
  1755. document.getElementById("Category_GPIO_enabled").checked = category["GPIO"]["enabled"];
  1756. setVisible("GPIO_item", category["GPIO"]["enabled"]);
  1757. WriteParameter(param, category, "MakeImage", "LogImageLocation", true);
  1758. WriteParameter(param, category, "MakeImage", "LogfileRetentionInDays", true);
  1759. WriteParameter(param, category, "MakeImage", "WaitBeforeTakingPicture", false);
  1760. WriteParameter(param, category, "MakeImage", "ImageQuality", false);
  1761. WriteParameter(param, category, "MakeImage", "Brightness", false);
  1762. WriteParameter(param, category, "MakeImage", "Contrast", false);
  1763. WriteParameter(param, category, "MakeImage", "Saturation", false);
  1764. WriteParameter(param, category, "MakeImage", "LEDIntensity", false);
  1765. WriteParameter(param, category, "MakeImage", "ImageSize", false);
  1766. WriteParameter(param, category, "MakeImage", "FixedExposure", false);
  1767. WriteParameter(param, category, "Alignment", "SearchFieldX", false);
  1768. WriteParameter(param, category, "Alignment", "SearchFieldY", false);
  1769. WriteParameter(param, category, "Alignment", "AlignmentAlgo", true);
  1770. WriteParameter(param, category, "Digits", "CNNGoodThreshold", true);
  1771. WriteParameter(param, category, "Digits", "LogImageLocation", true);
  1772. WriteParameter(param, category, "Digits", "LogfileRetentionInDays", true);
  1773. WriteParameter(param, category, "Digits", "ModelInputSize", false);
  1774. WriteParameter(param, category, "Analog", "LogImageLocation", true);
  1775. WriteParameter(param, category, "Analog", "LogfileRetentionInDays", true);
  1776. WriteParameter(param, category, "Analog", "ModelInputSize", false);
  1777. WriteParameter(param, category, "PostProcessing", "PreValueUse", true);
  1778. WriteParameter(param, category, "PostProcessing", "PreValueAgeStartup", true);
  1779. WriteParameter(param, category, "PostProcessing", "AllowNegativeRates", true);
  1780. WriteParameter(param, category, "PostProcessing", "ErrorMessage", true);
  1781. WriteParameter(param, category, "PostProcessing", "CheckDigitIncreaseConsistency", true);
  1782. WriteParameter(param, category, "MQTT", "Uri", true);
  1783. WriteParameter(param, category, "MQTT", "MainTopic", true);
  1784. WriteParameter(param, category, "MQTT", "ClientID", true);
  1785. WriteParameter(param, category, "MQTT", "user", true);
  1786. WriteParameter(param, category, "MQTT", "password", true);
  1787. WriteParameter(param, category, "MQTT", "SetRetainFlag", true);
  1788. WriteParameter(param, category, "InfluxDB", "Uri", true);
  1789. WriteParameter(param, category, "InfluxDB", "Database", true);
  1790. WriteParameter(param, category, "InfluxDB", "Measurement", true);
  1791. WriteParameter(param, category, "InfluxDB", "user", true);
  1792. WriteParameter(param, category, "InfluxDB", "password", true);
  1793. WriteParameter(param, category, "GPIO", "IO0", true);
  1794. WriteParameter(param, category, "GPIO", "IO1", true);
  1795. WriteParameter(param, category, "GPIO", "IO3", true);
  1796. WriteParameter(param, category, "GPIO", "IO4", true);
  1797. WriteParameter(param, category, "GPIO", "IO12", true);
  1798. WriteParameter(param, category, "GPIO", "IO13", true);
  1799. WriteParameter(param, category, "GPIO", "LEDType", false);
  1800. WriteParameter(param, category, "GPIO", "LEDNumbers", false);
  1801. WriteParameter(param, category, "GPIO", "LEDColor", false);
  1802. WriteParameter(param, category, "AutoTimer", "AutoStart", false);
  1803. WriteParameter(param, category, "AutoTimer", "Intervall", false);
  1804. WriteParameter(param, category, "Debug", "Logfile", true);
  1805. WriteParameter(param, category, "Debug", "LogfileRetentionInDays", true);
  1806. WriteParameter(param, category, "System", "TimeZone", true);
  1807. WriteParameter(param, category, "System", "Hostname", true);
  1808. WriteParameter(param, category, "System", "TimeServer", true);
  1809. WriteModelFiles();
  1810. }
  1811. function WriteModelFiles()
  1812. {
  1813. list_tflite = getTFLITEList();
  1814. var _index1 = document.getElementById("Digits_Model_value1");
  1815. var _index2 = document.getElementById("Analog_Model_value1");
  1816. while (_index1.length)
  1817. _index1.remove(0);
  1818. while (_index2.length)
  1819. _index2.remove(0);
  1820. for (var i = 0; i < list_tflite.length; ++i){
  1821. var option1 = document.createElement("option");
  1822. var option2 = document.createElement("option");
  1823. option1.text = list_tflite[i];
  1824. option1.value = list_tflite[i];
  1825. option2.text = list_tflite[i];
  1826. option2.value = list_tflite[i];
  1827. _index1.add(option1);
  1828. _index2.add(option2);
  1829. }
  1830. WriteParameter(param, category, "Analog", "Model", false);
  1831. WriteParameter(param, category, "Digits", "Model", false);
  1832. }
  1833. function ReadParameterAll()
  1834. {
  1835. category["Analog"]["enabled"] = document.getElementById("Category_Analog_enabled").checked;
  1836. category["Digits"]["enabled"] = document.getElementById("Category_Digits_enabled").checked;
  1837. category["MQTT"]["enabled"] = document.getElementById("Category_MQTT_enabled").checked;
  1838. category["InfluxDB"]["enabled"] = document.getElementById("Category_InfluxDB_enabled").checked;
  1839. category["GPIO"]["enabled"] = document.getElementById("Category_GPIO_enabled").checked;
  1840. ReadParameter(param, "MakeImage", "LogImageLocation", true);
  1841. ReadParameter(param, "MakeImage", "LogfileRetentionInDays", true);
  1842. ReadParameter(param, "MakeImage", "WaitBeforeTakingPicture", false);
  1843. ReadParameter(param, "MakeImage", "ImageQuality", false);
  1844. ReadParameter(param, "MakeImage", "Brightness", false);
  1845. ReadParameter(param, "MakeImage", "Contrast", false);
  1846. ReadParameter(param, "MakeImage", "Saturation", false);
  1847. ReadParameter(param, "MakeImage", "LEDIntensity", false);
  1848. ReadParameter(param, "MakeImage", "ImageSize", false);
  1849. ReadParameter(param, "MakeImage", "FixedExposure", false);
  1850. ReadParameter(param, "Alignment", "SearchFieldX", false);
  1851. ReadParameter(param, "Alignment", "SearchFieldY", false);
  1852. ReadParameter(param, "Alignment", "AlignmentAlgo", true);
  1853. ReadParameter(param, "Digits", "Model", false);
  1854. ReadParameter(param, "Digits", "CNNGoodThreshold", true);
  1855. ReadParameter(param, "Digits", "LogImageLocation", true);
  1856. ReadParameter(param, "Digits", "LogfileRetentionInDays", true);
  1857. ReadParameter(param, "Digits", "ModelInputSize", false);
  1858. ReadParameter(param, "Analog", "Model", false);
  1859. ReadParameter(param, "Analog", "LogImageLocation", true);
  1860. ReadParameter(param, "Analog", "LogfileRetentionInDays", true);
  1861. ReadParameter(param, "Analog", "ModelInputSize", false);
  1862. ReadParameter(param, "PostProcessing", "PreValueUse", true);
  1863. ReadParameter(param, "PostProcessing", "PreValueAgeStartup", true);
  1864. ReadParameter(param, "PostProcessing", "AllowNegativeRates", true);
  1865. ReadParameter(param, "PostProcessing", "ErrorMessage", true);
  1866. ReadParameter(param, "PostProcessing", "CheckDigitIncreaseConsistency", true);
  1867. ReadParameter(param, "MQTT", "Uri", true);
  1868. ReadParameter(param, "MQTT", "MainTopic", true);
  1869. ReadParameter(param, "MQTT", "ClientID", true);
  1870. ReadParameter(param, "MQTT", "user", true);
  1871. ReadParameter(param, "MQTT", "password", true);
  1872. ReadParameter(param, "MQTT", "SetRetainFlag", true);
  1873. ReadParameter(param, "InfluxDB", "Uri", true);
  1874. ReadParameter(param, "InfluxDB", "Measurement", true);
  1875. ReadParameter(param, "InfluxDB", "user", true);
  1876. ReadParameter(param, "InfluxDB", "password", true);
  1877. ReadParameter(param, "GPIO", "IO0", true);
  1878. ReadParameter(param, "GPIO", "IO1", true);
  1879. ReadParameter(param, "GPIO", "IO3", true);
  1880. ReadParameter(param, "GPIO", "IO4", true);
  1881. ReadParameter(param, "GPIO", "IO12", true);
  1882. ReadParameter(param, "GPIO", "IO13", true);
  1883. ReadParameter(param, "GPIO", "LEDType", false);
  1884. ReadParameter(param, "GPIO", "LEDNumbers", false);
  1885. ReadParameter(param, "GPIO", "LEDColor", false);
  1886. // Folgende Zeilen sind für Abwärtskompatibität < v9.0.0 notwendig (manchmal parameter auskommentiert)
  1887. param["GPIO"]["LEDType"]["enabled"] = true;
  1888. param["GPIO"]["LEDNumbers"]["enabled"] = true;
  1889. param["GPIO"]["LEDColor"]["enabled"] = true;
  1890. param["GPIO"]["LEDType"]["found"] = true;
  1891. param["GPIO"]["LEDNumbers"]["found"] = true;
  1892. param["GPIO"]["LEDColor"]["found"] = true;
  1893. ReadParameter(param, "AutoTimer", "AutoStart", false);
  1894. ReadParameter(param, "AutoTimer", "Intervall", false);
  1895. ReadParameter(param, "Debug", "Logfile", true);
  1896. ReadParameter(param, "Debug", "LogfileRetentionInDays", true);
  1897. ReadParameter(param, "System", "TimeZone", true);
  1898. ReadParameter(param, "System", "Hostname", true);
  1899. ReadParameter(param, "System", "TimeServer", true);
  1900. UpdateInputIndividual();
  1901. // FormatDecimalValue(param, "PostProcessing", "MaxRateValue");
  1902. }
  1903. function FormatDecimalValue(_param, _cat, _name) {
  1904. for (var j = 1; j <= _param[_cat][_name]["anzParam"]; ++j) {
  1905. var _val = _param[_cat][_name]["value"+j];
  1906. _val = _val.replace(",", ".");
  1907. _param[_cat][_name]["value"+j] = _val;
  1908. }
  1909. }
  1910. function UpdateAfterCategoryCheck() {
  1911. ReadParameterAll();
  1912. category["Analog"]["enabled"] = document.getElementById("Category_Analog_enabled").checked;
  1913. category["Digits"]["enabled"] = document.getElementById("Category_Digits_enabled").checked;
  1914. category["MQTT"]["enabled"] = document.getElementById("Category_MQTT_enabled").checked;
  1915. UpdateInput();
  1916. UpdateInputIndividual();
  1917. }
  1918. function UpdateExpertModus()
  1919. {
  1920. // var _style = 'display:none;';
  1921. var _style_pur = 'none';
  1922. var _hidden = true;
  1923. if (document.getElementById("ExpertModus_enabled").checked) {
  1924. // _style = '';
  1925. _style_pur = '';
  1926. _hidden = false;
  1927. document.getElementById("Edit_Config_Direct").style.display = "";
  1928. }
  1929. else
  1930. {
  1931. document.getElementById("Edit_Config_Direct").style.display = "none";
  1932. }
  1933. const expert = document.querySelectorAll(".expert");
  1934. for (var i = 0; i < expert.length; i++) {
  1935. expert[i].style.display = _style_pur;
  1936. // document.getElementById(expert[i].id).style = _style;
  1937. }
  1938. // Enable / Disable die Optionen in den Menues für die Auswahl. Falls kein Expertenmodus soll nur ein Wert (built-in-led oder externan-flash-ws281x) möglich sein
  1939. Array.from(document.querySelector("#GPIO_IO4_value1").options).forEach(function(option_element) {
  1940. if (option_element.value != "built-in-led")
  1941. option_element.hidden = _hidden;
  1942. });
  1943. Array.from(document.querySelector("#GPIO_IO12_value1").options).forEach(function(option_element) {
  1944. if (option_element.value != "external-flash-ws281x")
  1945. option_element.hidden = _hidden;
  1946. });
  1947. }
  1948. function saveTextAsFile()
  1949. {
  1950. ReadParameterAll();
  1951. if (document.getElementsByClassName("invalid-input").length > 0) {
  1952. alert("Settings cannot be saved. Please check your entries.");
  1953. return;
  1954. }
  1955. if (confirm("Are you sure you want to update \"config.ini\"?")) {
  1956. ReadParameterAll();
  1957. WriteConfigININew();
  1958. SaveConfigToServer(basepath);
  1959. alert("Config.ini is updated!")
  1960. }
  1961. }
  1962. function doReboot() {
  1963. if (confirm("Are you sure you want to reboot the ESP32?")) {
  1964. var stringota = "/reboot";
  1965. window.location = stringota;
  1966. window.location.href = stringota;
  1967. window.location.assign(stringota);
  1968. window.location.replace(stringota);
  1969. }
  1970. }
  1971. function editConfigDirect() {
  1972. if (confirm("Did you save your changes?")) {
  1973. var stringota = "/edit_config.html";
  1974. window.location = stringota;
  1975. window.location.href = stringota;
  1976. window.location.assign(stringota);
  1977. window.location.replace(stringota);
  1978. }
  1979. }
  1980. function numberChanged()
  1981. {
  1982. UpdateInputIndividual();
  1983. }
  1984. LoadConfigNeu();
  1985. </script>
  1986. </body>
  1987. </html>