edit_config_template.html 143 KB

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