edit_config_template.html 146 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418
  1. <!DOCTYPE html>
  2. <html lang="en" xml:lang="en">
  3. <head>
  4. <meta charset="UTF-8"/>
  5. <title>Configuration</title>
  6. <style>
  7. h1 {font-size: 2em;}
  8. h2 {font-size: 1.5em; margin-block-start: 0.0em; margin-block-end: 0.2em;}
  9. h3 {font-size: 1.2em;}
  10. h4 {font-size: 1.05em; margin-bottom: 0;}
  11. h5 {font-size: 0.83em; margin-top: 0.2em; margin-bottom: 0;}
  12. p {font-size: 1em;}
  13. .table {
  14. border: 0pt;
  15. border-collapse: collapse;
  16. table-layout: fixed;
  17. width:100%;
  18. }
  19. td {
  20. padding: 10px;
  21. vertical-align: middle;
  22. }
  23. .button {
  24. padding: 5px 10px;
  25. width: 220px;
  26. font-size: 16px;
  27. }
  28. input[type=number] {
  29. width: 60px;
  30. min-width: 60px;
  31. max-width: 60px;
  32. margin-right: 10px;
  33. padding: 3px 5px;
  34. display: inline-block;
  35. border: 1px solid #ccc;
  36. font-size: 16px;
  37. vertical-align: middle;
  38. }
  39. input[type=text] {
  40. width: 96%;
  41. min-width:240px;
  42. max-width:96%;
  43. margin-right: 10px;
  44. padding: 3px 5px;
  45. display: inline-block;
  46. border: 1px solid #ccc;
  47. font-size: 16px;
  48. vertical-align: middle;
  49. }
  50. select {
  51. min-width: 72px;
  52. max-width: 100%;
  53. padding: 3px 5px;
  54. display: inline-block;
  55. border: 1px solid #ccc;
  56. font-size: 16px;
  57. margin-right: 10px;
  58. vertical-align: middle;
  59. }
  60. .select_large {
  61. width: 100%;
  62. min-width: 250px;
  63. max-width: 100%;
  64. padding: 3px 5px;
  65. display: inline-block;
  66. border: 1px solid #ccc;
  67. font-size: 16px;
  68. margin-right: 10px;
  69. vertical-align: middle;
  70. }
  71. textarea {
  72. font-size: 14px;
  73. }
  74. .description {
  75. color: black;
  76. font-size: 80%;
  77. }
  78. .disabled {
  79. color:rgb(122, 122, 122);
  80. }
  81. #GPIO_LEDColor_value1 #GPIO_LEDColor_value2 #GPIO_LEDColor_value3 {
  82. width: 30px;
  83. font-size: 16px;
  84. }
  85. .invalid-input {
  86. background-color: #FFAA00;
  87. }
  88. input:out-of-range {
  89. background-color: rgba(255, 0, 0, 0.25);
  90. border: 1px solid red;
  91. }
  92. input:invalid {
  93. background-color: rgba(255, 0, 0, 0.25);
  94. border: 1px solid red;
  95. }
  96. .hidden {
  97. display: none;
  98. }
  99. .expert {
  100. background-color: #ffefef;
  101. font-size: 16px;
  102. }
  103. .indent1 {
  104. padding-left: 25px;
  105. font-size: 16px;
  106. }
  107. .indent2 {
  108. padding-left: 50px;
  109. font-size: 16px;
  110. }
  111. .tooltip {
  112. position: relative;
  113. display: inline-block;
  114. }
  115. .tooltip .tooltiptext {
  116. visibility: hidden;
  117. width: 600px;
  118. background-color: #fcfcfc;
  119. padding: 5px;
  120. padding-bottom: 0;
  121. border: solid black 2px;
  122. /* Position the tooltip */
  123. position: absolute;
  124. z-index: 1;
  125. top: 100%;
  126. left: 100%;
  127. margin-left: -600px;
  128. }
  129. .tooltip:hover .tooltiptext {
  130. visibility: visible;
  131. }
  132. .tooltip-content {
  133. width: calc(100% - 2px);
  134. height: calc(100% - 2px);
  135. padding: 1px;
  136. }
  137. #overlay {
  138. position: fixed;
  139. display: none;
  140. width: 100%;
  141. height: 100%;
  142. top: 0;
  143. left: 0;
  144. right: 0;
  145. bottom: 0;
  146. background-color: rgba(0,0,0,0.8);
  147. z-index: 2;
  148. }
  149. #overlaytext{
  150. position: absolute;
  151. top: 50%;
  152. left: 50%;
  153. font-size: 150%;
  154. color: white;
  155. transform: translate(-50%,-50%);
  156. -ms-transform: translate(-50%,-50%);
  157. }
  158. #reboot_button {
  159. float: none;
  160. background-color: #f44336;
  161. color: white;
  162. padding: 5px;
  163. border-radius:
  164. 5px; font-weight: bold;
  165. text-align: center;
  166. text-decoration: none;
  167. display: inline-block;
  168. }
  169. </style>
  170. <link rel="stylesheet" href="mkdocs_theme.css?v=$COMMIT_HASH" />
  171. <link rel="stylesheet" href="mkdocs_theme_extra.css?v=$COMMIT_HASH" />
  172. <link rel="stylesheet" href="github.min.css?v=$COMMIT_HASH" />
  173. <link href="firework.css?v=$COMMIT_HASH" rel="stylesheet">
  174. <script type="text/javascript" src="common.js?v=$COMMIT_HASH"></script>
  175. <script type="text/javascript" src="jquery-3.6.0.min.js?v=$COMMIT_HASH"></script>
  176. <script type="text/javascript" src="firework.js?v=$COMMIT_HASH"></script>
  177. <script type="text/javascript" src="readconfigparam.js?v=$COMMIT_HASH"></script>
  178. <script type="text/javascript" src="readconfigcommon.js?v=$COMMIT_HASH"></script>
  179. </head>
  180. <body style="font-family: arial; padding: 0px 10px;">
  181. <div id="overlay">
  182. <div id="overlaytext"></div>
  183. </div>
  184. <h2>Configuration</h2>
  185. <details id="desc_details">
  186. <summary><b>CLICK HERE</b> for usage description. More infos in documentation:
  187. <a href="https://jomjol.github.io/AI-on-the-edge-device-docs/Parameters" target="_blank">Parameter</a>
  188. </summary>
  189. <p>
  190. This page lists all available configuration parameters of the device.<br>
  191. The description of each parameter can be shown by hovering over or by clicking the <img src="help.png" width="16px"> icon.
  192. </p>
  193. <p>
  194. The page gets opened with the default view which should be sufficient for regular configuration tasks. Enabling the <b>"Show Expert Parameters"</b>
  195. some expert parameters (light red background color) will be added to the parameter list. Additionally the button <b>"Edit "Config.ini" File"</b>
  196. to edit the underlaying configuration file (config.ini) manually is now shown on top of the page. This function should be only used for special cases.
  197. </p>
  198. <p>
  199. Sections (entire functionality) or single parameters having a checkbox can be enabled or disabled.
  200. Disabling a complete section results in a disabled functionality. Whenever only a single parameter of a section is disabled
  201. the hard-coded default value is used for the disabled parameter.
  202. </p>
  203. <p>
  204. Don't forget to save the changes with the button <b>"Save Config"</b> at the bottom of this page.<br>
  205. <label id="reboot_text" name="reboot_text">
  206. To apply the new configuration a restart of the device is neccessary: <b>"Reboot to apply changes"</b>
  207. </label>
  208. </p>
  209. </details>
  210. <hr />
  211. <div id="divall" style="display:none">
  212. <table class="table">
  213. <colgroup>
  214. <col span="1" style="width:45%;">
  215. <col span="1" style="width:45%;">
  216. <col span="1" style="width:10%;">
  217. </colgroup>
  218. <tr style="border-bottom: 2px solid lightgray;">
  219. <td colspan="3" style="padding-left: 0px; padding-bottom: 3px;"><h4>Configuration View</h4></td>
  220. </tr>
  221. <tr>
  222. <td class="indent1">
  223. <input style="margin-top:12px;margin-bottom:12px" type="checkbox" id="ExpertModus_enabled" value="1" onclick='UpdateExpertModus()' unchecked>
  224. <label for="ExpertModus_enabled">Show Expert Parameters</label>
  225. </td>
  226. <td>
  227. <button style="display:none;" class="button" id="Button_Edit_Config_Raw" onclick="editConfigRaw()">Edit Config file in raw mode</button>
  228. </td>
  229. </tr>
  230. <!------------- Take Image ------------------>
  231. <tr style="border-bottom: 2px solid lightgray;">
  232. <td colspan="3" style="padding-left: 0px; padding-bottom: 3px;"><h4>Take Image</h4></td>
  233. </tr>
  234. <tr>
  235. <td class="indent1">
  236. <input type="checkbox" id="TakeImage_RawImagesLocation_enabled" value="1" onclick='InvertEnableItem("TakeImage", "RawImagesLocation")' unchecked >
  237. <label for=TakeImage_RawImagesLocation_enabled><class id="TakeImage_RawImagesLocation_text" style="color:black;">Raw Images Location</class></label>
  238. </td>
  239. <td>
  240. <input required type="text" id="TakeImage_RawImagesLocation_value1">
  241. </td>
  242. <td>$TOOLTIP_TakeImage_RawImagesLocation</td>
  243. </tr>
  244. <tr>
  245. <td class="indent1">
  246. <input type="checkbox" id="TakeImage_RawImagesRetention_enabled" value="1" onclick='InvertEnableItem("TakeImage", "RawImagesRetention")' unchecked >
  247. <label for=TakeImage_RawImagesRetention_enabled><class id="TakeImage_RawImagesRetention_text" style="color:black;">Raw Images Retention</class></label>
  248. </td>
  249. <td>
  250. <input required type="number" id="TakeImage_RawImagesRetention_value1" size="13" min="0" step="1"
  251. oninput="(!validity.rangeUnderflow||(value=0)) && (!validity.stepMismatch||(value=parseInt(this.value)));">Days
  252. </td>
  253. <td>$TOOLTIP_TakeImage_RawImagesRetention</td>
  254. </tr>
  255. <tr class="expert">
  256. <td class="indent1">
  257. <class id="TakeImage_SaveAllFiles_text" style="color:black;">Save all files</class>
  258. </td>
  259. <td>
  260. <select id="TakeImage_SaveAllFiles_value1" onchange="cameraParameterChanged()">
  261. <option value="true">enabled (true)</option>
  262. <option value="false" selected>disabled (false)</option>
  263. </select>
  264. </td>
  265. <td>$TOOLTIP_TakeImage_SaveAllFiles</td>
  266. </tr>
  267. <tr class="expert">
  268. <td class="indent1">
  269. <class id="TakeImage_WaitBeforeTakingPicture_text" style="color:black;">Wait Before Taking Picture</class>
  270. </td>
  271. <td>
  272. <input required type="number" id="TakeImage_WaitBeforeTakingPicture_value1" size="13" min="0" step="any" onchange="cameraParameterChanged()"
  273. oninput="(!validity.rangeUnderflow||(value=0));">Seconds
  274. </td>
  275. <td>$TOOLTIP_TakeImage_WaitBeforeTakingPicture</td>
  276. </tr>
  277. <tr class="expert">
  278. <td class="indent1">
  279. <class id="TakeImage_CamXclkFreqMhz_text" style="color:black;">XclkFreqMhz</class>
  280. </td>
  281. <td>
  282. <input required type="number" id="TakeImage_CamXclkFreqMhz_value1" size="13" min="1" max="20"
  283. onchange="cameraParameterChanged()" oninput="(!validity.rangeUnderflow||(value=1)) && (!validity.rangeOverflow||(value=20)) && (!validity.stepMismatch||(value=parseInt(this.value)));">
  284. </td>
  285. <td>$TOOLTIP_TakeImage_CamXclkFreqMhz</td>
  286. </tr>
  287. <tr class="expert">
  288. <td class="indent1">
  289. <class id="TakeImage_CamGainceiling_text" style="color:black;">CamGainceiling</class>
  290. </td>
  291. <td>
  292. <select id="TakeImage_CamGainceiling_value1" onchange="cameraParameterChanged()">
  293. <option value="x2" selected>x2</option>
  294. <option value="x4" >x4</option>
  295. <option value="x8" >x8</option>
  296. <option value="x16" >x16</option>
  297. <option value="x32" >x32</option>
  298. <option value="x64" >x64</option>
  299. <option value="x128" >x128</option>
  300. </select>
  301. </td>
  302. <td>$TOOLTIP_TakeImage_CamGainceiling</td>
  303. </tr>
  304. <tr class="expert">
  305. <td class="indent1">
  306. <class id="TakeImage_CamQuality_text" style="color:black;">Image Quality</class>
  307. </td>
  308. <td>
  309. <input required type="number" id="TakeImage_CamQuality_value1" size="13" min="5" max="63" onchange="cameraParameterChanged()"
  310. oninput="(!validity.rangeUnderflow||(value=5)) && (!validity.rangeOverflow||(value=63)) &&
  311. (!validity.stepMismatch||(value=parseInt(this.value)));">
  312. </td>
  313. <td>$TOOLTIP_TakeImage_CamQuality</td>
  314. </tr>
  315. <tr>
  316. <td class="indent1">
  317. <class id="TakeImage_CamBrightness_text" style="color:black;">Brightness</class>
  318. </td>
  319. <td>
  320. <input required type="number" id="TakeImage_CamBrightness_value1" size="13" min="-2" max="2" onchange="cameraParameterChanged()"
  321. oninput="(!validity.rangeUnderflow||(value=-2)) && (!validity.rangeOverflow||(value=2)) && (!validity.stepMismatch||(value=parseInt(this.value)));">
  322. </td>
  323. <td>$TOOLTIP_TakeImage_CamBrightness</td>
  324. </tr>
  325. <tr>
  326. <td class="indent1">
  327. <class id="TakeImage_CamContrast_text" style="color:black;">Contrast</class>
  328. </td>
  329. <td>
  330. <input required type="number" id="TakeImage_CamContrast_value1" size="13" min="-2" max="2" onchange="cameraParameterChanged()"
  331. oninput="(!validity.rangeUnderflow||(value=-2)) && (!validity.rangeOverflow||(value=2)) && (!validity.stepMismatch||(value=parseInt(this.value)));">
  332. </td>
  333. <td>$TOOLTIP_TakeImage_CamContrast</td>
  334. </tr>
  335. <tr>
  336. <td class="indent1">
  337. <class id="TakeImage_CamSaturation_text" style="color:black;">Saturation</class>
  338. </td>
  339. <td>
  340. <input required type="number" id="TakeImage_CamSaturation_value1" size="13" min="-2" max="2" onchange="cameraParameterChanged()"
  341. oninput="(!validity.rangeUnderflow||(value=-2)) && (!validity.rangeOverflow||(value=2)) && (!validity.stepMismatch||(value=parseInt(this.value)));">
  342. </td>
  343. <td>$TOOLTIP_TakeImage_CamSaturation</td>
  344. </tr>
  345. <tr class="expert">
  346. <td class="indent1">
  347. <class id="TakeImage_CamAutoSharpness_text" style="color:black;">AutoSharpness</class>
  348. </td>
  349. <td>
  350. <select id="TakeImage_CamAutoSharpness_value1" onchange="cameraParameterChanged()">
  351. <option value="true">enabled (true)</option>
  352. <option value="false" selected>disabled (false)</option>
  353. </select>
  354. </td>
  355. <td>$TOOLTIP_TakeImage_CamAutoSharpness</td>
  356. </tr>
  357. <tr class="expert">
  358. <td class="indent1">
  359. <class id="TakeImage_CamSharpness_text" style="color:black;">Sharpness</class>
  360. </td>
  361. <td>
  362. <input required type="number" id="TakeImage_CamSharpness_value1" size="13" min="-3" max="3" onchange="cameraParameterChanged()"
  363. oninput="(!validity.rangeUnderflow||(value=-3)) && (!validity.rangeOverflow||(value=3)) && (!validity.stepMismatch||(value=parseInt(this.value)));">
  364. </td>
  365. <td>$TOOLTIP_TakeImage_CamSharpness</td>
  366. </tr>
  367. <tr class="expert">
  368. <td class="indent1">
  369. <class id="TakeImage_CamSpecialEffect_text" style="color:black;">SpecialEffect</class>
  370. </td>
  371. <td>
  372. <select id="TakeImage_CamSpecialEffect_value1" onchange="cameraParameterChanged()">
  373. <option value="no_effect" selected>no effect</option>
  374. <option value="negative" >negative</option>
  375. <option value="grayscale" >grayscale</option>
  376. <option value="red" >red</option>
  377. <option value="green" >green</option>
  378. <option value="blue" >blue</option>
  379. <option value="retro" >retro</option>
  380. </select>
  381. </td>
  382. <td>$TOOLTIP_TakeImage_CamSpecialEffect</td>
  383. </tr>
  384. <tr class="expert">
  385. <td class="indent1">
  386. <class id="TakeImage_CamWbMode_text" style="color:black;">White Balance Mode</class>
  387. </td>
  388. <td>
  389. <select id="TakeImage_CamWbMode_value1" onchange="cameraParameterChanged()">
  390. <option value="auto" selected>auto</option>
  391. <option value="sunny" >sunny</option>
  392. <option value="cloudy" >cloudy</option>
  393. <option value="office" >office</option>
  394. <option value="home" >home</option>
  395. </select>
  396. </td>
  397. <td>$TOOLTIP_TakeImage_CamWbMode</td>
  398. </tr>
  399. <tr class="expert">
  400. <td class="indent1">
  401. <class id="TakeImage_CamAwb_text" style="color:black;">White Balance</class>
  402. </td>
  403. <td>
  404. <select id="TakeImage_CamAwb_value1" onchange="cameraParameterChanged()">
  405. <option value="true">enabled (true)</option>
  406. <option value="false" selected>disabled (false)</option>
  407. </select>
  408. </td>
  409. <td>$TOOLTIP_TakeImage_CamAwb</td>
  410. </tr>
  411. <tr class="expert">
  412. <td class="indent1">
  413. <class id="TakeImage_CamAwbGain_text" style="color:black;">Auto White Balance</class>
  414. </td>
  415. <td>
  416. <select id="TakeImage_CamAwbGain_value1" onchange="cameraParameterChanged()">
  417. <option value="true">enabled (true)</option>
  418. <option value="false" selected>disabled (false)</option>
  419. </select>
  420. </td>
  421. <td>$TOOLTIP_TakeImage_CamAwbGain</td>
  422. </tr>
  423. <tr class="expert">
  424. <td class="indent1">
  425. <class id="TakeImage_CamAec_text" style="color:black;">Auto-Exposure Control</class>
  426. </td>
  427. <td>
  428. <select id="TakeImage_CamAec_value1" onchange="cameraParameterChanged()">
  429. <option value="true">enabled (true)</option>
  430. <option value="false" selected>disabled (false)</option>
  431. </select>
  432. </td>
  433. <td>$TOOLTIP_TakeImage_CamAec</td>
  434. </tr>
  435. <tr class="expert">
  436. <td class="indent1">
  437. <class id="TakeImage_CamAec2_text" style="color:black;">Auto-Exposure Control 2</class>
  438. </td>
  439. <td>
  440. <select id="TakeImage_CamAec2_value1" onchange="cameraParameterChanged()">
  441. <option value="true">enabled (true)</option>
  442. <option value="false" selected>disabled (false)</option>
  443. </select>
  444. </td>
  445. <td>$TOOLTIP_TakeImage_CamAec2</td>
  446. </tr>
  447. <tr class="expert">
  448. <td class="indent1">
  449. <class id="TakeImage_CamAeLevel_text" style="color:black;">Auto Exposure Level</class>
  450. </td>
  451. <td>
  452. <input required type="number" id="TakeImage_CamAeLevel_value1" size="13" min="-5" max="5" onchange="cameraParameterChanged()"
  453. oninput="(!validity.rangeUnderflow||(value=-5)) && (!validity.rangeOverflow||(value=5)) && (!validity.stepMismatch||(value=parseInt(this.value)));">
  454. </td>
  455. <td>$TOOLTIP_TakeImage_CamAeLevel</td>
  456. </tr>
  457. <tr class="expert">
  458. <td class="indent1">
  459. <class id="TakeImage_CamAecValue_text" style="color:black;">Auto Exposure Value</class>
  460. </td>
  461. <td>
  462. <input required type="number" id="TakeImage_CamAecValue_value1" size="13" min="0" max="1200" onchange="cameraParameterChanged()"
  463. oninput="(!validity.rangeUnderflow||(value=0)) && (!validity.rangeOverflow||(value=1200)) && (!validity.stepMismatch||(value=parseInt(this.value)));">
  464. </td>
  465. <td>$TOOLTIP_TakeImage_CamAecValue</td>
  466. </tr>
  467. <tr class="expert">
  468. <td class="indent1">
  469. <class id="TakeImage_CamAgc_text" style="color:black;">Auto Gain</class>
  470. </td>
  471. <td>
  472. <select id="TakeImage_CamAgc_value1" onchange="cameraParameterChanged()">
  473. <option value="true">enabled (true)</option>
  474. <option value="false" selected>disabled (false)</option>
  475. </select>
  476. </td>
  477. <td>$TOOLTIP_TakeImage_CamAgc</td>
  478. </tr>
  479. <tr class="expert">
  480. <td class="indent1">
  481. <class id="TakeImage_CamAgcGain_text" style="color:black;">Gain Manual Value</class>
  482. </td>
  483. <td>
  484. <input required type="number" id="TakeImage_CamAgcGain_value1" size="13" min="0" max="30" onchange="cameraParameterChanged()"
  485. oninput="(!validity.rangeUnderflow||(value=0)) && (!validity.rangeOverflow||(value=30)) &&
  486. (!validity.stepMismatch||(value=parseInt(this.value)));">
  487. </td>
  488. <td>$TOOLTIP_TakeImage_CamAgcGain</td>
  489. </tr>
  490. <tr class="expert">
  491. <td class="indent1">
  492. <class id="TakeImage_CamBpc_text" style="color:black;">Black Pixel Correction</class>
  493. </td>
  494. <td>
  495. <select id="TakeImage_CamBpc_value1" onchange="cameraParameterChanged()">
  496. <option value="true">enabled (true)</option>
  497. <option value="false" selected>disabled (false)</option>
  498. </select>
  499. </td>
  500. <td>$TOOLTIP_TakeImage_CamBpc</td>
  501. </tr>
  502. <tr class="expert">
  503. <td class="indent1">
  504. <class id="TakeImage_CamWpc_text" style="color:black;">White Pixel Correction</class>
  505. </td>
  506. <td>
  507. <select id="TakeImage_CamWpc_value1" onchange="cameraParameterChanged()">
  508. <option value="true">enabled (true)</option>
  509. <option value="false" selected>disabled (false)</option>
  510. </select>
  511. </td>
  512. <td>$TOOLTIP_TakeImage_CamWpc</td>
  513. </tr>
  514. <tr class="expert">
  515. <td class="indent1">
  516. <class id="TakeImage_CamRawGma_text" style="color:black;">CamRawGma</class>
  517. </td>
  518. <td>
  519. <select id="TakeImage_CamRawGma_value1" onchange="cameraParameterChanged()">
  520. <option value="true">enabled (true)</option>
  521. <option value="false" selected>disabled (false)</option>
  522. </select>
  523. </td>
  524. <td>$TOOLTIP_TakeImage_CamRawGma</td>
  525. </tr>
  526. <tr class="expert">
  527. <td class="indent1">
  528. <class id="TakeImage_CamLenc_text" style="color:black;">Lens Correction</class>
  529. </td>
  530. <td>
  531. <select id="TakeImage_CamLenc_value1" onchange="cameraParameterChanged()">
  532. <option value="true">enabled (true)</option>
  533. <option value="false" selected>disabled (false)</option>
  534. </select>
  535. </td>
  536. <td>$TOOLTIP_TakeImage_CamLenc</td>
  537. </tr>
  538. <tr>
  539. <td class="indent1">
  540. <class id="TakeImage_CamHmirror_text" style="color:black;">Mirror Image</class>
  541. </td>
  542. <td>
  543. <select id="TakeImage_CamHmirror_value1" onchange="cameraParameterChanged()">
  544. <option value="true">enabled (true)</option>
  545. <option value="false" selected>disabled (false)</option>
  546. </select>
  547. </td>
  548. <td>$TOOLTIP_TakeImage_CamHmirror</td>
  549. </tr>
  550. <tr>
  551. <td class="indent1">
  552. <class id="TakeImage_CamVflip_text" style="color:black;">Flip Image</class>
  553. </td>
  554. <td>
  555. <select id="TakeImage_CamVflip_value1" onchange="cameraParameterChanged()">
  556. <option value="true">enabled (true)</option>
  557. <option value="false" selected>disabled (false)</option>
  558. </select>
  559. </td>
  560. <td>$TOOLTIP_TakeImage_CamVflip</td>
  561. </tr>
  562. <tr class="expert">
  563. <td class="indent1">
  564. <class id="TakeImage_CamDcw_text" style="color:black;">Downsize</class>
  565. </td>
  566. <td>
  567. <select id="TakeImage_CamDcw_value1" onchange="cameraParameterChanged()">
  568. <option value="true">enabled (true)</option>
  569. <option value="false" selected>disabled (false)</option>
  570. </select>
  571. </td>
  572. <td>$TOOLTIP_TakeImage_CamDcw</td>
  573. </tr>
  574. <tr class="expert">
  575. <td class="indent1">
  576. <class id="TakeImage_CamDenoise_text" style="color:black;">Denoise</class>
  577. </td>
  578. <td>
  579. <input required type="number" id="TakeImage_CamDenoise_value1" value="0" min="0" max="8" step="1" onchange="cameraParameterChanged()"
  580. oninput="(!validity.rangeOverflow||(value=8)) && (!validity.rangeUnderflow||(value=0)) && (!validity.stepMismatch||(value=parseInt(this.value)));">
  581. </td>
  582. <td>$TOOLTIP_TakeImage_CamDenoise</td>
  583. </tr>
  584. <tr class="expert">
  585. <td class="indent1">
  586. <class id="TakeImage_CamZoom_text" style="color:black;">Zoom</class>
  587. </td>
  588. <td>
  589. <select id="TakeImage_CamZoom_value1" onchange="cameraParameterChanged()">
  590. <option value="true">enabled (true)</option>
  591. <option value="false" selected>disabled (false)</option>
  592. </select>
  593. </td>
  594. <td>$TOOLTIP_TakeImage_CamZoom</td>
  595. </tr>
  596. <tr class="expert">
  597. <td class="indent1">
  598. <class id="TakeImage_CamZoomSize_text" style="color:black;">Zoom Size</class>
  599. </td>
  600. <td>
  601. <input required type="number" id="TakeImage_CamZoomSize_value1" value="0" min="0" max="59" step="1" onchange="cameraParameterChanged()"
  602. oninput="(!validity.rangeOverflow||(value=59)) && (!validity.rangeUnderflow||(value=0)) && (!validity.stepMismatch||(value=parseInt(this.value)));">
  603. </td>
  604. <td>$TOOLTIP_TakeImage_CamZoomSize</td>
  605. </tr>
  606. <tr class="expert">
  607. <td class="indent1">
  608. <class id="TakeImage_CamZoomOffsetX_text" style="color:black;">Zoom Offset X</class>
  609. </td>
  610. <td>
  611. <input required type="number" id="TakeImage_CamZoomOffsetX_value1" value="0" min="-960" max="960" step="8" onchange="cameraParameterChanged()"
  612. oninput="(!validity.rangeOverflow||(value=960)) && (!validity.rangeUnderflow||(value=-960)) && (!validity.stepMismatch||(value=parseInt(this.value)));">Pixel
  613. </td>
  614. <td>$TOOLTIP_TakeImage_CamZoomOffsetX</td>
  615. </tr>
  616. <tr class="expert">
  617. <td class="indent1">
  618. <class id="TakeImage_CamZoomOffsetY_text" style="color:black;">Zoom Offset Y</class>
  619. </td>
  620. <td>
  621. <input required type="number" id="TakeImage_CamZoomOffsetY_value1" value="0" min="-720" max="720" step="8" onchange="cameraParameterChanged()"
  622. oninput="(!validity.rangeOverflow||(value=720)) && (!validity.rangeUnderflow||(value=-720)) && (!validity.stepMismatch||(value=parseInt(this.value)));">Pixel
  623. </td>
  624. <td>$TOOLTIP_TakeImage_CamZoomOffsetY</td>
  625. </tr>
  626. <tr>
  627. <td class="indent1">
  628. <class id="TakeImage_LEDIntensity_text" style="color:black;">LED Intensity</class>
  629. </td>
  630. <td>
  631. <input required type="number" id="TakeImage_LEDIntensity_value1" size="13" min="0" max="100" onchange="cameraParameterChanged()"
  632. oninput="(!validity.rangeUnderflow||(value=0)) && (!validity.rangeOverflow||(value=100)) && (!validity.stepMismatch||(value=parseInt(this.value)));">
  633. </td>
  634. <td>$TOOLTIP_TakeImage_LEDIntensity</td>
  635. </tr>
  636. <tr class="expert">
  637. <td class="indent1">
  638. <label>
  639. <class id="TakeImage_Demo_text" style="color:black;">Demo Mode</class>
  640. </label>
  641. </td>
  642. <td>
  643. <select id="TakeImage_Demo_value1">
  644. <option value="true">enabled (true)</option>
  645. <option value="false" selected>disabled (false)</option>
  646. </select>
  647. </td>
  648. <td>$TOOLTIP_TakeImage_Demo</td>
  649. </tr>
  650. <!------------- Alignment ------------------>
  651. <tr style="border-bottom: 2px solid lightgray;" id="ex4">
  652. <td colspan="3" style="padding-left: 0px; padding-bottom: 3px;"><h4>Alignment</h4></td>
  653. </tr>
  654. <tr class="expert">
  655. <td class="indent1">
  656. <class id="Alignment_SearchFieldX_text" style="color:black;">Search Field X</class>
  657. </td>
  658. <td>
  659. <input required type="number" id="Alignment_SearchFieldX_value1" size="13" min="1" step="1"
  660. oninput="(!validity.rangeUnderflow||(value=1)) && (!validity.stepMismatch||(value=parseInt(this.value)));">Pixel
  661. </td>
  662. <td>$TOOLTIP_Alignment_SearchFieldX</td>
  663. </tr>
  664. <tr class="expert">
  665. <td class="indent1">
  666. <class id="Alignment_SearchFieldY_text" style="color:black;">Search Field Y</class>
  667. </td>
  668. <td>
  669. <input required type="number" id="Alignment_SearchFieldY_value1" size="13" min="1"
  670. oninput="(!validity.rangeUnderflow||(value=1)) && (!validity.stepMismatch||(value=parseInt(this.value)));">Pixel
  671. </td>
  672. <td>$TOOLTIP_Alignment_SearchFieldY</td>
  673. </tr>
  674. <tr class="expert">
  675. <td class="indent1">
  676. <class id="Alignment_SearchMaxAngle_text" style="color:black;">Search Max Angle</class>
  677. </td>
  678. <td>
  679. <input required type="number" id="Alignment_SearchMaxAngle_value1" size="13" min="0" max="180"
  680. oninput="(!validity.rangeUnderflow||(value=0)) && (!validity.rangeUnderflow||(value=180)) && (!validity.stepMismatch||(value=parseInt(this.value)));">degree
  681. </td>
  682. <td>$TOOLTIP_Alignment_SearchMaxAngle</td>
  683. </tr>
  684. <tr class="expert">
  685. <td class="indent1">
  686. <class id="Alignment_Antialiasing_text" style="color:black;">Antialiasing</class>
  687. </td>
  688. <td>
  689. <select id="Alignment_Antialiasing_value1">
  690. <option value="true">enabled (true)</option>
  691. <option value="false" selected>disabled (false)</option>
  692. </select>
  693. </td>
  694. <td class="tooltip" style="display:none;"></td>
  695. </tr>
  696. <tr class="expert">
  697. <td class="indent1">
  698. <input type="checkbox" id="Alignment_AlignmentAlgo_enabled" value="1" onclick = 'InvertEnableItem("Alignment", "AlignmentAlgo")' unchecked >
  699. <label for=Alignment_AlignmentAlgo_enabled><class id="Alignment_AlignmentAlgo_text" style="color:black;">Alignment Algorithm</class></label>
  700. </td>
  701. <td>
  702. <select id="Alignment_AlignmentAlgo_value1">
  703. <option value="default" selected>Default</option>
  704. <option value="highAccuracy" >HighAccuracy</option>
  705. <option value="fast" >Fast</option>
  706. <option value="off" >Off</option><!-- add disable aligment algo |01.2023 -->
  707. </select>
  708. </td>
  709. <td>$TOOLTIP_Alignment_AlignmentAlgo</td>
  710. </tr>
  711. <tr>
  712. <td class="indent1">
  713. <class id="Alignment_InitialRotate_text" style="color:black;">Rotation angle</class>
  714. </td>
  715. <td>
  716. <input required type="number" id="Alignment_InitialRotate_value1" size="13" min="-180" max="+180" step="0.1"
  717. oninput="(!validity.rangeOverflow||(value=180)) && (!validity.rangeUnderflow||(value=-180)) && (!validity.stepMismatch||(value=parseInt(this.value)));">degree
  718. </td>
  719. <td>$TOOLTIP_Alignment_InitialRotate</td>
  720. </tr>
  721. <!------------- Digit ROIs ------------------>
  722. <tr style="border-bottom: 2px solid lightgray;" id="Category_Digits_ex4">
  723. <td colspan="3" style="padding-left: 0px; padding-bottom: 3px;">
  724. <h4><input type="checkbox" id="Category_Digits_enabled" value="1" onclick ='UpdateAfterCategoryCheck()' unchecked >
  725. <label for=Category_Digits_enabled>Digit ROI Processing</label></h4>
  726. </td>
  727. </tr>
  728. <tr class="DigitItem">
  729. <td class="indent1" >
  730. <class id="Digits_Model_text" style="color:black;">Model</class>
  731. </td>
  732. <td>
  733. <select required class="select_large" id="Digits_Model_value1">
  734. </select>
  735. </td>
  736. <td>$TOOLTIP_Digits_Model</td>
  737. </tr>
  738. <tr class="DigitItem expert">
  739. <td class="indent1">
  740. <input type="checkbox" id="Digits_CNNGoodThreshold_enabled" value="1" onclick = 'InvertEnableItem("Digits", "CNNGoodThreshold")' unchecked >
  741. <label for=Digits_CNNGoodThreshold_enabled><class id="Digits_CNNGoodThreshold_text" style="color:black;">CNN Good Threshold</class></label>
  742. </td>
  743. <td>
  744. <input required type="number" id="Digits_CNNGoodThreshold_value1" min="0" max="1" step="0.1"
  745. oninput="(!validity.rangeUnderflow||(value=0)) && (!validity.rangeOverflow||(value=1)) &&
  746. (!validity.stepMismatch||(value=parseInt(this.value)));">
  747. </td>
  748. <td>$TOOLTIP_Digits_CNNGoodThreshold</td>
  749. </tr>
  750. <tr class="DigitItem">
  751. <td class="indent1">
  752. <input type="checkbox" id="Digits_ROIImagesLocation_enabled" value="1" onclick = 'InvertEnableItem("Digits", "ROIImagesLocation")' unchecked >
  753. <label for=Digits_ROIImagesLocation_enabled><class id="Digits_ROIImagesLocation_text" style="color:black;">ROI Images Location</class></label>
  754. </td>
  755. <td>
  756. <input required type="text" id="Digits_ROIImagesLocation_value1">
  757. </td>
  758. <td>$TOOLTIP_Digits_ROIImagesLocation</td>
  759. </tr>
  760. <tr class="DigitItem">
  761. <td class="indent1">
  762. <input type="checkbox" id="Digits_ROIImagesRetention_enabled" value="1" onclick = 'InvertEnableItem("Digits", "ROIImagesRetention")' unchecked >
  763. <label for=Digits_ROIImagesRetention_enabled><class id="Digits_ROIImagesRetention_text" style="color:black;">ROI Images Retention</class></label>
  764. </td>
  765. <td>
  766. <input required type="number" id="Digits_ROIImagesRetention_value1" min="0" step="1"
  767. oninput="(!validity.rangeUnderflow||(value=0)) && (!validity.stepMismatch||(value=parseInt(this.value)));">Days
  768. </td>
  769. <td>$TOOLTIP_Digits_ROIImagesRetention</td>
  770. </tr>
  771. <!------------- Ananlog ROIs ------------------>
  772. <tr style="border-bottom: 2px solid lightgray;" id="Category_Analog_ex4">
  773. <td colspan="3" style="padding-left: 0px; padding-bottom: 3px;">
  774. <h4><input type="checkbox" id="Category_Analog_enabled" value="1" onclick = 'UpdateAfterCategoryCheck()' unchecked >
  775. <label for=Category_Analog_enabled>Analog ROI Processing</label></h4>
  776. </td>
  777. </tr>
  778. <tr class="AnalogItem">
  779. <td class="indent1">
  780. <class id="Analog_Model_text" style="color:black;">Model</class>
  781. </td>
  782. <td>
  783. <select required class="select_large" id="Analog_Model_value1"></select>
  784. </td>
  785. <td>$TOOLTIP_Analog_Model</td>
  786. </tr>
  787. <tr class="AnalogItem">
  788. <td class="indent1">
  789. <input type="checkbox" id="Analog_ROIImagesLocation_enabled" value="1" onclick = 'InvertEnableItem("Analog", "ROIImagesLocation")' unchecked >
  790. <label for=Analog_ROIImagesLocation_enabled><class id="Analog_ROIImagesLocation_text" style="color:black;">ROI Images Location</class></label>
  791. </td>
  792. <td> <input required type="text" id="Analog_ROIImagesLocation_value1"> </td>
  793. <td>$TOOLTIP_Analog_ROIImagesLocation</td>
  794. </tr>
  795. <tr class="AnalogItem">
  796. <td class="indent1">
  797. <input type="checkbox" id="Analog_ROIImagesRetention_enabled" value="1" onclick = 'InvertEnableItem("Analog", "ROIImagesRetention")' unchecked >
  798. <label for=Analog_ROIImagesRetention_enabled><class id="Analog_ROIImagesRetention_text" style="color:black;">ROI Images Retention</class></label>
  799. </td>
  800. <td>
  801. <input required type="number" id="Analog_ROIImagesRetention_value1" min="0" step="1"
  802. oninput="(!validity.rangeUnderflow||(value=0)) && (!validity.stepMismatch||(value=parseInt(this.value)));">Days
  803. </td>
  804. <td>$TOOLTIP_Analog_ROIImagesRetention</td>
  805. </tr>
  806. <!------------- Post-Processing ------------------>
  807. <tr style="border-bottom: 2px solid lightgray;">
  808. <td colspan="3" style="padding-left: 0px; padding-bottom: 3px;"><h4>Post-Processing</h4></td>
  809. </tr>
  810. <tr>
  811. <td class="indent1">
  812. <class id="PostProcessing_PreValueUse_text" style="color:black;">Previous Value</class>
  813. </td>
  814. <td>
  815. <select id="PostProcessing_PreValueUse_value1">
  816. <option value="true">enabled (true)</option>
  817. <option value="false" selected>disabled (false)</option>
  818. </select>
  819. </td>
  820. <td>$TOOLTIP_PostProcessing_PreValueUse</td>
  821. </tr>
  822. <tr class="expert">
  823. <td class="indent1">
  824. <input type="checkbox" id="PostProcessing_PreValueAgeStartup_enabled" value="1" onclick = 'InvertEnableItem("PostProcessing", "PreValueAgeStartup")' unchecked >
  825. <label for=PostProcessing_PreValueAgeStartup_enabled><class id="PostProcessing_PreValueAgeStartup_text" style="color:black;">Maximum Age of Previous Value after Startup</class></label>
  826. </td>
  827. <td>
  828. <input required type="number" id="PostProcessing_PreValueAgeStartup_value1" size="13" min="0"
  829. oninput="(!validity.rangeUnderflow||(value=0)) && (!validity.stepMismatch||(value=parseInt(this.value)));">Minutes
  830. </td>
  831. <td>$TOOLTIP_PostProcessing_PreValueAgeStartup</td>
  832. </tr>
  833. <tr class="expert">
  834. <td class="indent1">
  835. <class id="PostProcessing_SkipErrorMessage_text" style="color:black;">Skip Messages on Error</class>
  836. </td>
  837. <td>
  838. <select id="PostProcessing_SkipErrorMessage_value1">
  839. <option value="true">enabled (true)</option>
  840. <option value="false" selected>disabled (false)</option>
  841. </select>
  842. </td>
  843. <td>$TOOLTIP_PostProcessing_SkipErrorMessage</td>
  844. </tr>
  845. <tr style="margin-top:12px">
  846. <td class="indent1" style="padding-top:25px" colspan="3">
  847. <b>The following parameters are configurable individually for each number sequence:</b>
  848. <select style="font-weight: bold; margin-left:17px" id="Numbers_value1" onchange="numberChanged()"></select>
  849. </td>
  850. </tr>
  851. <tr>
  852. <td class="indent2">
  853. <class id="PostProcessing_AllowNegativeRates_text" style="color:black;">Allow Negative Rate</class>
  854. </td>
  855. <td>
  856. <select id="PostProcessing_AllowNegativeRates_value1">
  857. <option value="true">enabled (true)</option>
  858. <option value="false" selected>disabled (false)</option>
  859. </select>
  860. </td>
  861. <td>$TOOLTIP_PostProcessing_NUMBER.AllowNegativeRates</td>
  862. </tr>
  863. <tr>
  864. <td class="indent2">
  865. <input type="checkbox" id="PostProcessing_DecimalShift_enabled" value="1" onclick = 'InvertEnableItem("PostProcessing", "DecimalShift")' unchecked >
  866. <label for=PostProcessing_DecimalShift_enabled><class id="PostProcessing_DecimalShift_text" style="color:black;">Decimal Shift</class></label>
  867. </td>
  868. <td>
  869. <input required type="number" id="PostProcessing_DecimalShift_value1" value="0" step="1" min="-9" max="9"
  870. oninput="(!validity.rangeUnderflow||(value=-9)) && (!validity.rangeOverflow||(value=9)) &&
  871. (!validity.stepMismatch||(value=parseInt(this.value)));">
  872. </td>
  873. <td>$TOOLTIP_PostProcessing_NUMBER.DecimalShift</td>
  874. </tr>
  875. <tr>
  876. <td class="indent2">
  877. <input type="checkbox" id="PostProcessing_AnalogToDigitTransitionStart_enabled" value="1" onclick = 'InvertEnableItem("PostProcessing", "AnalogToDigitTransitionStart")' unchecked >
  878. <label for=PostProcessing_AnalogToDigitTransitionStart_enabled><class id="PostProcessing_AnalogToDigitTransitionStart_text" style="color:black;">Analog to Digit Transition Start</class></label>
  879. </td>
  880. <td>
  881. <input required type="number" id="PostProcessing_AnalogToDigitTransitionStart_value1" step="0.1" min="5.0" max="9.9" value="9.2"
  882. oninput="(!validity.rangeUnderflow||(value=5.0)) && (!validity.rangeOverflow||(value=9.9)) &&
  883. (!validity.stepMismatch||(value=parseInt(this.value)));">
  884. </td>
  885. <td>$TOOLTIP_PostProcessing_NUMBER.AnalogToDigitTransitionStart</td>
  886. </tr>
  887. <tr class="expert">
  888. <td class="indent2">
  889. <input type="checkbox" id="PostProcessing_MaxFlowRate_enabled" value="1" onclick='InvertEnableItem("PostProcessing", "MaxFlowRate")' unchecked>
  890. <label for=PostProcessing_MaxFlowRate_enabled><class id="PostProcessing_MaxFlowRate_text" style="color:black;">Maximum Flow Rate</class></label>
  891. </td>
  892. <td>
  893. <input required type="number" id="PostProcessing_MaxFlowRate_value1" step="any" size="13" min="0.1" max="100000.0" value="4.0"
  894. oninput="(!validity.rangeUnderflow||(value=0.1)) && (!validity.rangeOverflow||(value=100000.0)) && (!validity.stepMismatch||(value=parseInt(this.value)));">
  895. </td>
  896. <td>$TOOLTIP_PostProcessing_NUMBER.MaxFlowRate</td>
  897. </tr>
  898. <tr>
  899. <td class="indent2">
  900. <input type="checkbox" id="PostProcessing_MaxRateValue_enabled" value="1" onclick = 'InvertEnableItem("PostProcessing", "MaxRateValue")' unchecked >
  901. <label for=PostProcessing_MaxRateValue_enabled><class id="PostProcessing_MaxRateValue_text" style="color:black;">Maximum Rate Value</class></label>
  902. </td>
  903. <td>
  904. <input required type="number" id="PostProcessing_MaxRateValue_value1" size="13" min="0" step="any"
  905. oninput="(!validity.rangeUnderflow||(value=0)) && (!validity.stepMismatch||(value=parseInt(this.value)));">
  906. </td>
  907. <td>$TOOLTIP_PostProcessing_NUMBER.MaxRateValue</td>
  908. </tr>
  909. <tr>
  910. <td class="indent2">
  911. <input type="checkbox" id="PostProcessing_MaxRateType_enabled" value="1" onclick = 'InvertEnableItem("PostProcessing", "MaxRateType")' unchecked >
  912. <label for=PostProcessing_MaxRateType_enabled><class id="PostProcessing_MaxRateType_text" style="color:black;">Maximum Rate Type</class></label>
  913. </td>
  914. <td>
  915. <select id="PostProcessing_MaxRateType_value1">
  916. <option value="AbsoluteChange" >AbsoluteChange</option>
  917. <option value="RateChange" selected>RateChange</option>
  918. </select>
  919. </td>
  920. <td>$TOOLTIP_PostProcessing_NUMBER.MaxRateType</td>
  921. </tr>
  922. <tr>
  923. <td class="indent2">
  924. <input type="checkbox" id="PostProcessing_ChangeRateThreshold_enabled" value="1" onclick = 'InvertEnableItem("PostProcessing", "ChangeRateThreshold")' unchecked >
  925. <label for=PostProcessing_ChangeRateThreshold_enabled><class id="PostProcessing_ChangeRateThreshold_text" style="color:black;">Change Rate Threshold</class></label>
  926. </td>
  927. <td>
  928. <input required type="number" id="PostProcessing_ChangeRateThreshold_value1" step="1" min="0" max="9" value="2"
  929. oninput="(!validity.rangeUnderflow||(value=0)) && (!validity.rangeOverflow||(value=9)) &&
  930. (!validity.stepMismatch||(value=parseInt(this.value)));">
  931. </td>
  932. <td>$TOOLTIP_PostProcessing_NUMBER.ChangeRateThreshold</td>
  933. </tr>
  934. <tr>
  935. <td class="indent2">
  936. <class id="PostProcessing_ExtendedResolution_text" style="color:black;">Extended Resolution</class>
  937. </td>
  938. <td>
  939. <select id="PostProcessing_ExtendedResolution_value1">
  940. <option value="true">enabled (true)</option>
  941. <option value="false" selected>disabled (false)</option>
  942. </select>
  943. </td>
  944. <td>$TOOLTIP_PostProcessing_NUMBER.ExtendedResolution</td>
  945. </tr>
  946. <tr>
  947. <td class="indent2">
  948. <class id="PostProcessing_IgnoreLeadingNaN_text" style="color:black;">Ignore Leading NaNs</class>
  949. </td>
  950. <td>
  951. <select id="PostProcessing_IgnoreLeadingNaN_value1">
  952. <option value="true">enabled (true)</option>
  953. <option value="false" selected>disabled (false)</option>
  954. </select>
  955. </td>
  956. <td>$TOOLTIP_PostProcessing_NUMBER.IgnoreLeadingNaN</td>
  957. </tr>
  958. <!------------- MQTT ------------------>
  959. <tr style="border-bottom: 2px solid lightgray;">
  960. <td colspan="3" style="padding-left: 0px; padding-bottom: 3px;">
  961. <h4>
  962. <input type="checkbox" id="Category_MQTT_enabled" value="1" onclick = 'UpdateAfterCategoryCheck()' unchecked >
  963. <label for=Category_MQTT_enabled>MQTT</label>
  964. </h4>
  965. </td>
  966. </tr>
  967. <tr class="MQTTItem">
  968. <td class="indent1">
  969. <input type="checkbox" id="MQTT_Uri_enabled" value="1" onclick = 'InvertEnableItem("MQTT", "Uri")' unchecked >
  970. <label for=MQTT_Uri_enabled><class id="MQTT_Uri_text" style="color:black;">URI</class></label>
  971. </td>
  972. <td>
  973. <input required type="text" id="MQTT_Uri_value1">
  974. </td>
  975. <td>$TOOLTIP_MQTT_Uri</td>
  976. </tr>
  977. <tr class="MQTTItem">
  978. <td class="indent1">
  979. <input type="checkbox" id="MQTT_MainTopic_enabled" value="1" onclick = 'InvertEnableItem("MQTT", "MainTopic")' unchecked >
  980. <label for=MQTT_MainTopic_enabled><class id="MQTT_MainTopic_text" style="color:black;">Main Topic</class></label>
  981. </td>
  982. <td>
  983. <input required type="text" id="MQTT_MainTopic_value1">
  984. </td>
  985. <td>$TOOLTIP_MQTT_MainTopic</td>
  986. </tr>
  987. <tr class="MQTTItem">
  988. <td class="indent1">
  989. <input type="checkbox" id="MQTT_ClientID_enabled" value="1" onclick = 'InvertEnableItem("MQTT", "ClientID")' unchecked >
  990. <label for=MQTT_ClientID_enabled><class id="MQTT_ClientID_text" style="color:black;">Client ID</class></label>
  991. </td>
  992. <td>
  993. <input required type="text" id="MQTT_ClientID_value1">
  994. </td>
  995. <td>$TOOLTIP_MQTT_ClientID</td>
  996. </tr>
  997. <tr class="MQTTItem">
  998. <td class="indent1">
  999. <input type="checkbox" id="MQTT_user_enabled" value="1" onclick = 'InvertEnableItem("MQTT", "user")' unchecked >
  1000. <label for=MQTT_user_enabled><class id="MQTT_user_text" style="color:black;">Username</class></label>
  1001. </td>
  1002. <td>
  1003. <input type="text" id="MQTT_user_value1">
  1004. </td>
  1005. <td>$TOOLTIP_MQTT_user</td>
  1006. </tr>
  1007. <tr class="MQTTItem">
  1008. <td class="indent1">
  1009. <input type="checkbox" id="MQTT_password_enabled" value="1" onclick = 'InvertEnableItem("MQTT", "password")' unchecked >
  1010. <label for=MQTT_password_enabled><class id="MQTT_password_text" style="color:black;">Password</class></label>
  1011. </td>
  1012. <td>
  1013. <input type="text" id="MQTT_password_value1">
  1014. </td>
  1015. <td>$TOOLTIP_MQTT_password</td>
  1016. </tr>
  1017. <tr class="MQTTItem expert">
  1018. <td class="indent1">
  1019. <input type="checkbox" id="MQTT_CACert_enabled" value="1" onclick = 'InvertEnableItem("MQTT", "CACert")' unchecked >
  1020. <label for=MQTT_CACert_enabled><class id="MQTT_CACert_text" style="color:black;">Root CA Certificate file</class></label>
  1021. </td>
  1022. <td>
  1023. <input type="text" id="MQTT_CACert_value1">
  1024. </td>
  1025. <td>$TOOLTIP_MQTT_CACert</td>
  1026. </tr>
  1027. <tr class="MQTTItem expert">
  1028. <td class="indent1">
  1029. <input type="checkbox" id="MQTT_ClientCert_enabled" value="1" onclick = 'InvertEnableItem("MQTT", "ClientCert")' unchecked >
  1030. <label for=MQTT_ClientCert_enabled><class id="MQTT_ClientCert_text" style="color:black;">Client Certificate file</class></label>
  1031. </td>
  1032. <td>
  1033. <input type="text" id="MQTT_ClientCert_value1">
  1034. </td>
  1035. <td>$TOOLTIP_MQTT_ClientCert</td>
  1036. </tr>
  1037. <tr class="MQTTItem expert">
  1038. <td class="indent1">
  1039. <input type="checkbox" id="MQTT_ClientKey_enabled" value="1" onclick = 'InvertEnableItem("MQTT", "ClientKey")' unchecked >
  1040. <label for=MQTT_ClientKey_enabled><class id="MQTT_ClientKey_text" style="color:black;">Client Key file</class></label>
  1041. </td>
  1042. <td>
  1043. <input type="text" id="MQTT_ClientKey_value1">
  1044. </td>
  1045. <td>$TOOLTIP_MQTT_ClientKey</td>
  1046. </tr>
  1047. <tr class="MQTTItem expert">
  1048. <td class="indent1">
  1049. <input type="checkbox" id="MQTT_ValidateServerCert_enabled" value="1" onclick = 'InvertEnableItem("MQTT", "ValidateServerCert")' unchecked >
  1050. <label for=MQTT_ValidateServerCert_enabled><class id="MQTT_ValidateServerCert_text" style="color:black;">Validate ServerCert</class></label>
  1051. </td>
  1052. <td>
  1053. <select id="MQTT_ValidateServerCert_value1">
  1054. <option value="true" selected>enabled (true)</option>
  1055. <option value="false">disabled (false)</option>
  1056. </select>
  1057. </td>
  1058. <td>$TOOLTIP_MQTT_ValidateServerCert</td>
  1059. </tr>
  1060. <tr class="MQTTItem">
  1061. <td class="indent1">
  1062. <class id="MQTT_RetainMessages_text" style="color:black;">Retain Messages</class>
  1063. </td>
  1064. <td>
  1065. <select id="MQTT_RetainMessages_value1">
  1066. <option value="true">enabled (true)</option>
  1067. <option value="false" selected>disabled (false)</option>
  1068. </select>
  1069. </td>
  1070. <td>$TOOLTIP_MQTT_RetainMessages</td>
  1071. </tr>
  1072. <tr class="MQTTItem">
  1073. <td class="indent1" style="padding-top:25px" colspan="2">
  1074. <b>Homeassistant Discovery (using MQTT)</b><br>
  1075. If activated, the discovery topics gets automatically scheduled to sent once after device startup during state "Publish to MQTT".
  1076. To schedule a retransmission: Use "Manual Control > Resend HA Discovery" or call REST API:
  1077. <a href=mqtt_publish_discovery target="_blank">http://&lt;IP&gt;/mqtt_publish_discovery</a>
  1078. </td>
  1079. </tr>
  1080. <tr class="MQTTItem">
  1081. <td class="indent2">
  1082. <class id="MQTT_HomeassistantDiscovery_text" style="color:black;">Homeassistant Discovery</class>
  1083. </td>
  1084. <td>
  1085. <select id="MQTT_HomeassistantDiscovery_value1">
  1086. <option value="true">enabled (true)</option>
  1087. <option value="false" selected>disabled (false)</option>
  1088. </select>
  1089. </td>
  1090. <td>$TOOLTIP_MQTT_HomeassistantDiscovery</td>
  1091. </tr>
  1092. <tr class="MQTTItem">
  1093. <td class="indent2">
  1094. <input type="checkbox" id="MQTT_DiscoveryPrefix_enabled" value="homeassistant" onclick = 'InvertEnableItem("MQTT", "DiscoveryPrefix")' unchecked >
  1095. <label for=MQTT_DiscoveryPrefix_enabled><class id="MQTT_DiscoveryPrefix_text" style="color:black;">Discovery Prefix</class></label>
  1096. </td>
  1097. <td>
  1098. <input required type="text" id="MQTT_DiscoveryPrefix_value1">
  1099. </td>
  1100. <td class="tooltip" style="display:none;"></td>
  1101. </tr>
  1102. <tr class="MQTTItem">
  1103. <td class="indent2">
  1104. <input type="checkbox" id="MQTT_MeterType_enabled" value="1" onclick = 'InvertEnableItem("MQTT", "MeterType")' unchecked >
  1105. <label for=MQTT_MeterType_enabled><class id="MQTT_MeterType_text" style="color:black;">Meter Type</class></label>
  1106. </td>
  1107. <td>
  1108. <select class="select_large" id="MQTT_MeterType_value1"> <!-- See https://developers.home-assistant.io/docs/core/entity/sensor/#available-device-classes -->
  1109. <option value="other" selected>Other (no Units)</option>
  1110. <option value="water_m3">Watermeter (Value: m³, Rate: m³/h)</option>
  1111. <option value="water_l">Watermeter (Value: l, Rate: l/h) ⚠️ Not supported by Homeassistant 2025.7 and later! ⚠️</option>
  1112. <option value="water_gal">Watermeter (Value: gal, Rate: gal/h) ⚠️ Not supported by Homeassistant 2025.7 and later! ⚠️</option>
  1113. <option value="water_gal_min">Watermeter (Value: gal, Rate: gal/min)</option>
  1114. <option value="water_ft3">Watermeter (Value: ft³, Rate: ft³/min)</option>
  1115. <option value="gas_m3">Gasmeter (Value: m³, Rate: m³/h)</option>
  1116. <option value="gas_ft3">Gasmeter (Value: ft³, Rate: ft³/min)</option>
  1117. <option value="energy_wh">Energymeter (Value: Wh, Rate: W)</option>
  1118. <option value="energy_kwh">Energymeter (Value: kWh, Rate: kW)</option>
  1119. <option value="energy_mwh">Energymeter (Value: MWh, Rate: MW)</option>
  1120. <option value="energy_gj">Energymeter (Value: GJ, Rate: GJ/h) ⚠️ Not supported by Homeassistant 2025.7 and later! ⚠️</option>
  1121. <option value="temperature_c">Thermometer (Value: °C, Rate: °C/min)</option>
  1122. <option value="temperature_c">Thermometer (Value: °F, Rate: °F/min)</option>
  1123. <option value="temperature_c">Thermometer (Value: K, Rate: K/min)</option>
  1124. </select>
  1125. </td>
  1126. <td>$TOOLTIP_MQTT_MeterType</td>
  1127. </tr>
  1128. <tr class="MQTTItem">
  1129. <td class="indent1">
  1130. <input type="checkbox" id="MQTT_DomoticzTopicIn_enabled" value="1" onclick = 'InvertEnableItem("MQTT", "DomoticzTopicIn")' unchecked >
  1131. <label for=MQTT_DomoticzTopicIn_enabled><class id="MQTT_DomoticzTopicIn_text" style="color:black;">Domoticz "in" topic</class></label>
  1132. </td>
  1133. <td>
  1134. <input type="text" id="MQTT_DomoticzTopicIn_value1">
  1135. </td>
  1136. <td>$TOOLTIP_MQTT_DomoticzTopicIn</td>
  1137. </tr>
  1138. <tr class="MQTTItem" style="margin-top:12px">
  1139. <td class="indent1" style="padding-top:25px" colspan="3">
  1140. <b>The following parameters are configurable individually for each number sequence:</b>
  1141. <select style="font-weight: bold; margin-left:17px" id="NumbersMQTTIdx_value1" onchange="numberMQTTIdxChanged()"></select>
  1142. </td>
  1143. </tr>
  1144. <tr class="MQTTItem">
  1145. <td class="indent2">
  1146. <input type="checkbox" id="MQTT_DomoticzIDX_enabled" value="1" onclick = 'InvertEnableItem("MQTT", "DomoticzIDX")' unchecked >
  1147. <label for=MQTT_DomoticzIDX_enabled><class id="MQTT_DomoticzIDX_text" style="color:black;">Domoticz Counter Idx:</class></label>
  1148. </td>
  1149. <td>
  1150. <input type="text" id="MQTT_DomoticzIDX_value1">
  1151. </td>
  1152. <td>$TOOLTIP_MQTT_NUMBER.DomoticzIDX</td>
  1153. </tr>
  1154. <!------------- INFLUXDB v1 ------------------>
  1155. <tr style="border-bottom: 2px solid lightgray;">
  1156. <td colspan="3" style="padding-left: 0px; padding-bottom: 3px;">
  1157. <h4>
  1158. <input type="checkbox" id="Category_InfluxDB_enabled" value="1" onclick = 'UpdateAfterCategoryCheck()' unchecked >
  1159. <label for=Category_InfluxDB_enabled>InfluxDB v1.x</label>
  1160. </h4>
  1161. </td>
  1162. </tr>
  1163. <tr class="InfluxDBv1Item">
  1164. <td class="indent1">
  1165. <input type="checkbox" id="InfluxDB_Uri_enabled" value="1" onclick = 'InvertEnableItem("InfluxDB", "Uri")' unchecked >
  1166. <label for=InfluxDB_Uri_enabled><class id="InfluxDB_Uri_text" style="color:black;">URI</class></label>
  1167. </td>
  1168. <td>
  1169. <input required type="text" id="InfluxDB_Uri_value1">
  1170. </td>
  1171. <td>$TOOLTIP_InfluxDB_Uri</td>
  1172. </tr>
  1173. <tr class="InfluxDBv1Item">
  1174. <td class="indent1">
  1175. <input type="checkbox" id="InfluxDB_Database_enabled" value="1" onclick = 'InvertEnableItem("InfluxDB", "Database")' unchecked >
  1176. <label for=InfluxDB_Database_enabled><class id="InfluxDB_Database_text" style="color:black;">Database</class></label>
  1177. </td>
  1178. <td>
  1179. <input required type="text" id="InfluxDB_Database_value1">
  1180. </td>
  1181. <td>$TOOLTIP_InfluxDB_Database</td>
  1182. </tr>
  1183. <tr class="InfluxDBv1Item">
  1184. <td class="indent1">
  1185. <input type="checkbox" id="InfluxDB_user_enabled" value="1" onclick = 'InvertEnableItem("InfluxDB", "user")' unchecked >
  1186. <label for=InfluxDB_user_enabled><class id="InfluxDB_user_text" style="color:black;">Username</class></label>
  1187. </td>
  1188. <td>
  1189. <input type="text" id="InfluxDB_user_value1">
  1190. </td>
  1191. <td>$TOOLTIP_InfluxDB_user</td>
  1192. </tr>
  1193. <tr class="InfluxDBv1Item">
  1194. <td class="indent1">
  1195. <input type="checkbox" id="InfluxDB_password_enabled" value="1" onclick = 'InvertEnableItem("InfluxDB", "password")' unchecked >
  1196. <label for=InfluxDB_password_enabled><class id="InfluxDB_password_text" style="color:black;">Password</class></label>
  1197. </td>
  1198. <td>
  1199. <input type="text" id="InfluxDB_password_value1">
  1200. </td>
  1201. <td>$TOOLTIP_InfluxDB_password</td>
  1202. </tr>
  1203. <tr class="InfluxDBv1Item" style="margin-top:12px">
  1204. <td class="indent1" style="padding-top:25px" colspan="3">
  1205. <b>Parameter per number sequence:</b>
  1206. <select style="font-weight: bold; margin-left:17px" id="NumbersInfluxDB_value1" onchange="numberInfluxDBChanged()"></select>
  1207. </td>
  1208. </tr>
  1209. <tr class="InfluxDBv1Item">
  1210. <td class="indent2">
  1211. <input type="checkbox" id="InfluxDB_Measurement_enabled" value="1" onclick = 'InvertEnableItem("InfluxDB", "Measurement")' unchecked >
  1212. <label for=InfluxDB_Measurement_enabled><class id="InfluxDB_Measurement_text" style="color:black;">Measurement</class></label>
  1213. </td>
  1214. <td>
  1215. <input required type="text" id="InfluxDB_Measurement_value1">
  1216. </td>
  1217. <td>$TOOLTIP_InfluxDB_NUMBER.Measurement</td>
  1218. </tr>
  1219. <tr class="InfluxDBv1Item">
  1220. <td class="indent2">
  1221. <input type="checkbox" id="InfluxDB_Field_enabled" value="1" onclick = 'InvertEnableItem("InfluxDB", "Field")' unchecked >
  1222. <label for=InfluxDB_Field_enabled><class id="InfluxDB_Field_text" style="color:black;">Field</class></label>
  1223. </td>
  1224. <td>
  1225. <input required type="text" id="InfluxDB_Field_value1">
  1226. </td>
  1227. <td>$TOOLTIP_InfluxDB_NUMBER.Field</td>
  1228. </tr>
  1229. <!------------- INFLUXDB v2 ------------------>
  1230. <tr style="border-bottom: 2px solid lightgray;">
  1231. <td colspan="3" style="padding-left: 0px; padding-bottom: 3px;">
  1232. <h4>
  1233. <input type="checkbox" id="Category_InfluxDBv2_enabled" value="1" onclick = 'UpdateAfterCategoryCheck()' unchecked >
  1234. <label for=Category_InfluxDBv2_enabled>InfluxDB v2.x</label>
  1235. </h4>
  1236. </td>
  1237. </tr>
  1238. <tr class="InfluxDBv2Item">
  1239. <td class="indent1">
  1240. <input type="checkbox" id="InfluxDBv2_Uri_enabled" value="1" onclick = 'InvertEnableItem("InfluxDBv2", "Uri")' unchecked >
  1241. <label for=InfluxDBv2_Uri_enabled><class id="InfluxDBv2_Uri_text" style="color:black;">URI</class></label>
  1242. </td>
  1243. <td>
  1244. <input required type="text" id="InfluxDBv2_Uri_value1">
  1245. </td>
  1246. <td>$TOOLTIP_InfluxDBv2_Uri</td>
  1247. </tr>
  1248. <tr class="InfluxDBv2Item">
  1249. <td class="indent1">
  1250. <input type="checkbox" id="InfluxDBv2_Bucket_enabled" value="1" onclick = 'InvertEnableItem("InfluxDBv2", "Bucket")' unchecked >
  1251. <label for=InfluxDBv2_Bucket_enabled><class id="InfluxDBv2_Bucket_text" style="color:black;">Bucket</class></label>
  1252. </td>
  1253. <td>
  1254. <input required type="text" id="InfluxDBv2_Bucket_value1">
  1255. </td>
  1256. <td>$TOOLTIP_InfluxDBv2_Bucket</td>
  1257. </tr>
  1258. <tr class="InfluxDBv2Item">
  1259. <td class="indent1">
  1260. <input type="checkbox" id="InfluxDBv2_Org_enabled" value="1" onclick = 'InvertEnableItem("InfluxDBv2", "Org")' unchecked >
  1261. <label for=InfluxDBv2_Org_enabled><class id="InfluxDBv2_Org_text" style="color:black;">Organization (Org)</class></label>
  1262. </td>
  1263. <td>
  1264. <input type="text" id="InfluxDBv2_Org_value1">
  1265. </td>
  1266. <td>$TOOLTIP_InfluxDBv2_Org</td>
  1267. </tr>
  1268. <tr class="InfluxDBv2Item">
  1269. <td class="indent1">
  1270. <input type="checkbox" id="InfluxDBv2_Token_enabled" value="1" onclick = 'InvertEnableItem("InfluxDBv2", "Token")' unchecked >
  1271. <label for=InfluxDBv2_Token_enabled><class id="InfluxDBv2_Token_text" style="color:black;">Token</class></label>
  1272. </td>
  1273. <td>
  1274. <input type="text" id="InfluxDBv2_Token_value1">
  1275. </td>
  1276. <td>$TOOLTIP_InfluxDBv2_Token</td>
  1277. </tr>
  1278. <tr class="InfluxDBv2Item" style="margin-top:12px">
  1279. <td class="indent1" style="padding-top:25px" colspan="3">
  1280. <b>Parameter per number sequence:</b>
  1281. <select style="font-weight: bold; margin-left:17px" id="NumbersInfluxDBv2_value1" onchange="numberInfluxDBv2Changed()"></select>
  1282. </td>
  1283. </tr>
  1284. <tr class="InfluxDBv2Item">
  1285. <td class="indent2">
  1286. <input type="checkbox" id="InfluxDBv2_Measurement_enabled" value="1" onclick = 'InvertEnableItem("InfluxDBv2", "Measurement")' unchecked >
  1287. <label for=InfluxDBv2_Measurement_enabled><class id="InfluxDBv2_Measurement_text" style="color:black;">Measurement</class></label>
  1288. </td>
  1289. <td>
  1290. <input required type="text" id="InfluxDBv2_Measurement_value1">
  1291. </td>
  1292. <td>$TOOLTIP_InfluxDBv2_NUMBER.Measurement</td>
  1293. </tr>
  1294. <tr class="InfluxDBv2Item">
  1295. <td class="indent2">
  1296. <input type="checkbox" id="InfluxDBv2_Field_enabled" value="1" onclick = 'InvertEnableItem("InfluxDBv2", "Field")' unchecked >
  1297. <label for=InfluxDBv2_Field_enabled><class id="InfluxDBv2_Field_text" style="color:black;">Field</class></label>
  1298. </td>
  1299. <td>
  1300. <input required type="text" id="InfluxDBv2_Field_value1">
  1301. </td>
  1302. <td>$TOOLTIP_InfluxDBv2_NUMBER.Field</td>
  1303. </tr>
  1304. <!------------- Webhook ------------------>
  1305. <tr style="border-bottom: 2px solid lightgray;">
  1306. <td colspan="3" style="padding-left: 0px; padding-bottom: 3px;">
  1307. <h4>
  1308. <input type="checkbox" id="Category_Webhook_enabled" value="1" onclick = 'UpdateAfterCategoryCheck()' unchecked >
  1309. <label for=Category_Webhook_enabled>Webhook</label>
  1310. </h4>
  1311. </td>
  1312. </tr>
  1313. <tr class="WebhookItem">
  1314. <td class="indent1">
  1315. <input type="checkbox" id="Webhook_Uri_enabled" value="1" onclick = 'InvertEnableItem("Webhook", "Uri")' unchecked >
  1316. <label for=Webhook_Uri_enabled><class id="Webhook_Uri_text" style="color:black;">URI</class></label>
  1317. </td>
  1318. <td>
  1319. <input required type="text" id="Webhook_Uri_value1">
  1320. </td>
  1321. <td>$TOOLTIP_Webhook_Uri</td>
  1322. </tr>
  1323. <tr class="WebhookItem">
  1324. <td class="indent1">
  1325. <input type="checkbox" id="Webhook_ApiKey_enabled" value="1" onclick = 'InvertEnableItem("Webhook", "ApiKey")' unchecked >
  1326. <label for=Webhook_ApiKey_enabled><class id="Webhook_ApiKey_text" style="color:black;">ApiKey</class></label>
  1327. </td>
  1328. <td>
  1329. <input required type="text" id="Webhook_ApiKey_value1">
  1330. </td>
  1331. <td>$TOOLTIP_Webhook_ApiKey</td>
  1332. </tr>
  1333. <tr class="WebhookItem">
  1334. <td class="indent1">
  1335. <input type="checkbox" id="Webhook_UploadImg_enabled" value="1" onclick = 'InvertEnableItem("Webhook", "UploadImg")' unchecked>
  1336. <label for=Webhook_UploadImg_enabled><class id="Webhook_UploadImg_text" style="color:black;">Upload Image</class></label>
  1337. </td>
  1338. <td>
  1339. <select id="Webhook_UploadImg_value1">
  1340. <option value="0" selected>NEVER</option>
  1341. <option value="1">ALWAYS</option>
  1342. <option value="2">ON_ERROR</option>
  1343. </select>
  1344. </td>
  1345. <td>$TOOLTIP_Webhook_UploadImg</td>
  1346. </tr>
  1347. <!------------- GPIO ------------------>
  1348. <tr style="border-bottom: 2px solid lightgray;">
  1349. <td colspan="3" style="padding-left: 0px; padding-bottom: 3px;">
  1350. <h4><input type="checkbox" id="Category_GPIO_enabled" value="1" onclick='UpdateAfterCategoryCheck()' unchecked >
  1351. <label for=Category_GPIO_enabled>GPIO (General Purpose Input / Output)</label></h4>
  1352. </td>
  1353. </tr>
  1354. <!------------- GPIO0 begin ------------------>
  1355. <tr class="GPIO_IO0 GPIO_item expert">
  1356. <td class="indent1">
  1357. <input type="checkbox" id="GPIO_IO0_enabled" value="1" onclick = 'InvertEnableItem("GPIO", "IO0")' unchecked>
  1358. <label for=GPIO_IO0_enabled><span id="GPIO_IO0_text">GPIO0 Configuration</span></label>
  1359. </td>
  1360. <td>
  1361. <select id="GPIO_IO0_value1">
  1362. <option value="input">input</option>
  1363. <option value="input-pullup">input pullup</option>
  1364. <option value="input-pulldown">input pulldown</option>
  1365. <option value="output">output</option>
  1366. </select>
  1367. </td>
  1368. <td>$TOOLTIP_GPIO_IO0</td>
  1369. </tr>
  1370. <tr class="GPIO_IO0 GPIO_item expert">
  1371. <td class="indent2">
  1372. <span id="GPIO_IO0_text" class="GPIO_IO0 GPIO_item">GPIO0 Use Interrupt</span>
  1373. </td>
  1374. <td>
  1375. <select id="GPIO_IO0_value2">
  1376. <option value="disabled">disabled</option>
  1377. <option value="rising-edge">rising edge</option>
  1378. <option value="falling-edge">falling edge</option>
  1379. <option value="rising-and-falling">rising and falling</option>
  1380. <option value="low-level-trigger">low level trigger</option>
  1381. <option value="high-level-trigger">high level trigger</option>
  1382. </select>
  1383. </td>
  1384. <td class="tooltip" style="display:none;"></td>
  1385. </tr>
  1386. <tr class="GPIO_IO0 GPIO_item expert">
  1387. <td class="indent2">
  1388. <span class="GPIO_IO0 GPIO_item">GPIO0 PWM Duty Cycle Resolution</span>
  1389. </td>
  1390. <td>
  1391. <input required type="number" id="GPIO_IO0_value3" min="1" max="20"
  1392. oninput="(!validity.rangeUnderflow||(value=1)) && (!validity.rangeOverflow||(value=20)) &&
  1393. (!validity.stepMismatch||(value=parseInt(this.value)));"><span class="GPIO_IO0 GPIO_item">Bits</span>
  1394. </td>
  1395. <td class="tooltip" style="display:none;"></td>
  1396. </tr>
  1397. <tr class="GPIO_IO0 GPIO_item expert">
  1398. <td class="indent2">
  1399. <span class="GPIO_IO0 GPIO_item">GPIO0 Enable MQTT</span>
  1400. </td>
  1401. <td><input type="checkbox" id="GPIO_IO0_value4"></td>
  1402. <td class="tooltip" style="display:none;"></td>
  1403. </tr>
  1404. <tr class="GPIO_IO0 GPIO_item expert">
  1405. <td class="indent2">
  1406. <span class="GPIO_IO0 GPIO_item">GPIO0 Enable REST API</span>
  1407. </td>
  1408. <td><input type="checkbox" id="GPIO_IO0_value5"></td>
  1409. <td class="tooltip" style="display:none;"></td>
  1410. </tr>
  1411. <tr class="GPIO_IO0 GPIO_item expert">
  1412. <td class="indent2">
  1413. <span class="GPIO_IO0 GPIO_item">GPIO0 Name</span>
  1414. </td>
  1415. <td><input type="text" id="GPIO_IO0_value6"></td>
  1416. <td class="tooltip" style="display:none;"></td>
  1417. </tr>
  1418. <!------------- GPIO0 end ------------------>
  1419. <!------------- GPIO1 begin ------------------>
  1420. <tr class="GPIO_IO1 GPIO_item expert">
  1421. <td class="indent1">
  1422. <input type="checkbox" id="GPIO_IO1_enabled" value="1" onclick = 'InvertEnableItem("GPIO", "IO1")' unchecked>
  1423. <label for=GPIO_IO1_enabled><span id="GPIO_IO1_text">GPIO1 Configuration</span></label>
  1424. </td>
  1425. <td>
  1426. <select id="GPIO_IO1_value1">
  1427. <option value="input">input</option>
  1428. <option value="input-pullup">input pullup</option>
  1429. <option value="input-pulldown">input pulldown</option>
  1430. <option value="output">output</option>
  1431. </select>
  1432. </td>
  1433. <td>$TOOLTIP_GPIO_IO1</td>
  1434. </tr>
  1435. <tr class="GPIO_IO1 GPIO_item expert">
  1436. <td class="indent2">
  1437. <span class="GPIO_IO1 GPIO_item" class="expert">GPIO1 Use Interrupt</span>
  1438. </td>
  1439. <td>
  1440. <select id="GPIO_IO1_value2">
  1441. <option value="disabled">disabled</option>
  1442. <option value="rising-edge" disabled>rising edge</option>
  1443. <option value="falling-edge" disabled>falling edge</option>
  1444. <option value="rising-and-falling">rising and falling</option>
  1445. <option value="low-level-trigger">low level trigger</option>
  1446. <option value="high-level-trigger">high level trigger</option>
  1447. </select>
  1448. </td>
  1449. <td class="tooltip" style="display:none;"></td>
  1450. </tr>
  1451. <tr class="GPIO_IO1 GPIO_item expert">
  1452. <td class="indent2">
  1453. <span class="GPIO_IO1 GPIO_item">GPIO1 PWM Duty Cycle Resolution</span>
  1454. </td>
  1455. <td>
  1456. <input required type="number" id="GPIO_IO1_value3" min="1" max="20"
  1457. oninput="(!validity.rangeUnderflow||(value=1)) && (!validity.rangeOverflow||(value=20)) &&
  1458. (!validity.stepMismatch||(value=parseInt(this.value)));"><span class="GPIO_IO1 GPIO_item">Bits</span>
  1459. </td>
  1460. <td class="tooltip" style="display:none;"></td>
  1461. </tr>
  1462. <tr class="GPIO_IO1 GPIO_item expert">
  1463. <td class="indent2">
  1464. <span class="GPIO_IO1 GPIO_item">GPIO1 Enable MQTT</span>
  1465. </td>
  1466. <td><input type="checkbox" id="GPIO_IO1_value4"></td>
  1467. <td class="tooltip" style="display:none;"></td>
  1468. </tr>
  1469. <tr class="GPIO_IO1 GPIO_item expert">
  1470. <td class="indent2">
  1471. <span class="GPIO_IO1 GPIO_item">GPIO1 Enable REST API</span>
  1472. </td>
  1473. <td><input type="checkbox" id="GPIO_IO1_value5"></td>
  1474. <td class="tooltip" style="display:none;"></td>
  1475. </tr>
  1476. <tr class="GPIO_IO1 GPIO_item expert">
  1477. <td class="indent2">
  1478. <span class="GPIO_IO1 GPIO_item" class="expert">GPIO1 Name</span>
  1479. </td>
  1480. <td><input type="text" id="GPIO_IO1_value6"></td>
  1481. <td class="tooltip" style="display:none;"></td>
  1482. </tr>
  1483. <!------------- GPIO1 end ------------------>
  1484. <!------------- GPIO3 begin ------------------>
  1485. <tr class="GPIO_IO3 GPIO_item expert">
  1486. <td class="indent1">
  1487. <input type="checkbox" id="GPIO_IO3_enabled" value="1" onclick = 'InvertEnableItem("GPIO", "IO3")' unchecked>
  1488. <label for=GPIO_IO3_enabled><span id="GPIO_IO3_text">GPIO3 Configuration</span></label>
  1489. </td>
  1490. <td>
  1491. <select id="GPIO_IO3_value1">
  1492. <option value="input">input</option>
  1493. <option value="input-pullup">input pullup</option>
  1494. <option value="input-pulldown">input pulldown</option>
  1495. <option value="output">output</option>
  1496. </select>
  1497. </td>
  1498. <td>$TOOLTIP_GPIO_IO3</td>
  1499. </tr>
  1500. <tr class="GPIO_IO3 GPIO_item expert">
  1501. <td class="indent2">
  1502. <span class="GPIO_IO3 GPIO_item">GPIO3 Use Interrupt</span>
  1503. </td>
  1504. <td>
  1505. <select id="GPIO_IO3_value2">
  1506. <option value="disabled">disabled</option>
  1507. <option value="rising-edge" disabled>rising edge</option>
  1508. <option value="falling-edge" disabled>falling edge</option>
  1509. <option value="rising-and-falling">rising and falling</option>
  1510. <option value="low-level-trigger">low level trigger</option>
  1511. <option value="high-level-trigger">high level trigger</option>
  1512. </select>
  1513. </td>
  1514. <td class="tooltip" style="display:none;"></td>
  1515. </tr>
  1516. <tr class="GPIO_IO3 GPIO_item expert">
  1517. <td class="indent2">
  1518. <span class="GPIO_IO3 GPIO_item">GPIO3 PWM Duty Cycle Resolution</span>
  1519. </td>
  1520. <td>
  1521. <input required type="number" id="GPIO_IO3_value3" min="1" max="20"
  1522. oninput="(!validity.rangeUnderflow||(value=1)) && (!validity.rangeOverflow||(value=20)) &&
  1523. (!validity.stepMismatch||(value=parseInt(this.value)));"><span class="GPIO_IO3 GPIO_item">Bits</span>
  1524. </td>
  1525. <td class="tooltip" style="display:none;"></td>
  1526. </tr>
  1527. <tr class="GPIO_IO3 GPIO_item expert">
  1528. <td class="indent2">
  1529. <span class="GPIO_IO3 GPIO_item">GPIO3 Enable MQTT</span>
  1530. </td>
  1531. <td><input type="checkbox" id="GPIO_IO3_value4"></td>
  1532. <td class="tooltip" style="display:none;"></td>
  1533. </tr>
  1534. <tr class="GPIO_IO3 GPIO_item expert">
  1535. <td class="indent2">
  1536. <span class="GPIO_IO3 GPIO_item">GPIO3 Enable REST API</span>
  1537. </td>
  1538. <td><input type="checkbox" id="GPIO_IO3_value5"></td>
  1539. <td class="tooltip" style="display:none;"></td>
  1540. </tr>
  1541. <tr class="GPIO_IO3 GPIO_item expert">
  1542. <td class="indent2">
  1543. <span class="GPIO_IO3 GPIO_item">GPIO3 Name</span>
  1544. </td>
  1545. <td><input type="text" id="GPIO_IO3_value6"></td>
  1546. <td class="tooltip" style="display:none;"></td>
  1547. </tr>
  1548. <!------------- GPIO3 end ------------------>
  1549. <!------------- GPIO4 begin ------------------>
  1550. <tr class="GPIO_item" style="border-bottom: 0px;">
  1551. <td class="indent1">
  1552. <input type="checkbox" id="GPIO_IO4_enabled" value="1" onclick = 'InvertEnableItem("GPIO", "IO4")' checked>
  1553. <label for=GPIO_IO4_enabled><span id="GPIO_IO4_text">GPIO4 Configuration</span></label>
  1554. </td>
  1555. <td>
  1556. <select id="GPIO_IO4_value1">
  1557. <option value="input">input</option>
  1558. <option value="input-pullup">input pullup</option>
  1559. <option value="input-pulldown">input pulldown</option>
  1560. <option value="output">output</option>
  1561. <option value="built-in-led" select>built-in led flash light</option>
  1562. </select>
  1563. </td>
  1564. <td>$TOOLTIP_GPIO_IO4</td>
  1565. </tr>
  1566. <tr class="GPIO_item" style="border-top: 0px;">
  1567. <td colspan="2" style="padding-left:28px">
  1568. <b>IMPORTANT NOTE:</b><br>
  1569. If you'd like to use the built-in flash LED in parallel with other GPIO functionality,
  1570. you have to explicitely activate the "built-in LED flash light" option on GPIO4. The light
  1571. intensity control (PWM) of the LED flash light is not functional anymore (only 100%).
  1572. </td>
  1573. </tr>
  1574. <tr class="GPIO_IO4 GPIO_item expert">
  1575. <td class="indent2">
  1576. <span class="GPIO_IO4 GPIO_item">GPIO4 Use Interrupt</span>
  1577. </td>
  1578. <td>
  1579. <select id="GPIO_IO4_value2">
  1580. <option value="disabled">disabled</option>
  1581. <option value="rising-edge">rising edge</option>
  1582. <option value="falling-edge">falling edge</option>
  1583. <option value="rising-and-falling">rising and falling</option>
  1584. <option value="low-level-trigger">low level trigger</option>
  1585. <option value="high-level-trigger">high level trigger</option>
  1586. </select>
  1587. </td>
  1588. <td class="tooltip" style="display:none;"></td>
  1589. </tr>
  1590. <tr class="GPIO_IO4 GPIO_item expert">
  1591. <td class="indent2">
  1592. <span class="GPIO_IO4 GPIO_item">GPIO4 PWM Duty Cycle Resolution</span>
  1593. </td>
  1594. <td>
  1595. <input required type="number" id="GPIO_IO4_value3" min="1" max="20"
  1596. oninput="(!validity.rangeUnderflow||(value=1)) && (!validity.rangeOverflow||(value=20)) &&
  1597. (!validity.stepMismatch||(value=parseInt(this.value)));"><span class="GPIO_IO4 GPIO_item">Bits</span>
  1598. </td>
  1599. <td class="tooltip" style="display:none;"></td>
  1600. </tr>
  1601. <tr class="GPIO_IO4 GPIO_item expert">
  1602. <td class="indent2">
  1603. <span class="GPIO_IO4 GPIO_item">GPIO4 Enable MQTT</span>
  1604. </td>
  1605. <td><input type="checkbox" id="GPIO_IO4_value4"></td>
  1606. <td class="tooltip" style="display:none;"></td>
  1607. </tr>
  1608. <tr class="GPIO_IO4 GPIO_item expert">
  1609. <td class="indent2">
  1610. <span class="GPIO_IO4 GPIO_item">GPIO4 Enable REST API</span>
  1611. </td>
  1612. <td><input type="checkbox" id="GPIO_IO4_value5"></td>
  1613. <td class="tooltip" style="display:none;"></td>
  1614. </tr>
  1615. <tr class="GPIO_IO4 GPIO_item expert">
  1616. <td class="indent2">
  1617. <span class="GPIO_IO4 GPIO_item">GPIO4 Name</span>
  1618. </td>
  1619. <td><input type="text" id="GPIO_IO4_value6"></td>
  1620. <td class="tooltip" style="display:none;"></td>
  1621. </tr>
  1622. <!------------- GPIO4 end ------------------>
  1623. <!------------- GPIO12 begin ------------------>
  1624. <tr class="GPIO_item">
  1625. <td class="indent1">
  1626. <input type="checkbox" id="GPIO_IO12_enabled" value="1" onclick = 'InvertEnableItem("GPIO", "IO12")' unchecked>
  1627. <label for=GPIO_IO12_enabled><span id="GPIO_IO12_text">GPIO12 Configuration</span></label>
  1628. </td>
  1629. <td>
  1630. <select id="GPIO_IO12_value1">
  1631. <option value="input">input</option>
  1632. <option value="input-pullup">input pullup</option>
  1633. <option value="input-pulldown">input pulldown</option>
  1634. <option value="output">output</option>
  1635. <!-- <option value="output-pwm">output-pwm</option> -->
  1636. <!-- <option value="external-flash-pwm">external-flash-pwm</option> -->
  1637. <option value="external-flash-ws281x">external flash light ws281x controlled</option>
  1638. </select>
  1639. </td>
  1640. <td>$TOOLTIP_GPIO_IO12</td>
  1641. </tr>
  1642. <tr class="GPIO_IO12 GPIO_item expert">
  1643. <td class="indent2">
  1644. <span class="GPIO_IO12 GPIO_item">GPIO12 Use Interrupt</span>
  1645. </td>
  1646. <td>
  1647. <select class="GPIO_IO12 GPIO_item" id="GPIO_IO12_value2">
  1648. <option value="disabled">disabled</option>
  1649. <option value="rising-edge">rising edge</option>
  1650. <option value="falling-edge">falling edge</option>
  1651. <option value="rising-and-falling">rising and falling</option>
  1652. <option value="low-level-trigger">low level trigger</option>
  1653. <option value="high-level-trigger">high level trigger</option>
  1654. </select>
  1655. </td>
  1656. <td class="tooltip" style="display:none;"></td>
  1657. </tr>
  1658. <tr class="GPIO_IO12 GPIO_item expert">
  1659. <td class="indent2">
  1660. <span class="GPIO_IO12 GPIO_item">GPIO12 PWM Duty Cycle Resolution</span>
  1661. </td>
  1662. <td>
  1663. <input required type="number" id="GPIO_IO12_value3" min="1" max="20"
  1664. oninput="(!validity.rangeUnderflow||(value=1)) && (!validity.rangeOverflow||(value=20)) &&
  1665. (!validity.stepMismatch||(value=parseInt(this.value)));"><span class="GPIO_IO12 GPIO_item">Bits</span>
  1666. </td>
  1667. <td class="tooltip" style="display:none;"></td>
  1668. </tr>
  1669. <tr class="GPIO_IO12 GPIO_item expert">
  1670. <td class="indent2">
  1671. <span class="GPIO_IO12 GPIO_item">GPIO12 Enable MQTT</span>
  1672. </td>
  1673. <td><input type="checkbox" id="GPIO_IO12_value4"></td>
  1674. <td class="tooltip" style="display:none;"></td>
  1675. </tr>
  1676. <tr class="GPIO_IO12 GPIO_item expert">
  1677. <td class="indent2">
  1678. <span class="GPIO_IO12 GPIO_item">GPIO12 Enable REST API</span>
  1679. </td>
  1680. <td><input type="checkbox" id="GPIO_IO12_value5"></td>
  1681. <td class="tooltip" style="display:none;"></td>
  1682. </tr>
  1683. <tr class="GPIO_IO12 GPIO_item expert">
  1684. <td class="indent2">
  1685. <span class="GPIO_IO12 GPIO_item">GPIO12 Name</span>
  1686. </td>
  1687. <td><input type="text" id="GPIO_IO12_value6"></td>
  1688. <td class="tooltip" style="display:none;"></td>
  1689. </tr>
  1690. <tr class="GPIO_item">
  1691. <td class="indent1">
  1692. <span class="GPIO_IO12 GPIO_item" id="GPIO_LEDType_text">LED Type (NeoPixel)</span>
  1693. </td>
  1694. <td class="GPIO_item">
  1695. <select class="GPIO_item" id="GPIO_LEDType_value1">
  1696. <option value="WS2812" selected>WS2812</option>
  1697. <option value="WS2812B">WS2812B</option>
  1698. <option value="SK6812">SK6812</option>
  1699. <option value="WS2813">WS2813 (not tested)</option>
  1700. </select>
  1701. </td>
  1702. <td>$TOOLTIP_GPIO_LEDType</td>
  1703. </tr>
  1704. <tr class="GPIO_item">
  1705. <td class="indent1">
  1706. <span class="GPIO_item" id="GPIO_LEDNumbers_text">Numbers of LEDs</span>
  1707. </td>
  1708. <td>
  1709. <input required type="number" id="GPIO_LEDNumbers_value1" size="13" min="1"
  1710. oninput="(!validity.rangeUnderflow||(value=1)) && (!validity.stepMismatch||(value=parseInt(this.value)));">
  1711. </td>
  1712. <td>$TOOLTIP_GPIO_LEDNumbers</td>
  1713. </tr>
  1714. <tr class="GPIO_item">
  1715. <td class="indent1">
  1716. <span class="GPIO_item" id="GPIO_LEDColor_text">LED Color</span>
  1717. </td>
  1718. <td>
  1719. R <input required type="number" class="GPIO_IO12 GPIO_item" id="GPIO_LEDColor_value1"
  1720. min="0" max="255" step="1" oninput="(!validity.rangeUnderflow||(value=0)) && (!validity.rangeOverflow||(value=255)) &&
  1721. (!validity.stepMismatch||(value=parseInt(this.value)));">
  1722. </td>
  1723. <td>$TOOLTIP_GPIO_LEDColor</td>
  1724. </tr>
  1725. <tr class="GPIO_item">
  1726. <td></td>
  1727. <td>
  1728. G <input required type="number" class="GPIO_IO12 GPIO_item" id="GPIO_LEDColor_value2"
  1729. min="0" max="255" step="1" oninput="(!validity.rangeUnderflow||(value=0)) && (!validity.rangeOverflow||(value=255)) &&
  1730. (!validity.stepMismatch||(value=parseInt(this.value)));">
  1731. </td>
  1732. <td class="tooltip" style="display:none;"></td>
  1733. </tr>
  1734. <tr class="GPIO_item">
  1735. <td></td>
  1736. <td>
  1737. B <input required type="number" class="GPIO_IO12 GPIO_item" id="GPIO_LEDColor_value3"
  1738. min="0" max="255" step="1" oninput="(!validity.rangeUnderflow||(value=0)) && (!validity.rangeOverflow||(value=255)) &&
  1739. (!validity.stepMismatch||(value=parseInt(this.value)));">
  1740. </td>
  1741. <td class="tooltip" style="display:none;"></td>
  1742. </tr>
  1743. <!------------- GPIO12 end ------------------>
  1744. <!------------- GPIO13 begin ------------------>
  1745. <tr class="GPIO_IO13 GPIO_item expert">
  1746. <td class="indent1">
  1747. <input type="checkbox" id="GPIO_IO13_enabled" value="1" onclick = 'InvertEnableItem("GPIO", "IO13")' unchecked>
  1748. <label for=GPIO_IO13_enabled><span id="GPIO_IO13_text">GPIO13 Configuration</span></label>
  1749. </td>
  1750. <td>
  1751. <select id="GPIO_IO13_value1">
  1752. <option value="input">input</option>
  1753. <option value="input-pullup">input pullup</option>
  1754. <option value="input-pulldown">input pulldown</option>
  1755. <option value="output">output</option>
  1756. </select>
  1757. </td>
  1758. <td>$TOOLTIP_GPIO_IO13</td>
  1759. </tr>
  1760. <tr class="GPIO_IO13 GPIO_item expert">
  1761. <td class="indent2">
  1762. <span class="GPIO_IO13 GPIO_item">GPIO13 Use Interrupt</span>
  1763. </td>
  1764. <td>
  1765. <select id="GPIO_IO13_value2">
  1766. <option value="disabled">disabled</option>
  1767. <option value="rising-edge" disabled>rising edge</option>
  1768. <option value="falling-edge" disabled>falling edge</option>
  1769. <option value="rising-and-falling">rising and falling</option>
  1770. <option value="low-level-trigger">low level trigger</option>
  1771. <option value="high-level-trigger">high level trigger</option>
  1772. </select>
  1773. </td>
  1774. <td class="tooltip" style="display:none;"></td>
  1775. </tr>
  1776. <tr class="GPIO_IO13 GPIO_item expert">
  1777. <td class="indent2">
  1778. <span class="GPIO_IO13 GPIO_item">GPIO13 PWM Duty Cycle Resolution</span>
  1779. </td>
  1780. <td>
  1781. <input required type="number" id="GPIO_IO13_value3" min="1" max="20"
  1782. oninput="(!validity.rangeUnderflow||(value=1)) && (!validity.rangeOverflow||(value=20)) &&
  1783. (!validity.stepMismatch||(value=parseInt(this.value)));"><span class="GPIO_IO13 GPIO_item">Bits</span>
  1784. </td>
  1785. <td class="tooltip" style="display:none;"></td>
  1786. </tr>
  1787. <tr class="GPIO_IO13 GPIO_item expert">
  1788. <td class="indent2">
  1789. <span class="GPIO_IO13 GPIO_item">GPIO13 Enable MQTT</span>
  1790. </td>
  1791. <td><input type="checkbox" id="GPIO_IO13_value4"></td>
  1792. <td class="tooltip" style="display:none;"></td>
  1793. </tr>
  1794. <tr class="GPIO_IO13 GPIO_item expert">
  1795. <td class="indent2">
  1796. <span class="GPIO_IO13 GPIO_item">GPIO13 Enable REST API</span>
  1797. </td>
  1798. <td><input type="checkbox" id="GPIO_IO13_value5"></td>
  1799. <td class="tooltip" style="display:none;"></td>
  1800. </tr>
  1801. <tr class="GPIO_IO13 GPIO_item expert">
  1802. <td class="indent2">
  1803. <span class="GPIO_IO13 GPIO_item">GPIO13 Name</span>
  1804. </td>
  1805. <td><input type="text" id="GPIO_IO13_value6"></td>
  1806. <td class="tooltip" style="display:none;"></td>
  1807. </tr>
  1808. <!------------- GPIO13 end ------------------>
  1809. <!------------- Autotimer ------------------>
  1810. <tr style="border-bottom: 2px solid lightgray;">
  1811. <td colspan="3" style="padding-left: 0px; padding-bottom: 3px;"><h4>Auto Timer</h4></td>
  1812. </tr>
  1813. <!--
  1814. <tr class="expert">
  1815. <td class="indent1">
  1816. <class id="AutoTimer_AutoStart_text" style="color:black;">Automatic Round Start</class>
  1817. </td>
  1818. <td>
  1819. <select id="AutoTimer_AutoStart_value1">
  1820. <option value="true">enabled (true)</option>
  1821. <option value="false" selected>disabled (false)</option>
  1822. </select>
  1823. </td>
  1824. <td>$TOOLTIP_AutoTimer_AutoStart</td>
  1825. </tr>
  1826. -->
  1827. <tr>
  1828. <td class="indent1">
  1829. <class id="AutoTimer_Interval_text" style="color:black;">Round Interval</class>
  1830. </td>
  1831. <td>
  1832. <input required type="number" id="AutoTimer_Interval_value1" size="13" min="1" step="any"
  1833. oninput="(!validity.rangeUnderflow||(value=1));">Minutes
  1834. </td>
  1835. <td>$TOOLTIP_AutoTimer_Interval</td>
  1836. </tr>
  1837. <!------------- Data Logging ------------------>
  1838. <tr style="border-bottom: 2px solid lightgray;">
  1839. <td colspan="3" style="padding-left: 0px; padding-bottom: 3px;"><h4>Data Logging</h4></td>
  1840. </tr>
  1841. <tr>
  1842. <td class="indent1">
  1843. <class id="DataLogging_DataLogActive_text" style="color:black;">Data Logging</class>
  1844. </td>
  1845. <td>
  1846. <select id="DataLogging_DataLogActive_value1">
  1847. <option value="true">enabled (true)</option>
  1848. <option value="false" selected>disabled (false)</option>
  1849. </select>
  1850. </td>
  1851. <td>$TOOLTIP_DataLogging_DataLogActive</td>
  1852. </tr>
  1853. <tr>
  1854. <td class="indent1">
  1855. <class id="DataLogging_DataFilesRetention_text" style="color:black;">Data Files Retention</class>
  1856. </td>
  1857. <td>
  1858. <input required type="number" id="DataLogging_DataFilesRetention_value1" size="13" min="0" step="1"
  1859. oninput="(!validity.rangeUnderflow||(value=0)) && (!validity.stepMismatch||(value=parseInt(this.value)));">Days
  1860. </td>
  1861. <td>$TOOLTIP_DataLogging_DataFilesRetention</td>
  1862. </tr>
  1863. <!------------- Debug Logging ------------------>
  1864. <tr style="border-bottom: 2px solid lightgray;">
  1865. <td colspan="3" style="padding-left: 0px; padding-bottom: 3px;"><h4>Debug</h4></td>
  1866. </tr>
  1867. <tr>
  1868. <td class="indent1">
  1869. <class id="Debug_LogLevel_text" style="color:black;">Logfile Log Level</class>
  1870. </td>
  1871. <td>
  1872. <select id="Debug_LogLevel_value1">
  1873. <option value="1" selected>ERROR</option> <!-- matches esp_log_level_t -->
  1874. <option value="2">WARNING</option>
  1875. <option value="3">INFO</option>
  1876. <option value="4">DEBUG</option>
  1877. </select>
  1878. </td>
  1879. <td>$TOOLTIP_Debug_LogLevel</td>
  1880. </tr>
  1881. <tr>
  1882. <td class="indent1">
  1883. <class id="Debug_LogfilesRetention_text" style="color:black;">Logfiles Retention</class>
  1884. </td>
  1885. <td>
  1886. <input required type="number" id="Debug_LogfilesRetention_value1" size="13" min="0" step="1"
  1887. oninput="(!validity.rangeUnderflow||(value=0)) && (!validity.stepMismatch||(value=parseInt(this.value)));">Days
  1888. </td>
  1889. <td>$TOOLTIP_Debug_LogfilesRetention</td>
  1890. </tr>
  1891. <!------------- System ------------------>
  1892. <tr style="border-bottom: 2px solid lightgray;">
  1893. <td colspan="3" style="padding-left: 0px; padding-bottom: 3px;"><h4>System</h4></td>
  1894. </tr>
  1895. <tr>
  1896. <td class="indent1">
  1897. <input type="checkbox" id="System_TimeZone_enabled" value="1" onclick = 'InvertEnableItem("System", "TimeZone")' unchecked >
  1898. <label for=System_TimeZone_enabled><class id="System_TimeZone_text" style="color:black;">Time Zone</class></label>
  1899. <p></p><p></p>
  1900. </td>
  1901. <td>
  1902. <input type="text" id="System_TimeZone_value1">
  1903. <p>Use <a href="timezones.html" target="_blank">timezones</a> to find your settings</p>
  1904. </td>
  1905. <td>$TOOLTIP_System_TimeZone</td>
  1906. </tr>
  1907. <tr class="expert">
  1908. <td class="indent1">
  1909. <input type="checkbox" id="System_TimeServer_enabled" value="1" onclick = 'InvertEnableItem("System", "TimeServer")' unchecked >
  1910. <label for=System_TimeServer_enabled><class id="System_TimeServer_text" style="color:black;">Time Server (NTP)</class></label>
  1911. </td>
  1912. <td>
  1913. <input type="text" id="System_TimeServer_value1">
  1914. </td>
  1915. <td>$TOOLTIP_System_TimeServer</td>
  1916. </tr>
  1917. <tr class="expert">
  1918. <td class="indent1">
  1919. <input type="checkbox" id="System_Hostname_enabled" value="1" onclick = 'InvertEnableItem("System", "Hostname")' unchecked >
  1920. <label for=System_Hostname_enabled><class id="System_Hostname_text" style="color:black;">Hostname</class></label>
  1921. </td>
  1922. <td>
  1923. <input type="text" id="System_Hostname_value1">
  1924. </td>
  1925. <td>$TOOLTIP_System_Hostname</td>
  1926. </tr>
  1927. <tr class="expert">
  1928. <td class="indent1">
  1929. <input type="checkbox" id="System_RSSIThreshold_enabled" value="1" onclick = 'InvertEnableItem("System", "RSSIThreshold")' unchecked >
  1930. <label for=System_RSSIThreshold_enabled><class id="System_RSSIThreshold_text" style="color:black;">RSSI Threshold</class></label>
  1931. </td>
  1932. <td>
  1933. <input required type="number" id="System_RSSIThreshold_value1" min="-100" max="0" step="1"
  1934. oninput="(!validity.rangeUnderflow||(value=-100)) && (!validity.rangeOverflow||(value=0)) &&
  1935. (!validity.stepMismatch||(value=parseInt(this.value)));">dBm
  1936. </td>
  1937. <td>$TOOLTIP_System_RSSIThreshold</td>
  1938. </tr>
  1939. <tr class="expert">
  1940. <td class="indent1">
  1941. <input type="checkbox" id="System_CPUFrequency_enabled" value="1" onclick = 'InvertEnableItem("System", "CPUFrequency")' unchecked >
  1942. <label for=System_CPUFrequency_enabled><class id="System_CPUFrequency_text" style="color:black;">CPU Frequency</class></label>
  1943. </td>
  1944. <td>
  1945. <select id="System_CPUFrequency_value1">
  1946. <option value="160" selected>160 MHz</option>
  1947. <option value="240">240 MHz</option>
  1948. </select>
  1949. </td>
  1950. <td>$TOOLTIP_System_CPUFrequency</td>
  1951. </tr>
  1952. <tr>
  1953. <td class="indent1">
  1954. <class id="System_Tooltip_text" style="color:black;">Tooltip</class>
  1955. </td>
  1956. <td>
  1957. <select id="System_Tooltip_value1" onchange="UpdateTooltipModus()">
  1958. <option value="true">enabled (true)</option>
  1959. <option value="false" selected>disabled (false)</option>
  1960. </select>
  1961. </td>
  1962. <td class="tooltip" style="display:none;"></td>
  1963. </tr>
  1964. </table>
  1965. <hr>
  1966. <button class="button" onclick="saveTextAsFile()">Save Config</button>
  1967. </div>
  1968. <script type="text/javascript">
  1969. var canvas = document.getElementById('canvas'),
  1970. domainname = getDomainname(),
  1971. changeCamValue = 0,
  1972. param,
  1973. category,
  1974. NUNBERSAkt = -1,
  1975. NUMBERS;
  1976. function cameraParameterChanged() {
  1977. changeCamValue = 1;
  1978. if(!document.getElementById("TakeImage_CamZoom_value1").selectedIndex) {
  1979. // EnDisableItem(_status, _param, _category, _cat, _name, _optional, _number = -1)
  1980. EnDisableItem(true, param, category, "TakeImage", "CamZoomOffsetX", false);
  1981. EnDisableItem(true, param, category, "TakeImage", "CamZoomOffsetY", false);
  1982. EnDisableItem(true, param, category, "TakeImage", "CamZoomSize", false);
  1983. }
  1984. else {
  1985. EnDisableItem(false, param, category, "TakeImage", "CamZoomOffsetX", false);
  1986. EnDisableItem(false, param, category, "TakeImage", "CamZoomOffsetY", false);
  1987. EnDisableItem(false, param, category, "TakeImage", "CamZoomSize", false);
  1988. }
  1989. if(document.getElementById("TakeImage_CamAutoSharpness_value1").selectedIndex) {
  1990. EnDisableItem(true, param, category, "TakeImage", "CamSharpness", false);
  1991. }
  1992. else {
  1993. EnDisableItem(false, param, category, "TakeImage", "CamSharpness", false);
  1994. }
  1995. }
  1996. function LoadConfigNeu() {
  1997. if (!loadConfig(domainname)) {
  1998. firework.launch('Configuration could not be loaded! Please reload the page!', 'danger', 30000);
  1999. return;
  2000. }
  2001. param = getCamConfig();
  2002. category = getConfigCategory();
  2003. InitIndivParameter();
  2004. UpdateInput();
  2005. var sel = document.getElementById("Numbers_value1");
  2006. UpdateInputIndividual(sel);
  2007. UpdateExpertModus();
  2008. UpdateTooltipModus();
  2009. document.getElementById("divall").style.display = '';
  2010. if(!document.getElementById("TakeImage_CamZoom_value1").selectedIndex) {
  2011. // EnDisableItem(_status, _param, _category, _cat, _name, _optional, _number = -1)
  2012. EnDisableItem(true, param, category, "TakeImage", "CamZoomOffsetX", false);
  2013. EnDisableItem(true, param, category, "TakeImage", "CamZoomOffsetY", false);
  2014. EnDisableItem(true, param, category, "TakeImage", "CamZoomSize", false);
  2015. }
  2016. else {
  2017. EnDisableItem(false, param, category, "TakeImage", "CamZoomOffsetX", false);
  2018. EnDisableItem(false, param, category, "TakeImage", "CamZoomOffsetY", false);
  2019. EnDisableItem(false, param, category, "TakeImage", "CamZoomSize", false);
  2020. }
  2021. if(document.getElementById("TakeImage_CamAutoSharpness_value1").selectedIndex) {
  2022. EnDisableItem(true, param, category, "TakeImage", "CamSharpness", false);
  2023. }
  2024. else {
  2025. EnDisableItem(false, param, category, "TakeImage", "CamSharpness", false);
  2026. }
  2027. }
  2028. function InitIndivParameter() {
  2029. NUMBERS = getNUMBERInfo();
  2030. var _index = document.getElementById("Numbers_value1");
  2031. while (_index.length) {
  2032. _index.remove(0);
  2033. }
  2034. var _indexInflux = document.getElementById("NumbersInfluxDBv2_value1");
  2035. while (_indexInflux.length) {
  2036. _indexInflux.remove(0);
  2037. }
  2038. var _indexInfluxv1 = document.getElementById("NumbersInfluxDB_value1");
  2039. while (_indexInfluxv1.length) {
  2040. _indexInfluxv1.remove(0);
  2041. }
  2042. var _indexMQTTIdx = document.getElementById("NumbersMQTTIdx_value1");
  2043. while (_indexMQTTIdx.length) {
  2044. _indexMQTTIdx.remove(0);
  2045. }
  2046. for (var i = 0; i < NUMBERS.length; ++i) {
  2047. var option = document.createElement("option");
  2048. option.text = NUMBERS[i]["name"];
  2049. option.value = i;
  2050. _index.add(option);
  2051. var optionInflux = document.createElement("option");
  2052. optionInflux.text = NUMBERS[i]["name"];
  2053. optionInflux.value = i;
  2054. _indexInflux.add(optionInflux);
  2055. var optionInfluxv1 = document.createElement("option");
  2056. optionInfluxv1.text = NUMBERS[i]["name"];
  2057. optionInfluxv1.value = i;
  2058. _indexInfluxv1.add(optionInfluxv1);
  2059. var optionMQTTIdx = document.createElement("option");
  2060. optionMQTTIdx.text = NUMBERS[i]["name"];
  2061. optionMQTTIdx.value = i;
  2062. _indexMQTTIdx.add(optionMQTTIdx);
  2063. }
  2064. _index.selectedIndex = 0;
  2065. _indexInflux.selectedIndex = 0;
  2066. _indexInfluxv1.selectedIndex = 0;
  2067. _indexMQTTIdx.selectedIndex = 0;
  2068. }
  2069. function UpdateInputIndividual(sel) {
  2070. if (NUNBERSAkt != -1) {
  2071. // ReadParameter(param, "PostProcessing", "PreValueUse", false, NUNBERSAkt);
  2072. ReadParameter(param, "PostProcessing", "DecimalShift", true, NUNBERSAkt);
  2073. ReadParameter(param, "PostProcessing", "AnalogToDigitTransitionStart", true, NUNBERSAkt);
  2074. ReadParameter(param, "PostProcessing", "ChangeRateThreshold", true, NUNBERSAkt);
  2075. ReadParameter(param, "PostProcessing", "MaxFlowRate", true, NUNBERSAkt);
  2076. ReadParameter(param, "PostProcessing", "MaxRateValue", true, NUNBERSAkt);
  2077. ReadParameter(param, "PostProcessing", "MaxRateType", true, NUNBERSAkt);
  2078. ReadParameter(param, "PostProcessing", "ExtendedResolution", false, NUNBERSAkt);
  2079. ReadParameter(param, "PostProcessing", "IgnoreLeadingNaN", false, NUNBERSAkt);
  2080. ReadParameter(param, "PostProcessing", "AllowNegativeRates", false, NUNBERSAkt);
  2081. ReadParameter(param, "InfluxDB", "Field", true, NUNBERSAkt);
  2082. ReadParameter(param, "InfluxDBv2", "Field", true, NUNBERSAkt);
  2083. ReadParameter(param, "InfluxDB", "Measurement", true, NUNBERSAkt);
  2084. ReadParameter(param, "InfluxDBv2", "Measurement", true, NUNBERSAkt);
  2085. ReadParameter(param, "MQTT", "DomoticzIDX", true, NUNBERSAkt);
  2086. }
  2087. // var sel = document.getElementById("Numbers_value1");
  2088. NUNBERSAkt = sel.selectedIndex;
  2089. // WriteParameter(param, category, "PostProcessing", "PreValueUse", false, NUNBERSAkt);
  2090. WriteParameter(param, category, "PostProcessing", "DecimalShift", true, NUNBERSAkt);
  2091. WriteParameter(param, category, "PostProcessing", "AnalogToDigitTransitionStart", true, NUNBERSAkt);
  2092. WriteParameter(param, category, "PostProcessing", "ChangeRateThreshold", true, NUNBERSAkt);
  2093. WriteParameter(param, category, "PostProcessing", "MaxFlowRate", true, NUNBERSAkt);
  2094. WriteParameter(param, category, "PostProcessing", "MaxRateValue", true, NUNBERSAkt);
  2095. WriteParameter(param, category, "PostProcessing", "MaxRateType", true, NUNBERSAkt);
  2096. WriteParameter(param, category, "PostProcessing", "ExtendedResolution", false, NUNBERSAkt);
  2097. WriteParameter(param, category, "PostProcessing", "IgnoreLeadingNaN", false, NUNBERSAkt);
  2098. WriteParameter(param, category, "PostProcessing", "AllowNegativeRates", false, NUNBERSAkt);
  2099. WriteParameter(param, category, "InfluxDB", "Field", true, NUNBERSAkt);
  2100. WriteParameter(param, category, "InfluxDBv2", "Field", true, NUNBERSAkt);
  2101. WriteParameter(param, category, "InfluxDB", "Measurement", true, NUNBERSAkt);
  2102. WriteParameter(param, category, "InfluxDBv2", "Measurement", true, NUNBERSAkt);
  2103. WriteParameter(param, category, "MQTT", "DomoticzIDX", true, NUNBERSAkt);
  2104. }
  2105. function UpdateInput() {
  2106. document.getElementById("Category_Digits_enabled").checked = category["Digits"]["enabled"];
  2107. setVisible("DigitItem", category["Digits"]["enabled"]);
  2108. document.getElementById("Category_Analog_enabled").checked = category["Analog"]["enabled"];
  2109. setVisible("AnalogItem", category["Analog"]["enabled"]);
  2110. document.getElementById("Category_MQTT_enabled").checked = category["MQTT"]["enabled"];
  2111. setVisible("MQTTItem", category["MQTT"]["enabled"]);
  2112. document.getElementById("Category_GPIO_enabled").checked = category["GPIO"]["enabled"];
  2113. setVisible("GPIO_item", category["GPIO"]["enabled"]);
  2114. document.getElementById("Category_InfluxDB_enabled").checked = category["InfluxDB"]["enabled"];
  2115. setVisible("InfluxDBv1Item", category["InfluxDB"]["enabled"]);
  2116. document.getElementById("Category_InfluxDBv2_enabled").checked = category["InfluxDBv2"]["enabled"];
  2117. setVisible("InfluxDBv2Item", category["InfluxDBv2"]["enabled"]);
  2118. document.getElementById("Category_Webhook_enabled").checked = category["Webhook"]["enabled"];
  2119. setVisible("WebhookItem", category["Webhook"]["enabled"]);
  2120. WriteParameter(param, category, "TakeImage", "RawImagesLocation", true);
  2121. WriteParameter(param, category, "TakeImage", "RawImagesRetention", true);
  2122. WriteParameter(param, category, "TakeImage", "SaveAllFiles", false);
  2123. WriteParameter(param, category, "TakeImage", "WaitBeforeTakingPicture", false);
  2124. WriteParameter(param, category, "TakeImage", "CamGainceiling", false);
  2125. WriteParameter(param, category, "TakeImage", "CamXclkFreqMhz", false);
  2126. WriteParameter(param, category, "TakeImage", "CamQuality", false);
  2127. WriteParameter(param, category, "TakeImage", "CamBrightness", false);
  2128. WriteParameter(param, category, "TakeImage", "CamContrast", false);
  2129. WriteParameter(param, category, "TakeImage", "CamSaturation", false);
  2130. WriteParameter(param, category, "TakeImage", "CamSharpness", false);
  2131. WriteParameter(param, category, "TakeImage", "CamAutoSharpness", false);
  2132. WriteParameter(param, category, "TakeImage", "CamSpecialEffect", false);
  2133. WriteParameter(param, category, "TakeImage", "CamWbMode", false);
  2134. WriteParameter(param, category, "TakeImage", "CamAwb", false);
  2135. WriteParameter(param, category, "TakeImage", "CamAwbGain", false);
  2136. WriteParameter(param, category, "TakeImage", "CamAec", false);
  2137. WriteParameter(param, category, "TakeImage", "CamAec2", false);
  2138. WriteParameter(param, category, "TakeImage", "CamAeLevel", false);
  2139. WriteParameter(param, category, "TakeImage", "CamAecValue", false);
  2140. WriteParameter(param, category, "TakeImage", "CamAgc", false);
  2141. WriteParameter(param, category, "TakeImage", "CamAgcGain", false);
  2142. WriteParameter(param, category, "TakeImage", "CamBpc", false);
  2143. WriteParameter(param, category, "TakeImage", "CamWpc", false);
  2144. WriteParameter(param, category, "TakeImage", "CamRawGma", false);
  2145. WriteParameter(param, category, "TakeImage", "CamLenc", false);
  2146. WriteParameter(param, category, "TakeImage", "CamHmirror", false);
  2147. WriteParameter(param, category, "TakeImage", "CamVflip", false);
  2148. WriteParameter(param, category, "TakeImage", "CamDcw", false);
  2149. WriteParameter(param, category, "TakeImage", "CamDenoise", false);
  2150. WriteParameter(param, category, "TakeImage", "CamZoom", false);
  2151. WriteParameter(param, category, "TakeImage", "CamZoomOffsetX", false);
  2152. WriteParameter(param, category, "TakeImage", "CamZoomOffsetY", false);
  2153. WriteParameter(param, category, "TakeImage", "CamZoomSize", false);
  2154. WriteParameter(param, category, "TakeImage", "LEDIntensity", false);
  2155. WriteParameter(param, category, "TakeImage", "Demo", false);
  2156. WriteParameter(param, category, "Alignment", "SearchFieldX", false);
  2157. WriteParameter(param, category, "Alignment", "SearchFieldY", false);
  2158. WriteParameter(param, category, "Alignment", "SearchMaxAngle", false);
  2159. WriteParameter(param, category, "Alignment", "Antialiasing", false);
  2160. WriteParameter(param, category, "Alignment", "AlignmentAlgo", true);
  2161. WriteParameter(param, category, "Alignment", "InitialRotate", false);
  2162. WriteParameter(param, category, "Digits", "CNNGoodThreshold", true);
  2163. WriteParameter(param, category, "Digits", "ROIImagesLocation", true);
  2164. WriteParameter(param, category, "Digits", "ROIImagesRetention", true);
  2165. WriteParameter(param, category, "Analog", "ROIImagesLocation", true);
  2166. WriteParameter(param, category, "Analog", "ROIImagesRetention", true);
  2167. WriteParameter(param, category, "PostProcessing", "PreValueUse", false);
  2168. WriteParameter(param, category, "PostProcessing", "PreValueAgeStartup", true);
  2169. WriteParameter(param, category, "PostProcessing", "SkipErrorMessage", false);
  2170. WriteParameter(param, category, "MQTT", "Uri", true);
  2171. WriteParameter(param, category, "MQTT", "MainTopic", true);
  2172. WriteParameter(param, category, "MQTT", "ClientID", true);
  2173. WriteParameter(param, category, "MQTT", "user", true);
  2174. WriteParameter(param, category, "MQTT", "password", true);
  2175. WriteParameter(param, category, "MQTT", "RetainMessages", false);
  2176. WriteParameter(param, category, "MQTT", "HomeassistantDiscovery", false);
  2177. WriteParameter(param, category, "MQTT", "DiscoveryPrefix", true);
  2178. WriteParameter(param, category, "MQTT", "MeterType", true);
  2179. WriteParameter(param, category, "MQTT", "CACert", true);
  2180. WriteParameter(param, category, "MQTT", "ClientCert", true);
  2181. WriteParameter(param, category, "MQTT", "ClientKey", true);
  2182. WriteParameter(param, category, "MQTT", "ValidateServerCert", true);
  2183. WriteParameter(param, category, "MQTT", "DomoticzTopicIn", true);
  2184. WriteParameter(param, category, "InfluxDB", "Uri", true);
  2185. WriteParameter(param, category, "InfluxDB", "Database", true);
  2186. // WriteParameter(param, category, "InfluxDB", "Measurement", true);
  2187. WriteParameter(param, category, "InfluxDB", "user", true);
  2188. WriteParameter(param, category, "InfluxDB", "password", true);
  2189. // WriteParameter(param, category, "InfluxDB", "Field", true);
  2190. WriteParameter(param, category, "InfluxDBv2", "Uri", true);
  2191. WriteParameter(param, category, "InfluxDBv2", "Bucket", true);
  2192. // WriteParameter(param, category, "InfluxDBv2", "Measurement", true);
  2193. WriteParameter(param, category, "InfluxDBv2", "Org", true);
  2194. WriteParameter(param, category, "InfluxDBv2", "Token", true);
  2195. // WriteParameter(param, category, "InfluxDBv2", "Field", true);
  2196. WriteParameter(param, category, "Webhook", "Uri", true);
  2197. WriteParameter(param, category, "Webhook", "ApiKey", true);
  2198. WriteParameter(param, category, "Webhook", "UploadImg", true);
  2199. WriteParameter(param, category, "GPIO", "IO0", true);
  2200. WriteParameter(param, category, "GPIO", "IO1", true);
  2201. WriteParameter(param, category, "GPIO", "IO3", true);
  2202. WriteParameter(param, category, "GPIO", "IO4", true);
  2203. WriteParameter(param, category, "GPIO", "IO12", true);
  2204. WriteParameter(param, category, "GPIO", "IO13", true);
  2205. WriteParameter(param, category, "GPIO", "LEDType", false);
  2206. WriteParameter(param, category, "GPIO", "LEDNumbers", false);
  2207. WriteParameter(param, category, "GPIO", "LEDColor", false);
  2208. //WriteParameter(param, category, "AutoTimer", "AutoStart", false);
  2209. WriteParameter(param, category, "AutoTimer", "Interval", false);
  2210. WriteParameter(param, category, "DataLogging", "DataLogActive", false);
  2211. WriteParameter(param, category, "DataLogging", "DataFilesRetention", false);
  2212. WriteParameter(param, category, "Debug", "LogLevel", false);
  2213. WriteParameter(param, category, "Debug", "LogfilesRetention", false);
  2214. WriteParameter(param, category, "System", "Tooltip", false);
  2215. WriteParameter(param, category, "System", "TimeZone", true);
  2216. WriteParameter(param, category, "System", "Hostname", true);
  2217. WriteParameter(param, category, "System", "TimeServer", true);
  2218. WriteParameter(param, category, "System", "RSSIThreshold", true);
  2219. WriteParameter(param, category, "System", "CPUFrequency", true);
  2220. WriteModelFiles();
  2221. }
  2222. function WriteModelFiles() {
  2223. list_tflite = getTFLITEList();
  2224. var _indexDig = document.getElementById("Digits_Model_value1");
  2225. var _indexAna = document.getElementById("Analog_Model_value1");
  2226. while (_indexDig.length) {
  2227. _indexDig.remove(0);
  2228. }
  2229. while (_indexAna.length) {
  2230. _indexAna.remove(0);
  2231. }
  2232. for (var i = 0; i < list_tflite.length; ++i) {
  2233. var optionDig = document.createElement("option");
  2234. var optionAna = document.createElement("option");
  2235. var text = list_tflite[i].replace("/config/", "");
  2236. if (list_tflite[i].includes("/dig")) { // Its a digit file, only show in the digits list box
  2237. optionDig.text = text;
  2238. optionDig.value = list_tflite[i];
  2239. _indexDig.add(optionDig);
  2240. }
  2241. else if (list_tflite[i].includes("/ana")) { // Its a digit file, only show in the analog list box
  2242. optionAna.text = text;
  2243. optionAna.value = list_tflite[i];
  2244. _indexAna.add(optionAna);
  2245. }
  2246. else { // all other files, show in both list boxes
  2247. optionDig.text = text;
  2248. optionDig.value = list_tflite[i];
  2249. _indexDig.add(optionDig);
  2250. optionAna.text = text;
  2251. optionAna.value = list_tflite[i];
  2252. _indexAna.add(optionAna);
  2253. }
  2254. }
  2255. WriteParameter(param, category, "Analog", "Model", false);
  2256. WriteParameter(param, category, "Digits", "Model", false);
  2257. }
  2258. function ReadParameterAll() {
  2259. category["Analog"]["enabled"] = document.getElementById("Category_Analog_enabled").checked;
  2260. category["Digits"]["enabled"] = document.getElementById("Category_Digits_enabled").checked;
  2261. category["MQTT"]["enabled"] = document.getElementById("Category_MQTT_enabled").checked;
  2262. category["InfluxDB"]["enabled"] = document.getElementById("Category_InfluxDB_enabled").checked;
  2263. category["InfluxDBv2"]["enabled"] = document.getElementById("Category_InfluxDBv2_enabled").checked;
  2264. category["Webhook"]["enabled"] = document.getElementById("Category_Webhook_enabled").checked;
  2265. category["GPIO"]["enabled"] = document.getElementById("Category_GPIO_enabled").checked;
  2266. ReadParameter(param, "TakeImage", "RawImagesLocation", true);
  2267. ReadParameter(param, "TakeImage", "RawImagesRetention", true);
  2268. ReadParameter(param, "TakeImage", "SaveAllFiles", false);
  2269. ReadParameter(param, "TakeImage", "WaitBeforeTakingPicture", false);
  2270. ReadParameter(param, "TakeImage", "CamXclkFreqMhz", false);
  2271. ReadParameter(param, "TakeImage", "CamGainceiling", false);
  2272. ReadParameter(param, "TakeImage", "CamQuality", false);
  2273. ReadParameter(param, "TakeImage", "CamBrightness", false);
  2274. ReadParameter(param, "TakeImage", "CamContrast", false);
  2275. ReadParameter(param, "TakeImage", "CamSaturation", false);
  2276. ReadParameter(param, "TakeImage", "CamSharpness", false);
  2277. ReadParameter(param, "TakeImage", "CamAutoSharpness", false);
  2278. ReadParameter(param, "TakeImage", "CamSpecialEffect", false);
  2279. ReadParameter(param, "TakeImage", "CamWbMode", false);
  2280. ReadParameter(param, "TakeImage", "CamAwb", false);
  2281. ReadParameter(param, "TakeImage", "CamAwbGain", false);
  2282. ReadParameter(param, "TakeImage", "CamAec", false);
  2283. ReadParameter(param, "TakeImage", "CamAec2", false);
  2284. ReadParameter(param, "TakeImage", "CamAeLevel", false);
  2285. ReadParameter(param, "TakeImage", "CamAecValue", false);
  2286. ReadParameter(param, "TakeImage", "CamAgc", false);
  2287. ReadParameter(param, "TakeImage", "CamAgcGain", false);
  2288. ReadParameter(param, "TakeImage", "CamBpc", false);
  2289. ReadParameter(param, "TakeImage", "CamWpc", false);
  2290. ReadParameter(param, "TakeImage", "CamRawGma", false);
  2291. ReadParameter(param, "TakeImage", "CamLenc", false);
  2292. ReadParameter(param, "TakeImage", "CamHmirror", false);
  2293. ReadParameter(param, "TakeImage", "CamVflip", false);
  2294. ReadParameter(param, "TakeImage", "CamDcw", false);
  2295. ReadParameter(param, "TakeImage", "CamDenoise", false);
  2296. ReadParameter(param, "TakeImage", "CamZoom", false);
  2297. ReadParameter(param, "TakeImage", "CamZoomOffsetX", false);
  2298. ReadParameter(param, "TakeImage", "CamZoomOffsetY", false);
  2299. ReadParameter(param, "TakeImage", "CamZoomSize", false);
  2300. ReadParameter(param, "TakeImage", "LEDIntensity", false);
  2301. ReadParameter(param, "TakeImage", "Demo", false);
  2302. ReadParameter(param, "Alignment", "SearchFieldX", false);
  2303. ReadParameter(param, "Alignment", "SearchFieldY", false);
  2304. ReadParameter(param, "Alignment", "SearchMaxAngle", false);
  2305. ReadParameter(param, "Alignment", "Antialiasing", false);
  2306. ReadParameter(param, "Alignment", "AlignmentAlgo", true);
  2307. ReadParameter(param, "Alignment", "InitialRotate", false);
  2308. ReadParameter(param, "Digits", "Model", false);
  2309. ReadParameter(param, "Digits", "CNNGoodThreshold", true);
  2310. ReadParameter(param, "Digits", "ROIImagesLocation", true);
  2311. ReadParameter(param, "Digits", "ROIImagesRetention", true);
  2312. ReadParameter(param, "Analog", "Model", false);
  2313. ReadParameter(param, "Analog", "ROIImagesLocation", true);
  2314. ReadParameter(param, "Analog", "ROIImagesRetention", true);
  2315. ReadParameter(param, "PostProcessing", "PreValueUse", false);
  2316. ReadParameter(param, "PostProcessing", "PreValueAgeStartup", true);
  2317. ReadParameter(param, "PostProcessing", "SkipErrorMessage", false);
  2318. ReadParameter(param, "MQTT", "Uri", true);
  2319. ReadParameter(param, "MQTT", "MainTopic", true);
  2320. ReadParameter(param, "MQTT", "ClientID", true);
  2321. ReadParameter(param, "MQTT", "user", true);
  2322. ReadParameter(param, "MQTT", "password", true);
  2323. ReadParameter(param, "MQTT", "RetainMessages", false);
  2324. ReadParameter(param, "MQTT", "HomeassistantDiscovery", false);
  2325. ReadParameter(param, "MQTT", "DiscoveryPrefix", true);
  2326. ReadParameter(param, "MQTT", "MeterType", true);
  2327. ReadParameter(param, "MQTT", "CACert", true);
  2328. ReadParameter(param, "MQTT", "ClientCert", true);
  2329. ReadParameter(param, "MQTT", "ClientKey", true);
  2330. ReadParameter(param, "MQTT", "ValidateServerCert", true);
  2331. ReadParameter(param, "MQTT", "DomoticzTopicIn", true);
  2332. ReadParameter(param, "InfluxDB", "Uri", true);
  2333. ReadParameter(param, "InfluxDB", "Database", true);
  2334. // ReadParameter(param, "InfluxDB", "Measurement", true);
  2335. ReadParameter(param, "InfluxDB", "user", true);
  2336. ReadParameter(param, "InfluxDB", "password", true);
  2337. // ReadParameter(param, "InfluxDB", "Field", true);
  2338. ReadParameter(param, "InfluxDBv2", "Uri", true);
  2339. ReadParameter(param, "InfluxDBv2", "Bucket", true);
  2340. // ReadParameter(param, "InfluxDBv2", "Measurement", true);
  2341. ReadParameter(param, "InfluxDBv2", "Org", true);
  2342. ReadParameter(param, "InfluxDBv2", "Token", true);
  2343. // ReadParameter(param, "InfluxDBv2", "Field", true);
  2344. ReadParameter(param, "Webhook", "Uri", true);
  2345. ReadParameter(param, "Webhook", "ApiKey", true);
  2346. ReadParameter(param, "Webhook", "UploadImg", true);
  2347. ReadParameter(param, "GPIO", "IO0", true);
  2348. ReadParameter(param, "GPIO", "IO1", true);
  2349. ReadParameter(param, "GPIO", "IO3", true);
  2350. ReadParameter(param, "GPIO", "IO4", true);
  2351. ReadParameter(param, "GPIO", "IO12", true);
  2352. ReadParameter(param, "GPIO", "IO13", true);
  2353. ReadParameter(param, "GPIO", "LEDType", false);
  2354. ReadParameter(param, "GPIO", "LEDNumbers", false);
  2355. ReadParameter(param, "GPIO", "LEDColor", false);
  2356. // Folgende Zeilen sind für Abwärtskompatibität < v9.0.0 notwendig (manchmal parameter auskommentiert)
  2357. param["GPIO"]["LEDType"]["enabled"] = true;
  2358. param["GPIO"]["LEDNumbers"]["enabled"] = true;
  2359. param["GPIO"]["LEDColor"]["enabled"] = true;
  2360. param["GPIO"]["LEDType"]["found"] = true;
  2361. param["GPIO"]["LEDNumbers"]["found"] = true;
  2362. param["GPIO"]["LEDColor"]["found"] = true;
  2363. //ReadParameter(param, "AutoTimer", "AutoStart", false);
  2364. ReadParameter(param, "AutoTimer", "Interval", false);
  2365. ReadParameter(param, "DataLogging", "DataLogActive", false);
  2366. ReadParameter(param, "DataLogging", "DataFilesRetention", false);
  2367. ReadParameter(param, "Debug", "LogLevel", false);
  2368. ReadParameter(param, "Debug", "LogfilesRetention", false);
  2369. ReadParameter(param, "System", "Tooltip", false);
  2370. ReadParameter(param, "System", "TimeZone", true);
  2371. ReadParameter(param, "System", "Hostname", true);
  2372. ReadParameter(param, "System", "TimeServer", true);
  2373. ReadParameter(param, "System", "RSSIThreshold", true);
  2374. ReadParameter(param, "System", "CPUFrequency", true);
  2375. var sel = document.getElementById("Numbers_value1");
  2376. UpdateInputIndividual(sel);
  2377. // FormatDecimalValue(param, "PostProcessing", "MaxRateValue");
  2378. }
  2379. function UpdateAfterCategoryCheck() {
  2380. ReadParameterAll();
  2381. category["Analog"]["enabled"] = document.getElementById("Category_Analog_enabled").checked;
  2382. category["Digits"]["enabled"] = document.getElementById("Category_Digits_enabled").checked;
  2383. category["MQTT"]["enabled"] = document.getElementById("Category_MQTT_enabled").checked;
  2384. category["InfluxDB"]["enabled"] = document.getElementById("Category_InfluxDB_enabled").checked;
  2385. category["InfluxDBv2"]["enabled"] = document.getElementById("Category_InfluxDBv2_enabled").checked;
  2386. category["GPIO"]["enabled"] = document.getElementById("Category_GPIO_enabled").checked;
  2387. category["Webhook"]["enabled"] = document.getElementById("Category_Webhook_enabled").checked;
  2388. UpdateInput();
  2389. var sel = document.getElementById("Numbers_value1");
  2390. UpdateInputIndividual(sel);
  2391. }
  2392. function UpdateExpertModus() {
  2393. // var _style = 'display:none;';
  2394. var _style_pur = 'none';
  2395. var _hidden = true;
  2396. if (document.getElementById("ExpertModus_enabled").checked) {
  2397. // _style = '';
  2398. _style_pur = '';
  2399. _hidden = false;
  2400. document.getElementById("Button_Edit_Config_Raw").style.display = "";
  2401. firework.launch("Expert view activated. Please use it carefully", 'warning', 5000);
  2402. }
  2403. else {
  2404. document.getElementById("Button_Edit_Config_Raw").style.display = "none";
  2405. }
  2406. const expert = document.querySelectorAll(".expert");
  2407. for (var i = 0; i < expert.length; i++) {
  2408. expert[i].style.display = _style_pur;
  2409. // document.getElementById(expert[i].id).style = _style;
  2410. }
  2411. // 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
  2412. Array.from(document.querySelector("#GPIO_IO4_value1").options).forEach(function(option_element) {
  2413. if (option_element.value != "built-in-led") {
  2414. option_element.hidden = _hidden;
  2415. }
  2416. });
  2417. Array.from(document.querySelector("#GPIO_IO12_value1").options).forEach(function(option_element) {
  2418. if (option_element.value != "external-flash-ws281x") {
  2419. option_element.hidden = _hidden;
  2420. }
  2421. });
  2422. }
  2423. function UpdateTooltipModus() {
  2424. var _style_pur = 'none';
  2425. var _hidden = true;
  2426. if (!document.getElementById("System_Tooltip_value1").selectedIndex) {
  2427. _style_pur = '';
  2428. _hidden = false;
  2429. //firework.launch("Tooltip view activated.", 'warning', 5000);
  2430. }
  2431. const tooltip = document.querySelectorAll(".tooltip");
  2432. for (var i = 0; i < tooltip.length; i++) {
  2433. tooltip[i].style.display = _style_pur;
  2434. }
  2435. }
  2436. function saveTextAsFile() {
  2437. ReadParameterAll();
  2438. if (document.getElementsByClassName("invalid-input").length > 0) {
  2439. firework.launch("Settings cannot be saved. Please check your entries!", 'danger', 30000);
  2440. return;
  2441. }
  2442. ReadParameterAll();
  2443. WriteConfigININew();
  2444. SaveConfigToServer(domainname);
  2445. if(window.location.hash) {
  2446. var hash = window.location.hash.substring(1); //Puts hash in variable, and removes the # character
  2447. if(hash == 'description') {
  2448. firework.launch('Configuration saved.', 'success', 2000);
  2449. }
  2450. else {
  2451. firework.launch('Configuration saved. It will get applied after the next reboot!<br><br>\n<a id="reboot_button" onclick="doReboot()">reboot now</a>', 'success', 5000);
  2452. }
  2453. }
  2454. else {
  2455. firework.launch('Configuration saved. It will get applied after the next reboot!<br><br>\n<a id="reboot_button" onclick="doReboot()">reboot now</a>', 'success', 5000);
  2456. }
  2457. if (changeCamValue == 1) {
  2458. camSettingsSet();
  2459. firework.launch('You have changed the camera settings, creating a new reference image and updating the alignment marks is mandatory!', 'success', 5000);
  2460. }
  2461. }
  2462. function camSettingsSet(){
  2463. document.getElementById("overlay").style.display = "block";
  2464. document.getElementById("overlaytext").innerHTML = "Save Cam Settings...";
  2465. var _waitb_temp = document.getElementById("TakeImage_WaitBeforeTakingPicture_value1").value;
  2466. var _xclk_temp = document.getElementById("TakeImage_CamXclkFreqMhz_value1").value;
  2467. var _aecgc_temp = document.getElementById("TakeImage_CamGainceiling_value1").selectedIndex;
  2468. var _qual_temp = document.getElementById("TakeImage_CamQuality_value1").value;
  2469. var _bri_temp = document.getElementById("TakeImage_CamBrightness_value1").value;
  2470. var _con_temp = document.getElementById("TakeImage_CamContrast_value1").value;
  2471. var _sat_temp = document.getElementById("TakeImage_CamSaturation_value1").value;
  2472. var _shp_temp = document.getElementById("TakeImage_CamSharpness_value1").value;
  2473. var _ashp_temp = document.getElementById("TakeImage_CamAutoSharpness_value1").value;
  2474. if (_ashp_temp == '0') {
  2475. _ashp_temp = '1';
  2476. }
  2477. else {
  2478. _ashp_temp = '0';
  2479. }
  2480. var _spe_temp = document.getElementById("TakeImage_CamSpecialEffect_value1").selectedIndex;
  2481. var _wbm_temp = document.getElementById("TakeImage_CamWbMode_value1").selectedIndex;
  2482. var _awb_temp = document.getElementById("TakeImage_CamAwb_value1").selectedIndex;
  2483. if (_awb_temp == '0') {
  2484. _awb_temp = '1';
  2485. }
  2486. else {
  2487. _awb_temp = '0';
  2488. }
  2489. var _awbg_temp = document.getElementById("TakeImage_CamAwbGain_value1").selectedIndex;
  2490. if (_awbg_temp == '0') {
  2491. _awbg_temp = '1';
  2492. }
  2493. else {
  2494. _awbg_temp = '0';
  2495. }
  2496. var _aec_temp = document.getElementById("TakeImage_CamAec_value1").selectedIndex;
  2497. if (_aec_temp == '0') {
  2498. _aec_temp = '1';
  2499. }
  2500. else {
  2501. _aec_temp = '0';
  2502. }
  2503. var _aec2_temp = document.getElementById("TakeImage_CamAec2_value1").selectedIndex;
  2504. if (_aec2_temp == '0') {
  2505. _aec2_temp = '1';
  2506. }
  2507. else {
  2508. _aec2_temp = '0';
  2509. }
  2510. var _ael_temp = document.getElementById("TakeImage_CamAeLevel_value1").value;
  2511. var _aecv_temp = document.getElementById("TakeImage_CamAecValue_value1").value;
  2512. var _agc_temp = document.getElementById("TakeImage_CamAgc_value1").selectedIndex;
  2513. if (_agc_temp == '0') {
  2514. _agc_temp = '1';
  2515. }
  2516. else {
  2517. _agc_temp = '0';
  2518. }
  2519. var _agcg_temp = document.getElementById("TakeImage_CamAgcGain_value1").value;
  2520. var _bpc_temp = document.getElementById("TakeImage_CamBpc_value1").selectedIndex;
  2521. if (_bpc_temp == '0') {
  2522. _bpc_temp = '1';
  2523. }
  2524. else {
  2525. _bpc_temp = '0';
  2526. }
  2527. var _wpc_temp = document.getElementById("TakeImage_CamWpc_value1").selectedIndex;
  2528. if (_wpc_temp == '0') {
  2529. _wpc_temp = '1';
  2530. }
  2531. else {
  2532. _wpc_temp = '0';
  2533. }
  2534. var _rgma_temp = document.getElementById("TakeImage_CamRawGma_value1").selectedIndex;
  2535. if (_rgma_temp == '0') {
  2536. _rgma_temp = '1';
  2537. }
  2538. else {
  2539. _rgma_temp = '0';
  2540. }
  2541. var _lenc_temp = document.getElementById("TakeImage_CamLenc_value1").selectedIndex;
  2542. if (_lenc_temp == '0') {
  2543. _lenc_temp = '1';
  2544. }
  2545. else {
  2546. _lenc_temp = '0';
  2547. }
  2548. var _mirror_temp = document.getElementById("TakeImage_CamHmirror_value1").selectedIndex;
  2549. if (_mirror_temp == '0') {
  2550. _mirror_temp = '1';
  2551. }
  2552. else {
  2553. _mirror_temp = '0';
  2554. }
  2555. var _flip_temp = document.getElementById("TakeImage_CamVflip_value1").selectedIndex;
  2556. if (_flip_temp == '0') {
  2557. _flip_temp = '1';
  2558. }
  2559. else {
  2560. _flip_temp = '0';
  2561. }
  2562. var _dcw_temp = document.getElementById("TakeImage_CamDcw_value1").selectedIndex;
  2563. if (_dcw_temp == '0') {
  2564. _dcw_temp = '1';
  2565. }
  2566. else {
  2567. _dcw_temp = '0';
  2568. }
  2569. var _denoise_temp = document.getElementById("TakeImage_CamDenoise_value1").value;
  2570. var _ledi_temp = document.getElementById("TakeImage_LEDIntensity_value1").value;
  2571. var _zoom_temp = document.getElementById("TakeImage_CamZoom_value1").selectedIndex;
  2572. if (_zoom_temp == '0') {
  2573. _zoom_temp = '1';
  2574. }
  2575. else {
  2576. _zoom_temp = '0';
  2577. }
  2578. var _zoomx_temp = document.getElementById("TakeImage_CamZoomOffsetX_value1").value;
  2579. var _zoomy_temp = document.getElementById("TakeImage_CamZoomOffsetY_value1").value;
  2580. var _zooms_temp = document.getElementById("TakeImage_CamZoomSize_value1").value;
  2581. var url = domainname + "/editflow?task=cam_settings";
  2582. if (domainname.length > 0){
  2583. url = url + "&host=" + domainname;
  2584. }
  2585. url = url + "&waitb=" + _waitb_temp + "&aecgc=" + _aecgc_temp + "&qual=" + _qual_temp;
  2586. url = url + "&bri=" + _bri_temp + "&con=" + _con_temp + "&sat=" + _sat_temp + "&shp=" + _shp_temp + "&ashp=" + _ashp_temp;
  2587. url = url + "&spe=" + _spe_temp + "&wbm=" + _wbm_temp + "&awb=" + _awb_temp + "&awbg=" + _awbg_temp;
  2588. url = url + "&aec=" + _aec_temp + "&aec2=" + _aec2_temp + "&ael=" + _ael_temp + "&aecv=" + _aecv_temp;
  2589. url = url + "&agc=" + _agc_temp + "&agcg=" + _agcg_temp + "&bpc=" + _bpc_temp + "&wpc=" + _wpc_temp;
  2590. url = url + "&rgma=" + _rgma_temp + "&lenc=" + _lenc_temp + "&mirror=" + _mirror_temp + "&flip=" + _flip_temp;
  2591. url = url + "&dcw=" + _dcw_temp + "&den=" + _denoise_temp + "&ledi=" + _ledi_temp;
  2592. if (_zoom_temp != '0') {
  2593. url = url + "&zoom=" + _zoom_temp + "&zooms=" + _zooms_temp;
  2594. url = url + "&zoomx=" + _zoomx_temp + "&zoomy=" + _zoomy_temp;
  2595. }
  2596. else {
  2597. url = url + "&zoom=0" + "&zooms=0" + "&zoomx=0" + "&zoomy=0";
  2598. }
  2599. var durchlaufe = 0;
  2600. function sleep(ms) {
  2601. return new Promise(resolve => setTimeout(resolve, ms));
  2602. }
  2603. async function task() {
  2604. while (true) {
  2605. var xhttp = new XMLHttpRequest();
  2606. if (durchlaufe > 10) {
  2607. document.getElementById("overlay").style.display = "none";
  2608. firework.launch('Save Cam Settings aborted, timeout!', 'danger', 5000);
  2609. return;
  2610. }
  2611. try {
  2612. xhttp.open("GET", url, false);
  2613. xhttp.send();
  2614. } catch (error){}
  2615. if (xhttp.responseText == "CamSettingsSet") {
  2616. document.getElementById("overlay").style.display = "none";
  2617. firework.launch('Cam Settings saved', 'success', 2000);
  2618. return;
  2619. }
  2620. else {
  2621. // Get status
  2622. var _xhttp = new XMLHttpRequest();
  2623. durchlaufe = durchlaufe + 1;
  2624. try {
  2625. _xhttp.open("GET", domainname + "/statusflow", false);
  2626. _xhttp.send();
  2627. }
  2628. catch (error){}
  2629. document.getElementById("overlaytext").innerHTML = "Device is busy, please wait.<br><br>Current step: " + _xhttp.responseText;
  2630. console.log("Device is busy, waiting 2s then checking again...");
  2631. await sleep(2000);
  2632. }
  2633. }
  2634. }
  2635. setTimeout(function() {
  2636. // Delay so the overlay gets shown
  2637. task();
  2638. }, 1);
  2639. }
  2640. function doReboot() {
  2641. var stringota = domainname + "/reboot";
  2642. window.location = stringota;
  2643. window.location.href = stringota;
  2644. window.location.assign(stringota);
  2645. window.location.replace(stringota);
  2646. }
  2647. function FormatDecimalValue(_param, _cat, _name) {
  2648. for (var j = 1; j <= _param[_cat][_name]["anzParam"]; ++j) {
  2649. var _val = _param[_cat][_name]["value"+j];
  2650. _val = _val.replace(",", ".");
  2651. _param[_cat][_name]["value"+j] = _val;
  2652. }
  2653. }
  2654. function editConfigRaw() {
  2655. if (confirm("Proceed to switch to raw edit mode? Unsaved changes will get lost")) {
  2656. var stringota = domainname + "/edit_config_raw.html?v=$COMMIT_HASH";
  2657. window.location = stringota;
  2658. window.location.href = stringota;
  2659. window.location.assign(stringota);
  2660. window.location.replace(stringota);
  2661. }
  2662. }
  2663. function numberChanged() {
  2664. var sel = document.getElementById("Numbers_value1");
  2665. _neu = sel.selectedIndex;
  2666. UpdateInputIndividual(sel);
  2667. var _selInflux = document.getElementById("NumbersInfluxDBv2_value1");
  2668. if (_selInflux.selectedIndex != _neu) {
  2669. _selInflux.selectedIndex = _neu
  2670. }
  2671. var _sel3 = document.getElementById("NumbersInfluxDB_value1");
  2672. if (_sel3.selectedIndex != _neu) {
  2673. _sel3.selectedIndex = _neu
  2674. }
  2675. var _sel4 = document.getElementById("NumbersMQTTIdx_value1");
  2676. if (_sel4.selectedIndex != _neu) {
  2677. _sel4.selectedIndex = _neu
  2678. }
  2679. }
  2680. function numberMQTTIdxChanged() {
  2681. var sel = document.getElementById("NumbersMQTTIdx_value1");
  2682. _neu = sel.selectedIndex;
  2683. UpdateInputIndividual(sel);
  2684. var _sel2 = document.getElementById("Numbers_value1");
  2685. if (_sel2.selectedIndex != _neu) {
  2686. _sel2.selectedIndex = _neu
  2687. }
  2688. var _sel3 = document.getElementById("NumbersInfluxDB_value1");
  2689. if (_sel3.selectedIndex != _neu) {
  2690. _sel3.selectedIndex = _neu
  2691. }
  2692. var _sel4 = document.getElementById("NumbersInfluxDBv2_value1");
  2693. if (_sel4.selectedIndex != _neu) {
  2694. _sel4.selectedIndex = _neu
  2695. }
  2696. }
  2697. function numberInfluxDBv2Changed() {
  2698. var sel = document.getElementById("NumbersInfluxDBv2_value1");
  2699. _neu = sel.selectedIndex;
  2700. UpdateInputIndividual(sel);
  2701. var _sel2 = document.getElementById("Numbers_value1");
  2702. if (_sel2.selectedIndex != _neu) {
  2703. _sel2.selectedIndex = _neu
  2704. }
  2705. var _sel3 = document.getElementById("NumbersInfluxDB_value1");
  2706. if (_sel3.selectedIndex != _neu) {
  2707. _sel3.selectedIndex = _neu
  2708. }
  2709. var _sel4 = document.getElementById("NumbersMQTTIdx_value1");
  2710. if (_sel4.selectedIndex != _neu) {
  2711. _sel4.selectedIndex = _neu
  2712. }
  2713. }
  2714. function numberInfluxDBChanged() {
  2715. var sel = document.getElementById("NumbersInfluxDB_value1");
  2716. _neu = sel.selectedIndex;
  2717. UpdateInputIndividual(sel);
  2718. var _sel2 = document.getElementById("Numbers_value1");
  2719. if (_sel2.selectedIndex != _neu) {
  2720. _sel2.selectedIndex = _neu
  2721. }
  2722. var _sel3 = document.getElementById("NumbersInfluxDBv2_value1");
  2723. if (_sel3.selectedIndex != _neu) {
  2724. _sel3.selectedIndex = _neu
  2725. }
  2726. var _sel4 = document.getElementById("NumbersMQTTIdx_value1");
  2727. if (_sel4.selectedIndex != _neu) {
  2728. _sel4.selectedIndex = _neu
  2729. }
  2730. }
  2731. function getParameterByName(name, url = window.location.href) {
  2732. name = name.replace(/[\[\]]/g, '\\$&');
  2733. var regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)'),
  2734. results = regex.exec(url);
  2735. if (!results) {return null;}
  2736. if (!results[2]) {return '';}
  2737. return decodeURIComponent(results[2].replace(/\+/g, ' '));
  2738. }
  2739. function InvertEnableItem(_cat, _param) {
  2740. _zw = _cat + "_" + _param + "_enabled";
  2741. _isOn = document.getElementById(_zw).checked;
  2742. _color = "rgb(122, 122, 122)";
  2743. if (_isOn) {
  2744. _color = "black";
  2745. }
  2746. _zw = _cat + "_" + _param + "_text";
  2747. document.getElementById(_zw).disabled = !_isOn;
  2748. document.getElementById(_zw).style.color = _color;
  2749. setEnabled(_cat + "_" + _param, _isOn);
  2750. for (var j = 1; j <= param[_cat][_param]["anzParam"]; ++j) {
  2751. document.getElementById(_cat+"_"+_param+"_value"+j).disabled = !_isOn;
  2752. document.getElementById(_cat+"_"+_param+"_value"+j).style.color = _color;
  2753. }
  2754. }
  2755. function setEnabled(className, enabled) {
  2756. _color = "rgb(122, 122, 122)";
  2757. if (enabled) {
  2758. _color = "black";
  2759. }
  2760. let elements = document.getElementsByClassName(className);
  2761. for (i = 0; i < elements.length; i++) {
  2762. if (enabled) {
  2763. elements[i].classList.remove("disabled");
  2764. }
  2765. else {
  2766. elements[i].classList.add("disabled");
  2767. }
  2768. let inputs = elements[i].getElementsByTagName("input");
  2769. for (j = 0; j < inputs.length; j++) {
  2770. if (inputs[j].id.endsWith("_enabled")) {
  2771. continue;
  2772. }
  2773. inputs[j].style.color = _color;
  2774. if (enabled) {
  2775. inputs[j].removeAttribute("disabled");
  2776. }
  2777. else {
  2778. inputs[j].setAttribute("disabled", "disabled");
  2779. }
  2780. }
  2781. }
  2782. }
  2783. function setVisible(className, visible) {
  2784. let elements = document.getElementsByClassName(className);
  2785. for (i = 0; i < elements.length; i++) {
  2786. if (visible) {
  2787. elements[i].classList.remove("hidden");
  2788. }
  2789. else {
  2790. elements[i].classList.add("hidden");
  2791. }
  2792. }
  2793. }
  2794. function EnDisableItem(_status, _param, _category, _cat, _name, _optional, _number = -1) {
  2795. // _status = _category[_cat]["enabled"];
  2796. _color = "rgb(122, 122, 122)";
  2797. if (_status) {
  2798. _color = "black";
  2799. }
  2800. if (_optional) {
  2801. document.getElementById(_cat+"_"+_name+"_enabled").disabled = !_status;
  2802. document.getElementById(_cat+"_"+_name+"_enabled").style.color = _color;
  2803. }
  2804. if (_number == -1) {
  2805. if (!_param[_cat][_name]["enabled"]) {
  2806. _status = false;
  2807. _color = "rgb(122, 122, 122)";
  2808. }
  2809. }
  2810. else {
  2811. if (!NUMBERS[_number][_cat][_name]["enabled"]) {
  2812. _status = false;
  2813. _color = "rgb(122, 122, 122)";
  2814. }
  2815. }
  2816. document.getElementById(_cat+"_"+_name+"_text").disabled = !_status;
  2817. document.getElementById(_cat+"_"+_name+"_text").style.color = _color;
  2818. setEnabled(_cat+"_"+_name, _status);
  2819. for (var j = 1; j <= _param[_cat][_name]["anzParam"]; ++j) {
  2820. document.getElementById(_cat+"_"+_name+"_value"+j).disabled = !_status;
  2821. document.getElementById(_cat+"_"+_name+"_value"+j).style.color = _color;
  2822. }
  2823. }
  2824. function ReadParameter(_param, _cat, _name, _optional, _number = -1) {
  2825. if (_number > -1) {
  2826. if (_cat == "Digits") {
  2827. _cat = "digit";
  2828. }
  2829. if (_cat == "Analog") {
  2830. _cat = "analog";
  2831. }
  2832. if ((NUMBERS[_number] == undefined) || (NUMBERS[_number][_cat] == undefined) || (NUMBERS[_number][_cat][_name] == undefined)) {
  2833. return;
  2834. }
  2835. if (_optional) {
  2836. NUMBERS[_number][_cat][_name]["enabled"] = document.getElementById(_cat+"_"+_name+"_enabled").checked;
  2837. }
  2838. for (var j = 1; j <= _param[_cat][_name]["anzParam"]; ++j) {
  2839. let element = document.getElementById(_cat+"_"+_name+"_value"+j);
  2840. if (element.tagName.toLowerCase() == "select") {
  2841. NUMBERS[_number][_cat][_name]["value"+j] = element.selectedIndex > -1 ? element.options[element.selectedIndex].value : "";
  2842. }
  2843. else if ((element.getAttribute("type") != null) && (element.getAttribute("type").toLowerCase() == "checkbox")) {
  2844. NUMBERS[_number][_cat][_name]["value"+j] = element.checked;
  2845. }
  2846. else {
  2847. if ((NUMBERS[_number][_cat][_name].checkRegExList != null) && (NUMBERS[_number][_cat][_name].checkRegExList[j-1] != null)) {
  2848. if (!element.value.match(NUMBERS[_cat][_name].checkRegExList[j-1])) {
  2849. element.classList.add("invalid-input");
  2850. }
  2851. else {
  2852. element.classList.remove("invalid-input");
  2853. }
  2854. }
  2855. NUMBERS[_number][_cat][_name]["value"+j] = element.value;
  2856. }
  2857. }
  2858. }
  2859. else
  2860. {
  2861. if (_optional) {
  2862. _param[_cat][_name]["enabled"] = document.getElementById(_cat+"_"+_name+"_enabled").checked;
  2863. }
  2864. for (var j = 1; j <= _param[_cat][_name]["anzParam"]; ++j) {
  2865. let element = document.getElementById(_cat+"_"+_name+"_value"+j);
  2866. if (element.tagName.toLowerCase() == "select") {
  2867. _param[_cat][_name]["value"+j] = element.selectedIndex > -1 ? element.options[element.selectedIndex].value : "";
  2868. }
  2869. else if ((element.getAttribute("type") != null) && (element.getAttribute("type").toLowerCase() == "checkbox")) {
  2870. _param[_cat][_name]["value"+j] = element.checked;
  2871. }
  2872. else {
  2873. if ((_param[_cat][_name].checkRegExList != null) && (_param[_cat][_name].checkRegExList[j-1] != null)) {
  2874. if (!element.value.match(_param[_cat][_name].checkRegExList[j-1])) {
  2875. element.classList.add("invalid-input");
  2876. }
  2877. else {
  2878. element.classList.remove("invalid-input");
  2879. }
  2880. }
  2881. _param[_cat][_name]["value"+j] = element.value;
  2882. }
  2883. }
  2884. }
  2885. }
  2886. function WriteParameter(_param, _category, _cat, _name, _optional, _number = -1) {
  2887. let anzpara;
  2888. try {
  2889. anzpara = _param[_cat][_name].anzParam;
  2890. }
  2891. catch (error) {
  2892. firework.launch("Parameter '" + _name + "' in category '" + _cat + "' is unknown!", 'danger', 30000);
  2893. return;
  2894. }
  2895. if (_number > -1) {
  2896. if ((NUMBERS[_number] == undefined) || (NUMBERS[_number][_cat] == undefined) || (NUMBERS[_number][_cat][_name] == undefined)) {
  2897. return;
  2898. }
  2899. if (_optional) {
  2900. document.getElementById(_cat+"_"+_name+"_enabled").checked = NUMBERS[_number][_cat][_name]["enabled"];
  2901. for (var j = 1; j <= anzpara; ++j) {
  2902. document.getElementById(_cat+"_"+_name+"_value"+j).disabled = !NUMBERS[_number][_cat][_name]["enabled"];
  2903. }
  2904. }
  2905. document.getElementById(_cat+"_"+_name+"_text").style.color = "black"
  2906. setEnabled(_cat+"_"+_name, true);
  2907. for (var j = 1; j <= anzpara; ++j) {
  2908. let element = document.getElementById(_cat+"_"+_name+"_value"+j);
  2909. if (element.tagName.toLowerCase() == "select") {
  2910. var textToFind = NUMBERS[_number][_cat][_name]["value"+j];
  2911. if (textToFind == undefined) {
  2912. continue;
  2913. }
  2914. _isFound = false;
  2915. element.selectedIndex = -1;
  2916. for (var i = 0; i < element.options.length; i++) {
  2917. if (element.options[i].value.toLowerCase() === textToFind.toLowerCase()) {
  2918. element.selectedIndex = i;
  2919. _isFound = true;
  2920. break;
  2921. }
  2922. }
  2923. if (!_isFound) {
  2924. _zw_txt = "In the selected field the value '" + textToFind + "' in the parameter '";
  2925. _zw_txt = _zw_txt + _cat + "' in the field '" + _name + "' is invalid. PLEASE CHECK BEFORE SAVING!";
  2926. firework.launch(_zw_txt, 'warning', 10000);
  2927. }
  2928. }
  2929. else if ((element.getAttribute("type") != null) && (element.getAttribute("type").toLowerCase() == "checkbox")) {
  2930. element.checked = NUMBERS[_number][_cat][_name]["value"+j] == "true";
  2931. }
  2932. else {
  2933. element.value = NUMBERS[_number][_cat][_name]["value"+j];
  2934. }
  2935. }
  2936. }
  2937. else {
  2938. if (_optional) {
  2939. document.getElementById(_cat+"_"+_name+"_enabled").checked = _param[_cat][_name]["enabled"];
  2940. for (var j = 1; j <= anzpara; ++j) {
  2941. document.getElementById(_cat+"_"+_name+"_value"+j).disabled = !_param[_cat][_name]["enabled"];
  2942. }
  2943. }
  2944. document.getElementById(_cat+"_"+_name+"_text").style.color = "black"
  2945. setEnabled(_cat+"_"+_name, true);
  2946. for (var j = 1; j <= anzpara; ++j) {
  2947. let element = document.getElementById(_cat+"_"+_name+"_value"+j);
  2948. if (element.tagName.toLowerCase() == "select") {
  2949. var textToFind = _param[_cat][_name]["value"+j];
  2950. if (textToFind == undefined) {
  2951. continue;
  2952. }
  2953. _isFound = false;
  2954. element.selectedIndex = -1;
  2955. for (var i = 0; i < element.options.length; i++) {
  2956. if (element.options[i].value.toLowerCase() === textToFind.toLowerCase()) {
  2957. element.selectedIndex = i;
  2958. _isFound = true;
  2959. break;
  2960. }
  2961. }
  2962. if (!_isFound) {
  2963. _zw_txt = "In the selected field the value '" + textToFind + "' in the section '";
  2964. _zw_txt = _zw_txt + _cat + "' in the field '" + _name + "' is invalid. PLEASE CHECK BEFORE SAVING!";
  2965. firework.launch(_zw_txt, 'warning', 10000);
  2966. }
  2967. }
  2968. else if ((element.getAttribute("type") != null) && (element.getAttribute("type").toLowerCase() == "checkbox")) {
  2969. element.checked = _param[_cat][_name]["value"+j] == "true";
  2970. }
  2971. else {
  2972. element.value = _param[_cat][_name]["value"+j];
  2973. }
  2974. }
  2975. }
  2976. ///////////////// am Ende, falls Kategorie als gesamtes nicht ausgewählt --> deaktivieren
  2977. if (_category[_cat]["enabled"] == false) {
  2978. if (_optional) {
  2979. document.getElementById(_cat+"_"+_name+"_enabled").disabled = true;
  2980. for (var j = 1; j <= anzpara; ++j) {
  2981. document.getElementById(_cat+"_"+_name+"_value"+j).disabled = true;
  2982. }
  2983. }
  2984. document.getElementById(_cat+"_"+_name+"_text").style="color: gray;"
  2985. setEnabled(_cat+"_"+_name, false);
  2986. }
  2987. EnDisableItem(_category[_cat]["enabled"], _param, _category, _cat, _name, _optional, _number);
  2988. }
  2989. /* hash #description open the details part of the page */
  2990. function openDescription() {
  2991. if(window.location.hash) {
  2992. var hash = window.location.hash.substring(1); //Puts hash in variable, and removes the # character
  2993. if(hash == 'description') {
  2994. document.getElementById("desc_details").open = true;
  2995. // document.getElementById("reboot").style.display = "none";
  2996. document.getElementById("reboot_text").style.display = "none";
  2997. }
  2998. }
  2999. }
  3000. function init() {
  3001. openDescription();
  3002. LoadConfigNeu();
  3003. }
  3004. init();
  3005. </script>
  3006. </body>
  3007. </html>