edit_config_template.html 143 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345
  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=1)) && (!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 officially supported by Homeassistant!*</option>
  1071. <option value="water_gal">Watermeter (Value: gal, Rate: gal/h) *Not officially supported by Homeassistant!*</option>
  1072. <option value="water_ft3">Watermeter (Value: ft³, Rate: ft³/min)</option>
  1073. <option value="gas_m3">Gasmeter (Value: m³, Rate: m³/h)</option>
  1074. <option value="gas_ft3">Gasmeter (Value: ft³, Rate: ft³/min)</option>
  1075. <option value="energy_wh">Energymeter (Value: Wh, Rate: W)</option>
  1076. <option value="energy_kwh">Energymeter (Value: kWh, Rate: kW)</option>
  1077. <option value="energy_mwh">Energymeter (Value: MWh, Rate: MW)</option>
  1078. <option value="energy_gj">Energymeter (Value: GJ, Rate: GJ/h) *Not officially supported by Homeassistant!*</option>
  1079. <option value="temperature_c">Thermometer (Value: °C, Rate: °C/min)</option>
  1080. <option value="temperature_c">Thermometer (Value: °F, Rate: °F/min)</option>
  1081. <option value="temperature_c">Thermometer (Value: K, Rate: K/min)</option>
  1082. </select>
  1083. </td>
  1084. <td>$TOOLTIP_MQTT_MeterType</td>
  1085. </tr>
  1086. <tr class="MQTTItem">
  1087. <td class="indent1">
  1088. <input type="checkbox" id="MQTT_DomoticzTopicIn_enabled" value="1" onclick = 'InvertEnableItem("MQTT", "DomoticzTopicIn")' unchecked >
  1089. <label for=MQTT_DomoticzTopicIn_enabled><class id="MQTT_DomoticzTopicIn_text" style="color:black;">Domoticz "in" topic</class></label>
  1090. </td>
  1091. <td>
  1092. <input type="text" id="MQTT_DomoticzTopicIn_value1">
  1093. </td>
  1094. <td>$TOOLTIP_MQTT_DomoticzTopicIn</td>
  1095. </tr>
  1096. <tr class="MQTTItem" style="margin-top:12px">
  1097. <td class="indent1" style="padding-top:25px" colspan="3">
  1098. <b>The following parameters are configurable individually for each number sequence:</b>
  1099. <select style="font-weight: bold; margin-left:17px" id="NumbersMQTTIdx_value1" onchange="numberMQTTIdxChanged()"></select>
  1100. </td>
  1101. </tr>
  1102. <tr class="MQTTItem">
  1103. <td class="indent2">
  1104. <input type="checkbox" id="MQTT_DomoticzIDX_enabled" value="1" onclick = 'InvertEnableItem("MQTT", "DomoticzIDX")' unchecked >
  1105. <label for=MQTT_DomoticzIDX_enabled><class id="MQTT_DomoticzIDX_text" style="color:black;">Domoticz Counter Idx:</class></label>
  1106. </td>
  1107. <td>
  1108. <input type="text" id="MQTT_DomoticzIDX_value1">
  1109. </td>
  1110. <td>$TOOLTIP_MQTT_NUMBER.DomoticzIDX</td>
  1111. </tr>
  1112. <!------------- INFLUXDB v1 ------------------>
  1113. <tr style="border-bottom: 2px solid lightgray;">
  1114. <td colspan="3" style="padding-left: 0px; padding-bottom: 3px;">
  1115. <h4>
  1116. <input type="checkbox" id="Category_InfluxDB_enabled" value="1" onclick = 'UpdateAfterCategoryCheck()' unchecked >
  1117. <label for=Category_InfluxDB_enabled>InfluxDB v1.x</label>
  1118. </h4>
  1119. </td>
  1120. </tr>
  1121. <tr class="InfluxDBv1Item">
  1122. <td class="indent1">
  1123. <input type="checkbox" id="InfluxDB_Uri_enabled" value="1" onclick = 'InvertEnableItem("InfluxDB", "Uri")' unchecked >
  1124. <label for=InfluxDB_Uri_enabled><class id="InfluxDB_Uri_text" style="color:black;">URI</class></label>
  1125. </td>
  1126. <td>
  1127. <input required type="text" id="InfluxDB_Uri_value1">
  1128. </td>
  1129. <td>$TOOLTIP_InfluxDB_Uri</td>
  1130. </tr>
  1131. <tr class="InfluxDBv1Item">
  1132. <td class="indent1">
  1133. <input type="checkbox" id="InfluxDB_Database_enabled" value="1" onclick = 'InvertEnableItem("InfluxDB", "Database")' unchecked >
  1134. <label for=InfluxDB_Database_enabled><class id="InfluxDB_Database_text" style="color:black;">Database</class></label>
  1135. </td>
  1136. <td>
  1137. <input required type="text" id="InfluxDB_Database_value1">
  1138. </td>
  1139. <td>$TOOLTIP_InfluxDB_Database</td>
  1140. </tr>
  1141. <tr class="InfluxDBv1Item">
  1142. <td class="indent1">
  1143. <input type="checkbox" id="InfluxDB_user_enabled" value="1" onclick = 'InvertEnableItem("InfluxDB", "user")' unchecked >
  1144. <label for=InfluxDB_user_enabled><class id="InfluxDB_user_text" style="color:black;">Username</class></label>
  1145. </td>
  1146. <td>
  1147. <input type="text" id="InfluxDB_user_value1">
  1148. </td>
  1149. <td>$TOOLTIP_InfluxDB_user</td>
  1150. </tr>
  1151. <tr class="InfluxDBv1Item">
  1152. <td class="indent1">
  1153. <input type="checkbox" id="InfluxDB_password_enabled" value="1" onclick = 'InvertEnableItem("InfluxDB", "password")' unchecked >
  1154. <label for=InfluxDB_password_enabled><class id="InfluxDB_password_text" style="color:black;">Password</class></label>
  1155. </td>
  1156. <td>
  1157. <input type="text" id="InfluxDB_password_value1">
  1158. </td>
  1159. <td>$TOOLTIP_InfluxDB_password</td>
  1160. </tr>
  1161. <tr class="InfluxDBv1Item" style="margin-top:12px">
  1162. <td class="indent1" style="padding-top:25px" colspan="3">
  1163. <b>Parameter per number sequence:</b>
  1164. <select style="font-weight: bold; margin-left:17px" id="NumbersInfluxDB_value1" onchange="numberInfluxDBChanged()"></select>
  1165. </td>
  1166. </tr>
  1167. <tr class="InfluxDBv1Item">
  1168. <td class="indent2">
  1169. <input type="checkbox" id="InfluxDB_Measurement_enabled" value="1" onclick = 'InvertEnableItem("InfluxDB", "Measurement")' unchecked >
  1170. <label for=InfluxDB_Measurement_enabled><class id="InfluxDB_Measurement_text" style="color:black;">Measurement</class></label>
  1171. </td>
  1172. <td>
  1173. <input required type="text" id="InfluxDB_Measurement_value1">
  1174. </td>
  1175. <td>$TOOLTIP_InfluxDB_NUMBER.Measurement</td>
  1176. </tr>
  1177. <tr class="InfluxDBv1Item">
  1178. <td class="indent2">
  1179. <input type="checkbox" id="InfluxDB_Field_enabled" value="1" onclick = 'InvertEnableItem("InfluxDB", "Field")' unchecked >
  1180. <label for=InfluxDB_Field_enabled><class id="InfluxDB_Field_text" style="color:black;">Field</class></label>
  1181. </td>
  1182. <td>
  1183. <input required type="text" id="InfluxDB_Field_value1">
  1184. </td>
  1185. <td>$TOOLTIP_InfluxDB_NUMBER.Field</td>
  1186. </tr>
  1187. <!------------- INFLUXDB v2 ------------------>
  1188. <tr style="border-bottom: 2px solid lightgray;">
  1189. <td colspan="3" style="padding-left: 0px; padding-bottom: 3px;">
  1190. <h4>
  1191. <input type="checkbox" id="Category_InfluxDBv2_enabled" value="1" onclick = 'UpdateAfterCategoryCheck()' unchecked >
  1192. <label for=Category_InfluxDBv2_enabled>InfluxDB v2.x</label>
  1193. </h4>
  1194. </td>
  1195. </tr>
  1196. <tr class="InfluxDBv2Item">
  1197. <td class="indent1">
  1198. <input type="checkbox" id="InfluxDBv2_Uri_enabled" value="1" onclick = 'InvertEnableItem("InfluxDBv2", "Uri")' unchecked >
  1199. <label for=InfluxDBv2_Uri_enabled><class id="InfluxDBv2_Uri_text" style="color:black;">URI</class></label>
  1200. </td>
  1201. <td>
  1202. <input required type="text" id="InfluxDBv2_Uri_value1">
  1203. </td>
  1204. <td>$TOOLTIP_InfluxDBv2_Uri</td>
  1205. </tr>
  1206. <tr class="InfluxDBv2Item">
  1207. <td class="indent1">
  1208. <input type="checkbox" id="InfluxDBv2_Bucket_enabled" value="1" onclick = 'InvertEnableItem("InfluxDBv2", "Bucket")' unchecked >
  1209. <label for=InfluxDBv2_Bucket_enabled><class id="InfluxDBv2_Bucket_text" style="color:black;">Bucket</class></label>
  1210. </td>
  1211. <td>
  1212. <input required type="text" id="InfluxDBv2_Bucket_value1">
  1213. </td>
  1214. <td>$TOOLTIP_InfluxDBv2_Bucket</td>
  1215. </tr>
  1216. <tr class="InfluxDBv2Item">
  1217. <td class="indent1">
  1218. <input type="checkbox" id="InfluxDBv2_Org_enabled" value="1" onclick = 'InvertEnableItem("InfluxDBv2", "Org")' unchecked >
  1219. <label for=InfluxDBv2_Org_enabled><class id="InfluxDBv2_Org_text" style="color:black;">Organization (Org)</class></label>
  1220. </td>
  1221. <td>
  1222. <input type="text" id="InfluxDBv2_Org_value1">
  1223. </td>
  1224. <td>$TOOLTIP_InfluxDBv2_Org</td>
  1225. </tr>
  1226. <tr class="InfluxDBv2Item">
  1227. <td class="indent1">
  1228. <input type="checkbox" id="InfluxDBv2_Token_enabled" value="1" onclick = 'InvertEnableItem("InfluxDBv2", "Token")' unchecked >
  1229. <label for=InfluxDBv2_Token_enabled><class id="InfluxDBv2_Token_text" style="color:black;">Token</class></label>
  1230. </td>
  1231. <td>
  1232. <input type="text" id="InfluxDBv2_Token_value1">
  1233. </td>
  1234. <td>$TOOLTIP_InfluxDBv2_Token</td>
  1235. </tr>
  1236. <tr class="InfluxDBv2Item" style="margin-top:12px">
  1237. <td class="indent1" style="padding-top:25px" colspan="3">
  1238. <b>Parameter per number sequence:</b>
  1239. <select style="font-weight: bold; margin-left:17px" id="NumbersInfluxDBv2_value1" onchange="numberInfluxDBv2Changed()"></select>
  1240. </td>
  1241. </tr>
  1242. <tr class="InfluxDBv2Item">
  1243. <td class="indent2">
  1244. <input type="checkbox" id="InfluxDBv2_Measurement_enabled" value="1" onclick = 'InvertEnableItem("InfluxDBv2", "Measurement")' unchecked >
  1245. <label for=InfluxDBv2_Measurement_enabled><class id="InfluxDBv2_Measurement_text" style="color:black;">Measurement</class></label>
  1246. </td>
  1247. <td>
  1248. <input required type="text" id="InfluxDBv2_Measurement_value1">
  1249. </td>
  1250. <td>$TOOLTIP_InfluxDBv2_NUMBER.Measurement</td>
  1251. </tr>
  1252. <tr class="InfluxDBv2Item">
  1253. <td class="indent2">
  1254. <input type="checkbox" id="InfluxDBv2_Field_enabled" value="1" onclick = 'InvertEnableItem("InfluxDBv2", "Field")' unchecked >
  1255. <label for=InfluxDBv2_Field_enabled><class id="InfluxDBv2_Field_text" style="color:black;">Field</class></label>
  1256. </td>
  1257. <td>
  1258. <input required type="text" id="InfluxDBv2_Field_value1">
  1259. </td>
  1260. <td>$TOOLTIP_InfluxDBv2_NUMBER.Field</td>
  1261. </tr>
  1262. <!------------- Webhook ------------------>
  1263. <tr style="border-bottom: 2px solid lightgray;">
  1264. <td colspan="3" style="padding-left: 0px; padding-bottom: 3px;">
  1265. <h4>
  1266. <input type="checkbox" id="Category_Webhook_enabled" value="1" onclick = 'UpdateAfterCategoryCheck()' unchecked >
  1267. <label for=Category_Webhook_enabled>Webhook</label>
  1268. </h4>
  1269. </td>
  1270. </tr>
  1271. <tr class="WebhookItem">
  1272. <td class="indent1">
  1273. <input type="checkbox" id="Webhook_Uri_enabled" value="1" onclick = 'InvertEnableItem("Webhook", "Uri")' unchecked >
  1274. <label for=Webhook_Uri_enabled><class id="Webhook_Uri_text" style="color:black;">URI</class></label>
  1275. </td>
  1276. <td>
  1277. <input required type="text" id="Webhook_Uri_value1">
  1278. </td>
  1279. <td>$TOOLTIP_Webhook_Uri</td>
  1280. </tr>
  1281. <tr class="WebhookItem">
  1282. <td class="indent1">
  1283. <input type="checkbox" id="Webhook_ApiKey_enabled" value="1" onclick = 'InvertEnableItem("Webhook", "ApiKey")' unchecked >
  1284. <label for=Webhook_ApiKey_enabled><class id="Webhook_ApiKey_text" style="color:black;">ApiKey</class></label>
  1285. </td>
  1286. <td>
  1287. <input required type="text" id="Webhook_ApiKey_value1">
  1288. </td>
  1289. <td>$TOOLTIP_Webhook_ApiKey</td>
  1290. </tr>
  1291. <tr class="WebhookItem">
  1292. <td class="indent1">
  1293. <input type="checkbox" id="Webhook_UploadImg_enabled" value="1" onclick = 'InvertEnableItem("Webhook", "UploadImg")' unchecked>
  1294. <label for=Webhook_UploadImg_enabled><class id="Webhook_UploadImg_text" style="color:black;">Upload Image</class></label>
  1295. </td>
  1296. <td>
  1297. <select id="Webhook_UploadImg_value1">
  1298. <option value="0" selected>NEVER</option>
  1299. <option value="1">ALWAYS</option>
  1300. <option value="2">ON_ERROR</option>
  1301. </select>
  1302. </td>
  1303. <td>$TOOLTIP_Webhook_UploadImg</td>
  1304. </tr>
  1305. <!------------- GPIO ------------------>
  1306. <tr style="border-bottom: 2px solid lightgray;">
  1307. <td colspan="3" style="padding-left: 0px; padding-bottom: 3px;">
  1308. <h4><input type="checkbox" id="Category_GPIO_enabled" value="1" onclick='UpdateAfterCategoryCheck()' unchecked >
  1309. <label for=Category_GPIO_enabled>GPIO (General Purpose Input / Output)</label></h4>
  1310. </td>
  1311. </tr>
  1312. <!------------- GPIO0 begin ------------------>
  1313. <tr class="GPIO_IO0 GPIO_item expert">
  1314. <td class="indent1">
  1315. <input type="checkbox" id="GPIO_IO0_enabled" value="1" onclick = 'InvertEnableItem("GPIO", "IO0")' unchecked>
  1316. <label for=GPIO_IO0_enabled><span id="GPIO_IO0_text">GPIO0 Configuration</span></label>
  1317. </td>
  1318. <td>
  1319. <select id="GPIO_IO0_value1">
  1320. <option value="input">input</option>
  1321. <option value="input-pullup">input pullup</option>
  1322. <option value="input-pulldown">input pulldown</option>
  1323. <option value="output">output</option>
  1324. </select>
  1325. </td>
  1326. <td>$TOOLTIP_GPIO_IO0</td>
  1327. </tr>
  1328. <tr class="GPIO_IO0 GPIO_item expert">
  1329. <td class="indent2">
  1330. <span id="GPIO_IO0_text" class="GPIO_IO0 GPIO_item">GPIO0 Use Interrupt</span>
  1331. </td>
  1332. <td>
  1333. <select id="GPIO_IO0_value2">
  1334. <option value="disabled">disabled</option>
  1335. <option value="rising-edge">rising edge</option>
  1336. <option value="falling-edge">falling edge</option>
  1337. <option value="rising-and-falling">rising and falling</option>
  1338. <option value="low-level-trigger">low level trigger</option>
  1339. <option value="high-level-trigger">high level trigger</option>
  1340. </select>
  1341. </td>
  1342. <td></td>
  1343. </tr>
  1344. <tr class="GPIO_IO0 GPIO_item expert">
  1345. <td class="indent2">
  1346. <span class="GPIO_IO0 GPIO_item">GPIO0 PWM Duty Cycle Resolution</span>
  1347. </td>
  1348. <td>
  1349. <input required type="number" id="GPIO_IO0_value3" min="1" max="20"
  1350. oninput="(!validity.rangeUnderflow||(value=1)) && (!validity.rangeOverflow||(value=20)) &&
  1351. (!validity.stepMismatch||(value=parseInt(this.value)));"><span class="GPIO_IO0 GPIO_item">Bits</span>
  1352. </td>
  1353. <td></td>
  1354. </tr>
  1355. <tr class="GPIO_IO0 GPIO_item expert">
  1356. <td class="indent2">
  1357. <span class="GPIO_IO0 GPIO_item">GPIO0 Enable MQTT</span>
  1358. </td>
  1359. <td><input type="checkbox" id="GPIO_IO0_value4"></td>
  1360. <td></td>
  1361. </tr>
  1362. <tr class="GPIO_IO0 GPIO_item expert">
  1363. <td class="indent2">
  1364. <span class="GPIO_IO0 GPIO_item">GPIO0 Enable REST API</span>
  1365. </td>
  1366. <td><input type="checkbox" id="GPIO_IO0_value5"></td>
  1367. <td></td>
  1368. </tr>
  1369. <tr class="GPIO_IO0 GPIO_item expert">
  1370. <td class="indent2">
  1371. <span class="GPIO_IO0 GPIO_item">GPIO0 Name</span>
  1372. </td>
  1373. <td><input type="text" id="GPIO_IO0_value6"></td>
  1374. <td></td>
  1375. </tr>
  1376. <!------------- GPIO0 end ------------------>
  1377. <!------------- GPIO1 begin ------------------>
  1378. <tr class="GPIO_IO1 GPIO_item expert">
  1379. <td class="indent1">
  1380. <input type="checkbox" id="GPIO_IO1_enabled" value="1" onclick = 'InvertEnableItem("GPIO", "IO1")' unchecked>
  1381. <label for=GPIO_IO1_enabled><span id="GPIO_IO1_text">GPIO1 Configuration</span></label>
  1382. </td>
  1383. <td>
  1384. <select id="GPIO_IO1_value1">
  1385. <option value="input">input</option>
  1386. <option value="input-pullup">input pullup</option>
  1387. <option value="input-pulldown">input pulldown</option>
  1388. <option value="output">output</option>
  1389. </select>
  1390. </td>
  1391. <td>$TOOLTIP_GPIO_IO1</td>
  1392. </tr>
  1393. <tr class="GPIO_IO1 GPIO_item expert">
  1394. <td class="indent2">
  1395. <span class="GPIO_IO1 GPIO_item" class="expert">GPIO1 Use Interrupt</span>
  1396. </td>
  1397. <td>
  1398. <select id="GPIO_IO1_value2">
  1399. <option value="disabled">disabled</option>
  1400. <option value="rising-edge" disabled>rising edge</option>
  1401. <option value="falling-edge" disabled>falling edge</option>
  1402. <option value="rising-and-falling">rising and falling</option>
  1403. <option value="low-level-trigger">low level trigger</option>
  1404. <option value="high-level-trigger">high level trigger</option>
  1405. </select>
  1406. </td>
  1407. <td></td>
  1408. </tr>
  1409. <tr class="GPIO_IO1 GPIO_item expert">
  1410. <td class="indent2">
  1411. <span class="GPIO_IO1 GPIO_item">GPIO1 PWM Duty Cycle Resolution</span>
  1412. </td>
  1413. <td>
  1414. <input required type="number" id="GPIO_IO1_value3" min="1" max="20"
  1415. oninput="(!validity.rangeUnderflow||(value=1)) && (!validity.rangeOverflow||(value=20)) &&
  1416. (!validity.stepMismatch||(value=parseInt(this.value)));"><span class="GPIO_IO1 GPIO_item">Bits</span>
  1417. </td>
  1418. <td></td>
  1419. </tr>
  1420. <tr class="GPIO_IO1 GPIO_item expert">
  1421. <td class="indent2">
  1422. <span class="GPIO_IO1 GPIO_item">GPIO1 Enable MQTT</span>
  1423. </td>
  1424. <td><input type="checkbox" id="GPIO_IO1_value4"></td>
  1425. <td></td>
  1426. </tr>
  1427. <tr class="GPIO_IO1 GPIO_item expert">
  1428. <td class="indent2">
  1429. <span class="GPIO_IO1 GPIO_item">GPIO1 Enable REST API</span>
  1430. </td>
  1431. <td><input type="checkbox" id="GPIO_IO1_value5"></td>
  1432. <td></td>
  1433. </tr>
  1434. <tr class="GPIO_IO1 GPIO_item expert">
  1435. <td class="indent2">
  1436. <span class="GPIO_IO1 GPIO_item" class="expert">GPIO1 Name</span>
  1437. </td>
  1438. <td><input type="text" id="GPIO_IO1_value6"></td>
  1439. <td></td>
  1440. </tr>
  1441. <!------------- GPIO1 end ------------------>
  1442. <!------------- GPIO3 begin ------------------>
  1443. <tr class="GPIO_IO3 GPIO_item expert">
  1444. <td class="indent1">
  1445. <input type="checkbox" id="GPIO_IO3_enabled" value="1" onclick = 'InvertEnableItem("GPIO", "IO3")' unchecked>
  1446. <label for=GPIO_IO3_enabled><span id="GPIO_IO3_text">GPIO3 Configuration</span></label>
  1447. </td>
  1448. <td>
  1449. <select id="GPIO_IO3_value1">
  1450. <option value="input">input</option>
  1451. <option value="input-pullup">input pullup</option>
  1452. <option value="input-pulldown">input pulldown</option>
  1453. <option value="output">output</option>
  1454. </select>
  1455. </td>
  1456. <td>$TOOLTIP_GPIO_IO3</td>
  1457. </tr>
  1458. <tr class="GPIO_IO3 GPIO_item expert">
  1459. <td class="indent2">
  1460. <span class="GPIO_IO3 GPIO_item">GPIO3 Use Interrupt</span>
  1461. </td>
  1462. <td>
  1463. <select id="GPIO_IO3_value2">
  1464. <option value="disabled">disabled</option>
  1465. <option value="rising-edge" disabled>rising edge</option>
  1466. <option value="falling-edge" disabled>falling edge</option>
  1467. <option value="rising-and-falling">rising and falling</option>
  1468. <option value="low-level-trigger">low level trigger</option>
  1469. <option value="high-level-trigger">high level trigger</option>
  1470. </select>
  1471. </td>
  1472. <td></td>
  1473. </tr>
  1474. <tr class="GPIO_IO3 GPIO_item expert">
  1475. <td class="indent2">
  1476. <span class="GPIO_IO3 GPIO_item">GPIO3 PWM Duty Cycle Resolution</span>
  1477. </td>
  1478. <td>
  1479. <input required type="number" id="GPIO_IO3_value3" min="1" max="20"
  1480. oninput="(!validity.rangeUnderflow||(value=1)) && (!validity.rangeOverflow||(value=20)) &&
  1481. (!validity.stepMismatch||(value=parseInt(this.value)));"><span class="GPIO_IO3 GPIO_item">Bits</span>
  1482. </td>
  1483. <td></td>
  1484. </tr>
  1485. <tr class="GPIO_IO3 GPIO_item expert">
  1486. <td class="indent2">
  1487. <span class="GPIO_IO3 GPIO_item">GPIO3 Enable MQTT</span>
  1488. </td>
  1489. <td><input type="checkbox" id="GPIO_IO3_value4"></td>
  1490. <td></td>
  1491. </tr>
  1492. <tr class="GPIO_IO3 GPIO_item expert">
  1493. <td class="indent2">
  1494. <span class="GPIO_IO3 GPIO_item">GPIO3 Enable REST API</span>
  1495. </td>
  1496. <td><input type="checkbox" id="GPIO_IO3_value5"></td>
  1497. <td></td>
  1498. </tr>
  1499. <tr class="GPIO_IO3 GPIO_item expert">
  1500. <td class="indent2">
  1501. <span class="GPIO_IO3 GPIO_item">GPIO3 Name</span>
  1502. </td>
  1503. <td><input type="text" id="GPIO_IO3_value6"></td>
  1504. <td></td>
  1505. </tr>
  1506. <!------------- GPIO3 end ------------------>
  1507. <!------------- GPIO4 begin ------------------>
  1508. <tr class="GPIO_item" style="border-bottom: 0px;">
  1509. <td class="indent1">
  1510. <input type="checkbox" id="GPIO_IO4_enabled" value="1" onclick = 'InvertEnableItem("GPIO", "IO4")' checked>
  1511. <label for=GPIO_IO4_enabled><span id="GPIO_IO4_text">GPIO4 Configuration</span></label>
  1512. </td>
  1513. <td>
  1514. <select id="GPIO_IO4_value1">
  1515. <option value="input">input</option>
  1516. <option value="input-pullup">input pullup</option>
  1517. <option value="input-pulldown">input pulldown</option>
  1518. <option value="output">output</option>
  1519. <option value="built-in-led" select>built-in led flash light</option>
  1520. </select>
  1521. </td>
  1522. <td>$TOOLTIP_GPIO_IO4</td>
  1523. </tr>
  1524. <tr class="GPIO_item" style="border-top: 0px;">
  1525. <td colspan="2" style="padding-left:28px">
  1526. <b>IMPORTANT NOTE:</b><br>
  1527. If you'd like to use the built-in flash LED in parallel with other GPIO functionality,
  1528. you have to explicitely activate the "built-in LED flash light" option on GPIO4. The light
  1529. intensity control (PWM) of the LED flash light is not functional anymore (only 100%).
  1530. </td>
  1531. </tr>
  1532. <tr class="GPIO_IO4 GPIO_item expert">
  1533. <td class="indent2">
  1534. <span class="GPIO_IO4 GPIO_item">GPIO4 Use Interrupt</span>
  1535. </td>
  1536. <td>
  1537. <select id="GPIO_IO4_value2">
  1538. <option value="disabled">disabled</option>
  1539. <option value="rising-edge">rising edge</option>
  1540. <option value="falling-edge">falling edge</option>
  1541. <option value="rising-and-falling">rising and falling</option>
  1542. <option value="low-level-trigger">low level trigger</option>
  1543. <option value="high-level-trigger">high level trigger</option>
  1544. </select>
  1545. </td>
  1546. <td></td>
  1547. </tr>
  1548. <tr class="GPIO_IO4 GPIO_item expert">
  1549. <td class="indent2">
  1550. <span class="GPIO_IO4 GPIO_item">GPIO4 PWM Duty Cycle Resolution</span>
  1551. </td>
  1552. <td>
  1553. <input required type="number" id="GPIO_IO4_value3" min="1" max="20"
  1554. oninput="(!validity.rangeUnderflow||(value=1)) && (!validity.rangeOverflow||(value=20)) &&
  1555. (!validity.stepMismatch||(value=parseInt(this.value)));"><span class="GPIO_IO4 GPIO_item">Bits</span>
  1556. </td>
  1557. <td></td>
  1558. </tr>
  1559. <tr class="GPIO_IO4 GPIO_item expert">
  1560. <td class="indent2">
  1561. <span class="GPIO_IO4 GPIO_item">GPIO4 Enable MQTT</span>
  1562. </td>
  1563. <td><input type="checkbox" id="GPIO_IO4_value4"></td>
  1564. <td></td>
  1565. </tr>
  1566. <tr class="GPIO_IO4 GPIO_item expert">
  1567. <td class="indent2">
  1568. <span class="GPIO_IO4 GPIO_item">GPIO4 Enable REST API</span>
  1569. </td>
  1570. <td><input type="checkbox" id="GPIO_IO4_value5"></td>
  1571. <td></td>
  1572. </tr>
  1573. <tr class="GPIO_IO4 GPIO_item expert">
  1574. <td class="indent2">
  1575. <span class="GPIO_IO4 GPIO_item">GPIO4 Name</span>
  1576. </td>
  1577. <td><input type="text" id="GPIO_IO4_value6"></td>
  1578. <td></td>
  1579. </tr>
  1580. <!------------- GPIO4 end ------------------>
  1581. <!------------- GPIO12 begin ------------------>
  1582. <tr class="GPIO_item">
  1583. <td class="indent1">
  1584. <input type="checkbox" id="GPIO_IO12_enabled" value="1" onclick = 'InvertEnableItem("GPIO", "IO12")' unchecked>
  1585. <label for=GPIO_IO12_enabled><span id="GPIO_IO12_text">GPIO12 Configuration</span></label>
  1586. </td>
  1587. <td>
  1588. <select id="GPIO_IO12_value1">
  1589. <option value="input">input</option>
  1590. <option value="input-pullup">input pullup</option>
  1591. <option value="input-pulldown">input pulldown</option>
  1592. <option value="output">output</option>
  1593. <!-- <option value="output-pwm">output-pwm</option> -->
  1594. <!-- <option value="external-flash-pwm">external-flash-pwm</option> -->
  1595. <option value="external-flash-ws281x">external flash light ws281x controlled</option>
  1596. </select>
  1597. </td>
  1598. <td>$TOOLTIP_GPIO_IO12</td>
  1599. </tr>
  1600. <tr class="GPIO_IO12 GPIO_item expert">
  1601. <td class="indent2">
  1602. <span class="GPIO_IO12 GPIO_item">GPIO12 Use Interrupt</span>
  1603. </td>
  1604. <td>
  1605. <select class="GPIO_IO12 GPIO_item" id="GPIO_IO12_value2">
  1606. <option value="disabled">disabled</option>
  1607. <option value="rising-edge">rising edge</option>
  1608. <option value="falling-edge">falling edge</option>
  1609. <option value="rising-and-falling">rising and falling</option>
  1610. <option value="low-level-trigger">low level trigger</option>
  1611. <option value="high-level-trigger">high level trigger</option>
  1612. </select>
  1613. </td>
  1614. <td></td>
  1615. </tr>
  1616. <tr class="GPIO_IO12 GPIO_item expert">
  1617. <td class="indent2">
  1618. <span class="GPIO_IO12 GPIO_item">GPIO12 PWM Duty Cycle Resolution</span>
  1619. </td>
  1620. <td>
  1621. <input required type="number" id="GPIO_IO12_value3" min="1" max="20"
  1622. oninput="(!validity.rangeUnderflow||(value=1)) && (!validity.rangeOverflow||(value=20)) &&
  1623. (!validity.stepMismatch||(value=parseInt(this.value)));"><span class="GPIO_IO12 GPIO_item">Bits</span>
  1624. </td>
  1625. <td></td>
  1626. </tr>
  1627. <tr class="GPIO_IO12 GPIO_item expert">
  1628. <td class="indent2">
  1629. <span class="GPIO_IO12 GPIO_item">GPIO12 Enable MQTT</span>
  1630. </td>
  1631. <td><input type="checkbox" id="GPIO_IO12_value4"></td>
  1632. <td></td>
  1633. </tr>
  1634. <tr class="GPIO_IO12 GPIO_item expert">
  1635. <td class="indent2">
  1636. <span class="GPIO_IO12 GPIO_item">GPIO12 Enable REST API</span>
  1637. </td>
  1638. <td><input type="checkbox" id="GPIO_IO12_value5"></td>
  1639. <td></td>
  1640. </tr>
  1641. <tr class="GPIO_IO12 GPIO_item expert">
  1642. <td class="indent2">
  1643. <span class="GPIO_IO12 GPIO_item">GPIO12 Name</span>
  1644. </td>
  1645. <td><input type="text" id="GPIO_IO12_value6"></td>
  1646. <td></td>
  1647. </tr>
  1648. <tr class="GPIO_item" unused_id="wstypeex3">
  1649. <td class="indent1">
  1650. <span class="GPIO_IO12 GPIO_item" id="GPIO_LEDType_text">LED Type (NeoPixel)</span>
  1651. </td>
  1652. <td class="GPIO_item">
  1653. <select class="GPIO_item" id="GPIO_LEDType_value1">
  1654. <option value="WS2812" selected>WS2812</option>
  1655. <option value="WS2812B">WS2812B</option>
  1656. <option value="SK6812">SK6812</option>
  1657. <option value="WS2813">WS2813 (not tested)</option>
  1658. </select>
  1659. </td>
  1660. <td>$TOOLTIP_GPIO_LEDType</td>
  1661. </tr>
  1662. <tr class="GPIO_item" unused_id="LEDANZex8" >
  1663. <td class="indent1">
  1664. <span class="GPIO_item" id="GPIO_LEDNumbers_text">Numbers of LEDs</span>
  1665. </td>
  1666. <td>
  1667. <input required type="number" name="name" id="GPIO_LEDNumbers_value1" size="13" min="1"
  1668. oninput="(!validity.rangeUnderflow||(value=1)) && (!validity.stepMismatch||(value=parseInt(this.value)));">
  1669. </td>
  1670. <td>$TOOLTIP_GPIO_LEDNumbers</td>
  1671. </tr>
  1672. <tr class="GPIO_item" unused_id="LEDRGBex9">
  1673. <td class="indent1">
  1674. <span class="GPIO_item" id="GPIO_LEDColor_text">LED Color</span>
  1675. </td>
  1676. <td>
  1677. R <input required type="number" class="GPIO_IO12 GPIO_item" id="GPIO_LEDColor_value1"
  1678. min="0" max="255" step="1" oninput="(!validity.rangeUnderflow||(value=0)) && (!validity.rangeOverflow||(value=255)) &&
  1679. (!validity.stepMismatch||(value=parseInt(this.value)));">
  1680. </td>
  1681. <td>$TOOLTIP_GPIO_LEDColor</td>
  1682. </tr>
  1683. <tr class="GPIO_item" unused_id="LEDRGBex9">
  1684. <td></td>
  1685. <td>
  1686. G <input required type="number" class="GPIO_IO12 GPIO_item" id="GPIO_LEDColor_value2"
  1687. min="0" max="255" step="1" oninput="(!validity.rangeUnderflow||(value=0)) && (!validity.rangeOverflow||(value=255)) &&
  1688. (!validity.stepMismatch||(value=parseInt(this.value)));">
  1689. </td>
  1690. </tr>
  1691. <tr class="GPIO_item" unused_id="LEDRGBex9">
  1692. <td></td>
  1693. <td>
  1694. B <input required type="number" class="GPIO_IO12 GPIO_item" id="GPIO_LEDColor_value3"
  1695. min="0" max="255" step="1" oninput="(!validity.rangeUnderflow||(value=0)) && (!validity.rangeOverflow||(value=255)) &&
  1696. (!validity.stepMismatch||(value=parseInt(this.value)));">
  1697. </td>
  1698. </tr>
  1699. <!------------- GPIO12 end ------------------>
  1700. <!------------- GPIO13 begin ------------------>
  1701. <tr class="GPIO_IO13 GPIO_item expert">
  1702. <td class="indent1">
  1703. <input type="checkbox" id="GPIO_IO13_enabled" value="1" onclick = 'InvertEnableItem("GPIO", "IO13")' unchecked>
  1704. <label for=GPIO_IO13_enabled><span id="GPIO_IO13_text">GPIO13 Configuration</span></label>
  1705. </td>
  1706. <td>
  1707. <select id="GPIO_IO13_value1">
  1708. <option value="input">input</option>
  1709. <option value="input-pullup">input pullup</option>
  1710. <option value="input-pulldown">input pulldown</option>
  1711. <option value="output">output</option>
  1712. </select>
  1713. </td>
  1714. <td>$TOOLTIP_GPIO_IO13</td>
  1715. </tr>
  1716. <tr class="GPIO_IO13 GPIO_item expert">
  1717. <td class="indent2">
  1718. <span class="GPIO_IO13 GPIO_item">GPIO13 Use Interrupt</span>
  1719. </td>
  1720. <td>
  1721. <select id="GPIO_IO13_value2">
  1722. <option value="disabled">disabled</option>
  1723. <option value="rising-edge" disabled>rising edge</option>
  1724. <option value="falling-edge" disabled>falling edge</option>
  1725. <option value="rising-and-falling">rising and falling</option>
  1726. <option value="low-level-trigger">low level trigger</option>
  1727. <option value="high-level-trigger">high level trigger</option>
  1728. </select>
  1729. </td>
  1730. <td></td>
  1731. </tr>
  1732. <tr class="GPIO_IO13 GPIO_item expert">
  1733. <td class="indent2">
  1734. <span class="GPIO_IO13 GPIO_item">GPIO13 PWM Duty Cycle Resolution</span>
  1735. </td>
  1736. <td>
  1737. <input required type="number" id="GPIO_IO13_value3" min="1" max="20"
  1738. oninput="(!validity.rangeUnderflow||(value=1)) && (!validity.rangeOverflow||(value=20)) &&
  1739. (!validity.stepMismatch||(value=parseInt(this.value)));"><span class="GPIO_IO13 GPIO_item">Bits</span>
  1740. </td>
  1741. <td></td>
  1742. </tr>
  1743. <tr class="GPIO_IO13 GPIO_item expert">
  1744. <td class="indent2">
  1745. <span class="GPIO_IO13 GPIO_item">GPIO13 Enable MQTT</span>
  1746. </td>
  1747. <td><input type="checkbox" id="GPIO_IO13_value4"></td>
  1748. <td></td>
  1749. </tr>
  1750. <tr class="GPIO_IO13 GPIO_item expert">
  1751. <td class="indent2">
  1752. <span class="GPIO_IO13 GPIO_item">GPIO13 Enable REST API</span>
  1753. </td>
  1754. <td><input type="checkbox" id="GPIO_IO13_value5"></td>
  1755. <td></td>
  1756. </tr>
  1757. <tr class="GPIO_IO13 GPIO_item expert">
  1758. <td class="indent2">
  1759. <span class="GPIO_IO13 GPIO_item">GPIO13 Name</span>
  1760. </td>
  1761. <td><input type="text" id="GPIO_IO13_value6"></td>
  1762. <td></td>
  1763. </tr>
  1764. <!------------- GPIO13 end ------------------>
  1765. <!------------- Autotimer ------------------>
  1766. <tr style="border-bottom: 2px solid lightgray;">
  1767. <td colspan="3" style="padding-left: 0px; padding-bottom: 3px;"><h4>Auto Timer</h4></td>
  1768. </tr>
  1769. <!--
  1770. <tr class="expert" unused_id="ex13">
  1771. <td class="indent1">
  1772. <class id="AutoTimer_AutoStart_text" style="color:black;">Automatic Round Start</class>
  1773. </td>
  1774. <td>
  1775. <select id="AutoTimer_AutoStart_value1">
  1776. <option value="true">enabled (true)</option>
  1777. <option value="false" selected>disabled (false)</option>
  1778. </select>
  1779. </td>
  1780. <td>$TOOLTIP_AutoTimer_AutoStart</td>
  1781. </tr>
  1782. -->
  1783. <tr>
  1784. <td class="indent1">
  1785. <class id="AutoTimer_Interval_text" style="color:black;">Round Interval</class>
  1786. </td>
  1787. <td>
  1788. <input required type="number" id="AutoTimer_Interval_value1" size="13" min="1" step="any"
  1789. oninput="(!validity.rangeUnderflow||(value=1));">Minutes
  1790. </td>
  1791. <td>$TOOLTIP_AutoTimer_Interval</td>
  1792. </tr>
  1793. <!------------- Data Logging ------------------>
  1794. <tr style="border-bottom: 2px solid lightgray;">
  1795. <td colspan="3" style="padding-left: 0px; padding-bottom: 3px;"><h4>Data Logging</h4></td>
  1796. </tr>
  1797. <tr>
  1798. <td class="indent1">
  1799. <class id="DataLogging_DataLogActive_text" style="color:black;">Data Logging</class>
  1800. </td>
  1801. <td>
  1802. <select id="DataLogging_DataLogActive_value1">
  1803. <option value="true">enabled (true)</option>
  1804. <option value="false" selected>disabled (false)</option>
  1805. </select>
  1806. </td>
  1807. <td>$TOOLTIP_DataLogging_DataLogActive</td>
  1808. </tr>
  1809. <tr>
  1810. <td class="indent1">
  1811. <class id="DataLogging_DataFilesRetention_text" style="color:black;">Data Files Retention</class>
  1812. </td>
  1813. <td>
  1814. <input required type="number" id="DataLogging_DataFilesRetention_value1" size="13" min="0" step="1"
  1815. oninput="(!validity.rangeUnderflow||(value=0)) && (!validity.stepMismatch||(value=parseInt(this.value)));">Days
  1816. </td>
  1817. <td>$TOOLTIP_DataLogging_DataFilesRetention</td>
  1818. </tr>
  1819. <!------------- Debug Logging ------------------>
  1820. <tr style="border-bottom: 2px solid lightgray;">
  1821. <td colspan="3" style="padding-left: 0px; padding-bottom: 3px;"><h4>Debug</h4></td>
  1822. </tr>
  1823. <tr>
  1824. <td class="indent1">
  1825. <class id="Debug_LogLevel_text" style="color:black;">Logfile Log Level</class>
  1826. </td>
  1827. <td>
  1828. <select id="Debug_LogLevel_value1">
  1829. <option value="1" selected>ERROR</option> <!-- matches esp_log_level_t -->
  1830. <option value="2">WARNING</option>
  1831. <option value="3">INFO</option>
  1832. <option value="4">DEBUG</option>
  1833. </select>
  1834. </td>
  1835. <td>$TOOLTIP_Debug_LogLevel</td>
  1836. </tr>
  1837. <tr>
  1838. <td class="indent1">
  1839. <class id="Debug_LogfilesRetention_text" style="color:black;">Logfiles Retention</class>
  1840. </td>
  1841. <td>
  1842. <input required type="number" id="Debug_LogfilesRetention_value1" size="13" min="0" step="1"
  1843. oninput="(!validity.rangeUnderflow||(value=0)) && (!validity.stepMismatch||(value=parseInt(this.value)));">Days
  1844. </td>
  1845. <td>$TOOLTIP_Debug_LogfilesRetention</td>
  1846. </tr>
  1847. <!------------- System ------------------>
  1848. <tr style="border-bottom: 2px solid lightgray;">
  1849. <td colspan="3" style="padding-left: 0px; padding-bottom: 3px;"><h4>System</h4></td>
  1850. </tr>
  1851. <tr>
  1852. <td class="indent1">
  1853. <input type="checkbox" id="System_TimeZone_enabled" value="1" onclick = 'InvertEnableItem("System", "TimeZone")' unchecked >
  1854. <label for=System_TimeZone_enabled><class id="System_TimeZone_text" style="color:black;">Time Zone</class></label>
  1855. <p></p><p></p>
  1856. </td>
  1857. <td>
  1858. <input type="text" id="System_TimeZone_value1">
  1859. <p>Use <a href="timezones.html" target="_blank">timezones</a> to find your settings</p>
  1860. </td>
  1861. <td>$TOOLTIP_System_TimeZone</td>
  1862. </tr>
  1863. <tr class="expert" unused_id="ex16">
  1864. <td class="indent1">
  1865. <input type="checkbox" id="System_TimeServer_enabled" value="1" onclick = 'InvertEnableItem("System", "TimeServer")' unchecked >
  1866. <label for=System_TimeServer_enabled><class id="System_TimeServer_text" style="color:black;">Time Server (NTP)</class></label>
  1867. </td>
  1868. <td>
  1869. <input type="text" id="System_TimeServer_value1">
  1870. </td>
  1871. <td>$TOOLTIP_System_TimeServer</td>
  1872. </tr>
  1873. <tr class="expert" unused_id="System_Hostname">
  1874. <td class="indent1">
  1875. <input type="checkbox" id="System_Hostname_enabled" value="1" onclick = 'InvertEnableItem("System", "Hostname")' unchecked >
  1876. <label for=System_Hostname_enabled><class id="System_Hostname_text" style="color:black;">Hostname</class></label>
  1877. </td>
  1878. <td>
  1879. <input type="text" id="System_Hostname_value1">
  1880. </td>
  1881. <td>$TOOLTIP_System_Hostname</td>
  1882. </tr>
  1883. <tr class="expert" unused_id="System_RSSIThreshold">
  1884. <td class="indent1">
  1885. <input type="checkbox" id="System_RSSIThreshold_enabled" value="1" onclick = 'InvertEnableItem("System", "RSSIThreshold")' unchecked >
  1886. <label for=System_RSSIThreshold_enabled><class id="System_RSSIThreshold_text" style="color:black;">RSSI Threshold</class></label>
  1887. </td>
  1888. <td>
  1889. <input required type="number" name="name" id="System_RSSIThreshold_value1" min="-100" max="0" step="1"
  1890. oninput="(!validity.rangeUnderflow||(value=-100)) && (!validity.rangeOverflow||(value=0)) &&
  1891. (!validity.stepMismatch||(value=parseInt(this.value)));">dBm
  1892. </td>
  1893. <td>$TOOLTIP_System_RSSIThreshold</td>
  1894. </tr>
  1895. <tr class="expert" unused_id="System_CPUFrequency">
  1896. <td class="indent1">
  1897. <input type="checkbox" id="System_CPUFrequency_enabled" value="1" onclick = 'InvertEnableItem("System", "CPUFrequency")' unchecked >
  1898. <label for=System_CPUFrequency_enabled><class id="System_CPUFrequency_text" style="color:black;">CPU Frequency</class></label>
  1899. </td>
  1900. <td>
  1901. <select id="System_CPUFrequency_value1">
  1902. <option value="160" selected>160 MHz</option>
  1903. <option value="240">240 MHz</option>
  1904. </select>
  1905. </td>
  1906. <td>$TOOLTIP_System_CPUFrequency</td>
  1907. </tr>
  1908. <tr>
  1909. <td class="indent1">
  1910. <class id="System_Tooltip_text" style="color:black;">Tooltip</class>
  1911. </td>
  1912. <td>
  1913. <select id="System_Tooltip_value1" onchange="UpdateTooltipModus()">
  1914. <option value="true">enabled (true)</option>
  1915. <option value="false" selected>disabled (false)</option>
  1916. </select>
  1917. </td>
  1918. <td></td>
  1919. </tr>
  1920. </table>
  1921. <hr>
  1922. <button class="button" onclick="saveTextAsFile()">Save Config</button>
  1923. </div>
  1924. <script type="text/javascript" src="readconfigparam.js?v=$COMMIT_HASH"></script>
  1925. <script type="text/javascript" src="readconfigcommon.js?v=$COMMIT_HASH"></script>
  1926. <script type="text/javascript">
  1927. var canvas = document.getElementById('canvas'),
  1928. domainname = getDomainname(),
  1929. changeCamValue = 0,
  1930. param,
  1931. category,
  1932. NUNBERSAkt = -1,
  1933. NUMBERS;
  1934. function cameraParameterChanged() {
  1935. changeCamValue = 1;
  1936. if(!document.getElementById("TakeImage_CamZoom_value1").selectedIndex) {
  1937. // EnDisableItem(_status, _param, _category, _cat, _name, _optional, _number = -1)
  1938. EnDisableItem(true, param, category, "TakeImage", "CamZoomOffsetX", false);
  1939. EnDisableItem(true, param, category, "TakeImage", "CamZoomOffsetY", false);
  1940. EnDisableItem(true, param, category, "TakeImage", "CamZoomSize", false);
  1941. }
  1942. else {
  1943. EnDisableItem(false, param, category, "TakeImage", "CamZoomOffsetX", false);
  1944. EnDisableItem(false, param, category, "TakeImage", "CamZoomOffsetY", false);
  1945. EnDisableItem(false, param, category, "TakeImage", "CamZoomSize", false);
  1946. }
  1947. if(document.getElementById("TakeImage_CamAutoSharpness_value1").selectedIndex) {
  1948. EnDisableItem(true, param, category, "TakeImage", "CamSharpness", false);
  1949. }
  1950. else {
  1951. EnDisableItem(false, param, category, "TakeImage", "CamSharpness", false);
  1952. }
  1953. }
  1954. function LoadConfigNeu() {
  1955. if (!loadConfig(domainname)) {
  1956. firework.launch('Configuration could not be loaded! Please reload the page!', 'danger', 30000);
  1957. return;
  1958. }
  1959. param = getCamConfig();
  1960. category = getConfigCategory();
  1961. InitIndivParameter();
  1962. UpdateInput();
  1963. var sel = document.getElementById("Numbers_value1");
  1964. UpdateInputIndividual(sel);
  1965. UpdateExpertModus();
  1966. UpdateTooltipModus();
  1967. document.getElementById("divall").style.display = '';
  1968. if(!document.getElementById("TakeImage_CamZoom_value1").selectedIndex) {
  1969. // EnDisableItem(_status, _param, _category, _cat, _name, _optional, _number = -1)
  1970. EnDisableItem(true, param, category, "TakeImage", "CamZoomOffsetX", false);
  1971. EnDisableItem(true, param, category, "TakeImage", "CamZoomOffsetY", false);
  1972. EnDisableItem(true, param, category, "TakeImage", "CamZoomSize", false);
  1973. }
  1974. else {
  1975. EnDisableItem(false, param, category, "TakeImage", "CamZoomOffsetX", false);
  1976. EnDisableItem(false, param, category, "TakeImage", "CamZoomOffsetY", false);
  1977. EnDisableItem(false, param, category, "TakeImage", "CamZoomSize", false);
  1978. }
  1979. if(document.getElementById("TakeImage_CamAutoSharpness_value1").selectedIndex) {
  1980. EnDisableItem(true, param, category, "TakeImage", "CamSharpness", false);
  1981. }
  1982. else {
  1983. EnDisableItem(false, param, category, "TakeImage", "CamSharpness", false);
  1984. }
  1985. }
  1986. function InitIndivParameter() {
  1987. NUMBERS = getNUMBERInfo();
  1988. var _index = document.getElementById("Numbers_value1");
  1989. while (_index.length) {
  1990. _index.remove(0);
  1991. }
  1992. var _indexInflux = document.getElementById("NumbersInfluxDBv2_value1");
  1993. while (_indexInflux.length) {
  1994. _indexInflux.remove(0);
  1995. }
  1996. var _indexInfluxv1 = document.getElementById("NumbersInfluxDB_value1");
  1997. while (_indexInfluxv1.length) {
  1998. _indexInfluxv1.remove(0);
  1999. }
  2000. var _indexMQTTIdx = document.getElementById("NumbersMQTTIdx_value1");
  2001. while (_indexMQTTIdx.length) {
  2002. _indexMQTTIdx.remove(0);
  2003. }
  2004. for (var i = 0; i < NUMBERS.length; ++i) {
  2005. var option = document.createElement("option");
  2006. option.text = NUMBERS[i]["name"];
  2007. option.value = i;
  2008. _index.add(option);
  2009. var optionInflux = document.createElement("option");
  2010. optionInflux.text = NUMBERS[i]["name"];
  2011. optionInflux.value = i;
  2012. _indexInflux.add(optionInflux);
  2013. var optionInfluxv1 = document.createElement("option");
  2014. optionInfluxv1.text = NUMBERS[i]["name"];
  2015. optionInfluxv1.value = i;
  2016. _indexInfluxv1.add(optionInfluxv1);
  2017. var optionMQTTIdx = document.createElement("option");
  2018. optionMQTTIdx.text = NUMBERS[i]["name"];
  2019. optionMQTTIdx.value = i;
  2020. _indexMQTTIdx.add(optionMQTTIdx);
  2021. }
  2022. _index.selectedIndex = 0;
  2023. _indexInflux.selectedIndex = 0;
  2024. _indexInfluxv1.selectedIndex = 0;
  2025. _indexMQTTIdx.selectedIndex = 0;
  2026. }
  2027. function UpdateInputIndividual(sel) {
  2028. if (NUNBERSAkt != -1) {
  2029. // ReadParameter(param, "PostProcessing", "PreValueUse", false, NUNBERSAkt);
  2030. ReadParameter(param, "PostProcessing", "DecimalShift", true, NUNBERSAkt);
  2031. ReadParameter(param, "PostProcessing", "AnalogToDigitTransitionStart", true, NUNBERSAkt);
  2032. ReadParameter(param, "PostProcessing", "ChangeRateThreshold", true, NUNBERSAkt);
  2033. ReadParameter(param, "PostProcessing", "MaxRateValue", true, NUNBERSAkt);
  2034. ReadParameter(param, "PostProcessing", "MaxRateType", true, NUNBERSAkt);
  2035. ReadParameter(param, "PostProcessing", "ExtendedResolution", false, NUNBERSAkt);
  2036. ReadParameter(param, "PostProcessing", "IgnoreLeadingNaN", false, NUNBERSAkt);
  2037. // ReadParameter(param, "PostProcessing", "IgnoreAllNaN", false, NUNBERSAkt);
  2038. ReadParameter(param, "PostProcessing", "AllowNegativeRates", false, NUNBERSAkt);
  2039. ReadParameter(param, "PostProcessing", "CheckDigitIncreaseConsistency", false, NUNBERSAkt);
  2040. ReadParameter(param, "InfluxDB", "Field", true, NUNBERSAkt);
  2041. ReadParameter(param, "InfluxDBv2", "Field", true, NUNBERSAkt);
  2042. ReadParameter(param, "InfluxDB", "Measurement", true, NUNBERSAkt);
  2043. ReadParameter(param, "InfluxDBv2", "Measurement", true, NUNBERSAkt);
  2044. ReadParameter(param, "MQTT", "DomoticzIDX", true, NUNBERSAkt);
  2045. }
  2046. // var sel = document.getElementById("Numbers_value1");
  2047. NUNBERSAkt = sel.selectedIndex;
  2048. // WriteParameter(param, category, "PostProcessing", "PreValueUse", false, NUNBERSAkt);
  2049. WriteParameter(param, category, "PostProcessing", "DecimalShift", true, NUNBERSAkt);
  2050. WriteParameter(param, category, "PostProcessing", "AnalogToDigitTransitionStart", true, NUNBERSAkt);
  2051. WriteParameter(param, category, "PostProcessing", "ChangeRateThreshold", true, NUNBERSAkt);
  2052. WriteParameter(param, category, "PostProcessing", "MaxRateValue", true, NUNBERSAkt);
  2053. WriteParameter(param, category, "PostProcessing", "MaxRateType", true, NUNBERSAkt);
  2054. WriteParameter(param, category, "PostProcessing", "ExtendedResolution", false, NUNBERSAkt);
  2055. WriteParameter(param, category, "PostProcessing", "IgnoreLeadingNaN", false, NUNBERSAkt);
  2056. // WriteParameter(param, category, "PostProcessing", "IgnoreAllNaN", false, NUNBERSAkt);
  2057. WriteParameter(param, category, "PostProcessing", "AllowNegativeRates", false, NUNBERSAkt);
  2058. WriteParameter(param, category, "PostProcessing", "CheckDigitIncreaseConsistency", false, NUNBERSAkt);
  2059. WriteParameter(param, category, "InfluxDB", "Field", true, NUNBERSAkt);
  2060. WriteParameter(param, category, "InfluxDBv2", "Field", true, NUNBERSAkt);
  2061. WriteParameter(param, category, "InfluxDB", "Measurement", true, NUNBERSAkt);
  2062. WriteParameter(param, category, "InfluxDBv2", "Measurement", true, NUNBERSAkt);
  2063. WriteParameter(param, category, "MQTT", "DomoticzIDX", true, NUNBERSAkt);
  2064. }
  2065. function UpdateInput() {
  2066. document.getElementById("Category_Digits_enabled").checked = category["Digits"]["enabled"];
  2067. setVisible("DigitItem", category["Digits"]["enabled"]);
  2068. document.getElementById("Category_Analog_enabled").checked = category["Analog"]["enabled"];
  2069. setVisible("AnalogItem", category["Analog"]["enabled"]);
  2070. document.getElementById("Category_MQTT_enabled").checked = category["MQTT"]["enabled"];
  2071. setVisible("MQTTItem", category["MQTT"]["enabled"]);
  2072. document.getElementById("Category_GPIO_enabled").checked = category["GPIO"]["enabled"];
  2073. setVisible("GPIO_item", category["GPIO"]["enabled"]);
  2074. document.getElementById("Category_InfluxDB_enabled").checked = category["InfluxDB"]["enabled"];
  2075. setVisible("InfluxDBv1Item", category["InfluxDB"]["enabled"]);
  2076. document.getElementById("Category_InfluxDBv2_enabled").checked = category["InfluxDBv2"]["enabled"];
  2077. setVisible("InfluxDBv2Item", category["InfluxDBv2"]["enabled"]);
  2078. document.getElementById("Category_Webhook_enabled").checked = category["Webhook"]["enabled"];
  2079. setVisible("WebhookItem", category["Webhook"]["enabled"]);
  2080. WriteParameter(param, category, "TakeImage", "RawImagesLocation", true);
  2081. WriteParameter(param, category, "TakeImage", "RawImagesRetention", true);
  2082. WriteParameter(param, category, "TakeImage", "WaitBeforeTakingPicture", false);
  2083. WriteParameter(param, category, "TakeImage", "CamGainceiling", false);
  2084. WriteParameter(param, category, "TakeImage", "CamQuality", false);
  2085. WriteParameter(param, category, "TakeImage", "CamBrightness", false);
  2086. WriteParameter(param, category, "TakeImage", "CamContrast", false);
  2087. WriteParameter(param, category, "TakeImage", "CamSaturation", false);
  2088. WriteParameter(param, category, "TakeImage", "CamSharpness", false);
  2089. WriteParameter(param, category, "TakeImage", "CamAutoSharpness", false);
  2090. WriteParameter(param, category, "TakeImage", "CamSpecialEffect", false);
  2091. WriteParameter(param, category, "TakeImage", "CamWbMode", false);
  2092. WriteParameter(param, category, "TakeImage", "CamAwb", false);
  2093. WriteParameter(param, category, "TakeImage", "CamAwbGain", false);
  2094. WriteParameter(param, category, "TakeImage", "CamAec", false);
  2095. WriteParameter(param, category, "TakeImage", "CamAec2", false);
  2096. WriteParameter(param, category, "TakeImage", "CamAeLevel", false);
  2097. WriteParameter(param, category, "TakeImage", "CamAecValue", false);
  2098. WriteParameter(param, category, "TakeImage", "CamAgc", false);
  2099. WriteParameter(param, category, "TakeImage", "CamAgcGain", false);
  2100. WriteParameter(param, category, "TakeImage", "CamBpc", false);
  2101. WriteParameter(param, category, "TakeImage", "CamWpc", false);
  2102. WriteParameter(param, category, "TakeImage", "CamRawGma", false);
  2103. WriteParameter(param, category, "TakeImage", "CamLenc", false);
  2104. WriteParameter(param, category, "TakeImage", "CamHmirror", false);
  2105. WriteParameter(param, category, "TakeImage", "CamVflip", false);
  2106. WriteParameter(param, category, "TakeImage", "CamDcw", false);
  2107. WriteParameter(param, category, "TakeImage", "CamDenoise", false);
  2108. WriteParameter(param, category, "TakeImage", "CamZoom", false);
  2109. WriteParameter(param, category, "TakeImage", "CamZoomOffsetX", false);
  2110. WriteParameter(param, category, "TakeImage", "CamZoomOffsetY", false);
  2111. WriteParameter(param, category, "TakeImage", "CamZoomSize", false);
  2112. WriteParameter(param, category, "TakeImage", "LEDIntensity", false);
  2113. WriteParameter(param, category, "TakeImage", "Demo", false);
  2114. WriteParameter(param, category, "Alignment", "SearchFieldX", false);
  2115. WriteParameter(param, category, "Alignment", "SearchFieldY", false);
  2116. WriteParameter(param, category, "Alignment", "AlignmentAlgo", true);
  2117. WriteParameter(param, category, "Alignment", "InitialRotate", false);
  2118. WriteParameter(param, category, "Digits", "CNNGoodThreshold", true);
  2119. WriteParameter(param, category, "Digits", "ROIImagesLocation", true);
  2120. WriteParameter(param, category, "Digits", "ROIImagesRetention", true);
  2121. WriteParameter(param, category, "Analog", "ROIImagesLocation", true);
  2122. WriteParameter(param, category, "Analog", "ROIImagesRetention", true);
  2123. WriteParameter(param, category, "PostProcessing", "PreValueUse", false);
  2124. WriteParameter(param, category, "PostProcessing", "PreValueAgeStartup", true);
  2125. WriteParameter(param, category, "PostProcessing", "ErrorMessage", false);
  2126. // WriteParameter(param, category, "PostProcessing", "CheckDigitIncreaseConsistency", false);
  2127. WriteParameter(param, category, "MQTT", "Uri", true);
  2128. WriteParameter(param, category, "MQTT", "MainTopic", true);
  2129. WriteParameter(param, category, "MQTT", "ClientID", true);
  2130. WriteParameter(param, category, "MQTT", "user", true);
  2131. WriteParameter(param, category, "MQTT", "password", true);
  2132. WriteParameter(param, category, "MQTT", "RetainMessages", false);
  2133. WriteParameter(param, category, "MQTT", "HomeassistantDiscovery", false);
  2134. WriteParameter(param, category, "MQTT", "MeterType", true);
  2135. WriteParameter(param, category, "MQTT", "CACert", true);
  2136. WriteParameter(param, category, "MQTT", "ClientCert", true);
  2137. WriteParameter(param, category, "MQTT", "ClientKey", true);
  2138. WriteParameter(param, category, "MQTT", "ValidateServerCert", true);
  2139. WriteParameter(param, category, "MQTT", "DomoticzTopicIn", true);
  2140. WriteParameter(param, category, "InfluxDB", "Uri", true);
  2141. WriteParameter(param, category, "InfluxDB", "Database", true);
  2142. // WriteParameter(param, category, "InfluxDB", "Measurement", true);
  2143. WriteParameter(param, category, "InfluxDB", "user", true);
  2144. WriteParameter(param, category, "InfluxDB", "password", true);
  2145. // WriteParameter(param, category, "InfluxDB", "Field", true);
  2146. WriteParameter(param, category, "InfluxDBv2", "Uri", true);
  2147. WriteParameter(param, category, "InfluxDBv2", "Bucket", true);
  2148. // WriteParameter(param, category, "InfluxDBv2", "Measurement", true);
  2149. WriteParameter(param, category, "InfluxDBv2", "Org", true);
  2150. WriteParameter(param, category, "InfluxDBv2", "Token", true);
  2151. // WriteParameter(param, category, "InfluxDBv2", "Field", true);
  2152. WriteParameter(param, category, "Webhook", "Uri", true);
  2153. WriteParameter(param, category, "Webhook", "ApiKey", true);
  2154. WriteParameter(param, category, "Webhook", "UploadImg", false);
  2155. WriteParameter(param, category, "GPIO", "IO0", true);
  2156. WriteParameter(param, category, "GPIO", "IO1", true);
  2157. WriteParameter(param, category, "GPIO", "IO3", true);
  2158. WriteParameter(param, category, "GPIO", "IO4", true);
  2159. WriteParameter(param, category, "GPIO", "IO12", true);
  2160. WriteParameter(param, category, "GPIO", "IO13", true);
  2161. WriteParameter(param, category, "GPIO", "LEDType", false);
  2162. WriteParameter(param, category, "GPIO", "LEDNumbers", false);
  2163. WriteParameter(param, category, "GPIO", "LEDColor", false);
  2164. //WriteParameter(param, category, "AutoTimer", "AutoStart", false);
  2165. WriteParameter(param, category, "AutoTimer", "Interval", false);
  2166. WriteParameter(param, category, "DataLogging", "DataLogActive", false);
  2167. WriteParameter(param, category, "DataLogging", "DataFilesRetention", false);
  2168. WriteParameter(param, category, "Debug", "LogLevel", false);
  2169. WriteParameter(param, category, "Debug", "LogfilesRetention", false);
  2170. WriteParameter(param, category, "System", "Tooltip", false);
  2171. WriteParameter(param, category, "System", "TimeZone", true);
  2172. WriteParameter(param, category, "System", "Hostname", true);
  2173. WriteParameter(param, category, "System", "TimeServer", true);
  2174. WriteParameter(param, category, "System", "RSSIThreshold", true);
  2175. WriteParameter(param, category, "System", "CPUFrequency", true);
  2176. WriteModelFiles();
  2177. }
  2178. function WriteModelFiles() {
  2179. list_tflite = getTFLITEList();
  2180. var _indexDig = document.getElementById("Digits_Model_value1");
  2181. var _indexAna = document.getElementById("Analog_Model_value1");
  2182. while (_indexDig.length) {
  2183. _indexDig.remove(0);
  2184. }
  2185. while (_indexAna.length) {
  2186. _indexAna.remove(0);
  2187. }
  2188. for (var i = 0; i < list_tflite.length; ++i) {
  2189. var optionDig = document.createElement("option");
  2190. var optionAna = document.createElement("option");
  2191. var text = list_tflite[i].replace("/config/", "");
  2192. if (list_tflite[i].includes("/dig")) { // Its a digit file, only show in the digits list box
  2193. optionDig.text = text;
  2194. optionDig.value = list_tflite[i];
  2195. _indexDig.add(optionDig);
  2196. }
  2197. else if (list_tflite[i].includes("/ana")) { // Its a digit file, only show in the analog list box
  2198. optionAna.text = text;
  2199. optionAna.value = list_tflite[i];
  2200. _indexAna.add(optionAna);
  2201. }
  2202. else { // all other files, show in both list boxes
  2203. optionDig.text = text;
  2204. optionDig.value = list_tflite[i];
  2205. _indexDig.add(optionDig);
  2206. optionAna.text = text;
  2207. optionAna.value = list_tflite[i];
  2208. _indexAna.add(optionAna);
  2209. }
  2210. }
  2211. WriteParameter(param, category, "Analog", "Model", false);
  2212. WriteParameter(param, category, "Digits", "Model", false);
  2213. }
  2214. function ReadParameterAll() {
  2215. category["Analog"]["enabled"] = document.getElementById("Category_Analog_enabled").checked;
  2216. category["Digits"]["enabled"] = document.getElementById("Category_Digits_enabled").checked;
  2217. category["MQTT"]["enabled"] = document.getElementById("Category_MQTT_enabled").checked;
  2218. category["InfluxDB"]["enabled"] = document.getElementById("Category_InfluxDB_enabled").checked;
  2219. category["InfluxDBv2"]["enabled"] = document.getElementById("Category_InfluxDBv2_enabled").checked;
  2220. category["Webhook"]["enabled"] = document.getElementById("Category_Webhook_enabled").checked;
  2221. category["GPIO"]["enabled"] = document.getElementById("Category_GPIO_enabled").checked;
  2222. ReadParameter(param, "TakeImage", "RawImagesLocation", true);
  2223. ReadParameter(param, "TakeImage", "RawImagesRetention", true);
  2224. ReadParameter(param, "TakeImage", "WaitBeforeTakingPicture", false);
  2225. ReadParameter(param, "TakeImage", "CamGainceiling", false);
  2226. ReadParameter(param, "TakeImage", "CamQuality", false);
  2227. ReadParameter(param, "TakeImage", "CamBrightness", false);
  2228. ReadParameter(param, "TakeImage", "CamContrast", false);
  2229. ReadParameter(param, "TakeImage", "CamSaturation", false);
  2230. ReadParameter(param, "TakeImage", "CamSharpness", false);
  2231. ReadParameter(param, "TakeImage", "CamAutoSharpness", false);
  2232. ReadParameter(param, "TakeImage", "CamSpecialEffect", false);
  2233. ReadParameter(param, "TakeImage", "CamWbMode", false);
  2234. ReadParameter(param, "TakeImage", "CamAwb", false);
  2235. ReadParameter(param, "TakeImage", "CamAwbGain", false);
  2236. ReadParameter(param, "TakeImage", "CamAec", false);
  2237. ReadParameter(param, "TakeImage", "CamAec2", false);
  2238. ReadParameter(param, "TakeImage", "CamAeLevel", false);
  2239. ReadParameter(param, "TakeImage", "CamAecValue", false);
  2240. ReadParameter(param, "TakeImage", "CamAgc", false);
  2241. ReadParameter(param, "TakeImage", "CamAgcGain", false);
  2242. ReadParameter(param, "TakeImage", "CamBpc", false);
  2243. ReadParameter(param, "TakeImage", "CamWpc", false);
  2244. ReadParameter(param, "TakeImage", "CamRawGma", false);
  2245. ReadParameter(param, "TakeImage", "CamLenc", false);
  2246. ReadParameter(param, "TakeImage", "CamHmirror", false);
  2247. ReadParameter(param, "TakeImage", "CamVflip", false);
  2248. ReadParameter(param, "TakeImage", "CamDcw", false);
  2249. ReadParameter(param, "TakeImage", "CamDenoise", false);
  2250. ReadParameter(param, "TakeImage", "CamZoom", false);
  2251. ReadParameter(param, "TakeImage", "CamZoomOffsetX", false);
  2252. ReadParameter(param, "TakeImage", "CamZoomOffsetY", false);
  2253. ReadParameter(param, "TakeImage", "CamZoomSize", false);
  2254. ReadParameter(param, "TakeImage", "LEDIntensity", false);
  2255. ReadParameter(param, "TakeImage", "Demo", false);
  2256. ReadParameter(param, "Alignment", "SearchFieldX", false);
  2257. ReadParameter(param, "Alignment", "SearchFieldY", false);
  2258. ReadParameter(param, "Alignment", "AlignmentAlgo", true);
  2259. ReadParameter(param, "Alignment", "InitialRotate", false);
  2260. ReadParameter(param, "Digits", "Model", false);
  2261. ReadParameter(param, "Digits", "CNNGoodThreshold", true);
  2262. ReadParameter(param, "Digits", "ROIImagesLocation", true);
  2263. ReadParameter(param, "Digits", "ROIImagesRetention", true);
  2264. ReadParameter(param, "Analog", "Model", false);
  2265. ReadParameter(param, "Analog", "ROIImagesLocation", true);
  2266. ReadParameter(param, "Analog", "ROIImagesRetention", true);
  2267. ReadParameter(param, "PostProcessing", "PreValueUse", false);
  2268. ReadParameter(param, "PostProcessing", "PreValueAgeStartup", true);
  2269. ReadParameter(param, "PostProcessing", "ErrorMessage", false);
  2270. // ReadParameter(param, "PostProcessing", "CheckDigitIncreaseConsistency", false);
  2271. ReadParameter(param, "MQTT", "Uri", true);
  2272. ReadParameter(param, "MQTT", "MainTopic", true);
  2273. ReadParameter(param, "MQTT", "ClientID", true);
  2274. ReadParameter(param, "MQTT", "user", true);
  2275. ReadParameter(param, "MQTT", "password", true);
  2276. ReadParameter(param, "MQTT", "RetainMessages", false);
  2277. ReadParameter(param, "MQTT", "HomeassistantDiscovery", false);
  2278. ReadParameter(param, "MQTT", "MeterType", true);
  2279. ReadParameter(param, "MQTT", "CACert", true);
  2280. ReadParameter(param, "MQTT", "ClientCert", true);
  2281. ReadParameter(param, "MQTT", "ClientKey", true);
  2282. ReadParameter(param, "MQTT", "ValidateServerCert", true);
  2283. ReadParameter(param, "MQTT", "DomoticzTopicIn", true);
  2284. ReadParameter(param, "InfluxDB", "Uri", true);
  2285. ReadParameter(param, "InfluxDB", "Database", true);
  2286. ReadParameter(param, "InfluxDB", "Measurement", true);
  2287. ReadParameter(param, "InfluxDB", "user", true);
  2288. ReadParameter(param, "InfluxDB", "password", true);
  2289. ReadParameter(param, "InfluxDBv2", "Uri", true);
  2290. ReadParameter(param, "InfluxDBv2", "Bucket", true);
  2291. ReadParameter(param, "InfluxDBv2", "Measurement", true);
  2292. ReadParameter(param, "InfluxDBv2", "Org", true);
  2293. ReadParameter(param, "InfluxDBv2", "Token", true);
  2294. // ReadParameter(param, "InfluxDB", "Field", true);
  2295. ReadParameter(param, "Webhook", "Uri", true);
  2296. ReadParameter(param, "Webhook", "ApiKey", true);
  2297. ReadParameter(param, "Webhook", "UploadImg", false);
  2298. ReadParameter(param, "GPIO", "IO0", true);
  2299. ReadParameter(param, "GPIO", "IO1", true);
  2300. ReadParameter(param, "GPIO", "IO3", true);
  2301. ReadParameter(param, "GPIO", "IO4", true);
  2302. ReadParameter(param, "GPIO", "IO12", true);
  2303. ReadParameter(param, "GPIO", "IO13", true);
  2304. ReadParameter(param, "GPIO", "LEDType", false);
  2305. ReadParameter(param, "GPIO", "LEDNumbers", false);
  2306. ReadParameter(param, "GPIO", "LEDColor", false);
  2307. // Folgende Zeilen sind für Abwärtskompatibität < v9.0.0 notwendig (manchmal parameter auskommentiert)
  2308. param["GPIO"]["LEDType"]["enabled"] = true;
  2309. param["GPIO"]["LEDNumbers"]["enabled"] = true;
  2310. param["GPIO"]["LEDColor"]["enabled"] = true;
  2311. param["GPIO"]["LEDType"]["found"] = true;
  2312. param["GPIO"]["LEDNumbers"]["found"] = true;
  2313. param["GPIO"]["LEDColor"]["found"] = true;
  2314. //ReadParameter(param, "AutoTimer", "AutoStart", false);
  2315. ReadParameter(param, "AutoTimer", "Interval", false);
  2316. ReadParameter(param, "DataLogging", "DataLogActive", false);
  2317. ReadParameter(param, "DataLogging", "DataFilesRetention", false);
  2318. ReadParameter(param, "Debug", "LogLevel", false);
  2319. ReadParameter(param, "Debug", "LogfilesRetention", false);
  2320. ReadParameter(param, "System", "Tooltip", false);
  2321. ReadParameter(param, "System", "TimeZone", true);
  2322. ReadParameter(param, "System", "Hostname", true);
  2323. ReadParameter(param, "System", "TimeServer", true);
  2324. ReadParameter(param, "System", "RSSIThreshold", true);
  2325. ReadParameter(param, "System", "CPUFrequency", true);
  2326. var sel = document.getElementById("Numbers_value1");
  2327. UpdateInputIndividual(sel);
  2328. // FormatDecimalValue(param, "PostProcessing", "MaxRateValue");
  2329. }
  2330. function UpdateAfterCategoryCheck() {
  2331. ReadParameterAll();
  2332. category["Analog"]["enabled"] = document.getElementById("Category_Analog_enabled").checked;
  2333. category["Digits"]["enabled"] = document.getElementById("Category_Digits_enabled").checked;
  2334. category["MQTT"]["enabled"] = document.getElementById("Category_MQTT_enabled").checked;
  2335. category["InfluxDB"]["enabled"] = document.getElementById("Category_InfluxDB_enabled").checked;
  2336. category["InfluxDBv2"]["enabled"] = document.getElementById("Category_InfluxDBv2_enabled").checked;
  2337. category["GPIO"]["enabled"] = document.getElementById("Category_GPIO_enabled").checked;
  2338. category["Webhook"]["enabled"] = document.getElementById("Category_Webhook_enabled").checked;
  2339. UpdateInput();
  2340. var sel = document.getElementById("Numbers_value1");
  2341. UpdateInputIndividual(sel);
  2342. }
  2343. function UpdateExpertModus() {
  2344. // var _style = 'display:none;';
  2345. var _style_pur = 'none';
  2346. var _hidden = true;
  2347. if (document.getElementById("ExpertModus_enabled").checked) {
  2348. // _style = '';
  2349. _style_pur = '';
  2350. _hidden = false;
  2351. document.getElementById("Button_Edit_Config_Raw").style.display = "";
  2352. firework.launch("Expert view activated. Please use it carefully", 'warning', 5000);
  2353. }
  2354. else {
  2355. document.getElementById("Button_Edit_Config_Raw").style.display = "none";
  2356. }
  2357. const expert = document.querySelectorAll(".expert");
  2358. for (var i = 0; i < expert.length; i++) {
  2359. expert[i].style.display = _style_pur;
  2360. // document.getElementById(expert[i].id).style = _style;
  2361. }
  2362. // 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
  2363. Array.from(document.querySelector("#GPIO_IO4_value1").options).forEach(function(option_element) {
  2364. if (option_element.value != "built-in-led") {
  2365. option_element.hidden = _hidden;
  2366. }
  2367. });
  2368. Array.from(document.querySelector("#GPIO_IO12_value1").options).forEach(function(option_element) {
  2369. if (option_element.value != "external-flash-ws281x") {
  2370. option_element.hidden = _hidden;
  2371. }
  2372. });
  2373. }
  2374. function UpdateTooltipModus() {
  2375. var _style_pur = 'none';
  2376. var _hidden = true;
  2377. if (!document.getElementById("System_Tooltip_value1").selectedIndex) {
  2378. _style_pur = '';
  2379. _hidden = false;
  2380. //firework.launch("Tooltip view activated.", 'warning', 5000);
  2381. }
  2382. const tooltip = document.querySelectorAll(".tooltip");
  2383. for (var i = 0; i < tooltip.length; i++) {
  2384. tooltip[i].style.display = _style_pur;
  2385. }
  2386. }
  2387. function saveTextAsFile() {
  2388. ReadParameterAll();
  2389. if (document.getElementsByClassName("invalid-input").length > 0) {
  2390. firework.launch("Settings cannot be saved. Please check your entries!", 'danger', 30000);
  2391. return;
  2392. }
  2393. ReadParameterAll();
  2394. WriteConfigININew();
  2395. SaveConfigToServer(domainname);
  2396. 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);
  2397. if (changeCamValue == 1) {
  2398. camSettingsSet();
  2399. firework.launch('You have changed the camera settings, creating a new reference image and updating the alignment marks is mandatory!', 'success', 5000);
  2400. }
  2401. }
  2402. function camSettingsSet(){
  2403. document.getElementById("overlay").style.display = "block";
  2404. document.getElementById("overlaytext").innerHTML = "Save Cam Settings...";
  2405. var _waitb_temp = document.getElementById("TakeImage_WaitBeforeTakingPicture_value1").value;
  2406. var _aecgc_temp = document.getElementById("TakeImage_CamGainceiling_value1").selectedIndex;
  2407. var _qual_temp = document.getElementById("TakeImage_CamQuality_value1").value;
  2408. var _bri_temp = document.getElementById("TakeImage_CamBrightness_value1").value;
  2409. var _con_temp = document.getElementById("TakeImage_CamContrast_value1").value;
  2410. var _sat_temp = document.getElementById("TakeImage_CamSaturation_value1").value;
  2411. var _shp_temp = document.getElementById("TakeImage_CamSharpness_value1").value;
  2412. var _ashp_temp = document.getElementById("TakeImage_CamAutoSharpness_value1").value;
  2413. if (_ashp_temp == '0') {
  2414. _ashp_temp = '1';
  2415. }
  2416. else {
  2417. _ashp_temp = '0';
  2418. }
  2419. var _spe_temp = document.getElementById("TakeImage_CamSpecialEffect_value1").selectedIndex;
  2420. var _wbm_temp = document.getElementById("TakeImage_CamWbMode_value1").selectedIndex;
  2421. var _awb_temp = document.getElementById("TakeImage_CamAwb_value1").selectedIndex;
  2422. if (_awb_temp == '0') {
  2423. _awb_temp = '1';
  2424. }
  2425. else {
  2426. _awb_temp = '0';
  2427. }
  2428. var _awbg_temp = document.getElementById("TakeImage_CamAwbGain_value1").selectedIndex;
  2429. if (_awbg_temp == '0') {
  2430. _awbg_temp = '1';
  2431. }
  2432. else {
  2433. _awbg_temp = '0';
  2434. }
  2435. var _aec_temp = document.getElementById("TakeImage_CamAec_value1").selectedIndex;
  2436. if (_aec_temp == '0') {
  2437. _aec_temp = '1';
  2438. }
  2439. else {
  2440. _aec_temp = '0';
  2441. }
  2442. var _aec2_temp = document.getElementById("TakeImage_CamAec2_value1").selectedIndex;
  2443. if (_aec2_temp == '0') {
  2444. _aec2_temp = '1';
  2445. }
  2446. else {
  2447. _aec2_temp = '0';
  2448. }
  2449. var _ael_temp = document.getElementById("TakeImage_CamAeLevel_value1").value;
  2450. var _aecv_temp = document.getElementById("TakeImage_CamAecValue_value1").value;
  2451. var _agc_temp = document.getElementById("TakeImage_CamAgc_value1").selectedIndex;
  2452. if (_agc_temp == '0') {
  2453. _agc_temp = '1';
  2454. }
  2455. else {
  2456. _agc_temp = '0';
  2457. }
  2458. var _agcg_temp = document.getElementById("TakeImage_CamAgcGain_value1").value;
  2459. var _bpc_temp = document.getElementById("TakeImage_CamBpc_value1").selectedIndex;
  2460. if (_bpc_temp == '0') {
  2461. _bpc_temp = '1';
  2462. }
  2463. else {
  2464. _bpc_temp = '0';
  2465. }
  2466. var _wpc_temp = document.getElementById("TakeImage_CamWpc_value1").selectedIndex;
  2467. if (_wpc_temp == '0') {
  2468. _wpc_temp = '1';
  2469. }
  2470. else {
  2471. _wpc_temp = '0';
  2472. }
  2473. var _rgma_temp = document.getElementById("TakeImage_CamRawGma_value1").selectedIndex;
  2474. if (_rgma_temp == '0') {
  2475. _rgma_temp = '1';
  2476. }
  2477. else {
  2478. _rgma_temp = '0';
  2479. }
  2480. var _lenc_temp = document.getElementById("TakeImage_CamLenc_value1").selectedIndex;
  2481. if (_lenc_temp == '0') {
  2482. _lenc_temp = '1';
  2483. }
  2484. else {
  2485. _lenc_temp = '0';
  2486. }
  2487. var _mirror_temp = document.getElementById("TakeImage_CamHmirror_value1").selectedIndex;
  2488. if (_mirror_temp == '0') {
  2489. _mirror_temp = '1';
  2490. }
  2491. else {
  2492. _mirror_temp = '0';
  2493. }
  2494. var _flip_temp = document.getElementById("TakeImage_CamVflip_value1").selectedIndex;
  2495. if (_flip_temp == '0') {
  2496. _flip_temp = '1';
  2497. }
  2498. else {
  2499. _flip_temp = '0';
  2500. }
  2501. var _dcw_temp = document.getElementById("TakeImage_CamDcw_value1").selectedIndex;
  2502. if (_dcw_temp == '0') {
  2503. _dcw_temp = '1';
  2504. }
  2505. else {
  2506. _dcw_temp = '0';
  2507. }
  2508. var _denoise_temp = document.getElementById("TakeImage_CamDenoise_value1").value;
  2509. var _ledi_temp = document.getElementById("TakeImage_LEDIntensity_value1").value;
  2510. var _zoom_temp = document.getElementById("TakeImage_CamZoom_value1").selectedIndex;
  2511. if (_zoom_temp == '0') {
  2512. _zoom_temp = '1';
  2513. }
  2514. else {
  2515. _zoom_temp = '0';
  2516. }
  2517. var _zoomx_temp = document.getElementById("TakeImage_CamZoomOffsetX_value1").value;
  2518. var _zoomy_temp = document.getElementById("TakeImage_CamZoomOffsetY_value1").value;
  2519. var _zooms_temp = document.getElementById("TakeImage_CamZoomSize_value1").value;
  2520. var url = domainname + "/editflow?task=cam_settings";
  2521. if (domainname.length > 0){
  2522. url = url + "&host=" + domainname;
  2523. }
  2524. url = url + "&waitb=" + _waitb_temp + "&aecgc=" + _aecgc_temp + "&qual=" + _qual_temp;
  2525. url = url + "&bri=" + _bri_temp + "&con=" + _con_temp + "&sat=" + _sat_temp + "&shp=" + _shp_temp + "&ashp=" + _ashp_temp;
  2526. url = url + "&spe=" + _spe_temp + "&wbm=" + _wbm_temp + "&awb=" + _awb_temp + "&awbg=" + _awbg_temp;
  2527. url = url + "&aec=" + _aec_temp + "&aec2=" + _aec2_temp + "&ael=" + _ael_temp + "&aecv=" + _aecv_temp;
  2528. url = url + "&agc=" + _agc_temp + "&agcg=" + _agcg_temp + "&bpc=" + _bpc_temp + "&wpc=" + _wpc_temp;
  2529. url = url + "&rgma=" + _rgma_temp + "&lenc=" + _lenc_temp + "&mirror=" + _mirror_temp + "&flip=" + _flip_temp;
  2530. url = url + "&dcw=" + _dcw_temp + "&den=" + _denoise_temp + "&ledi=" + _ledi_temp;
  2531. if (_zoom_temp != '0') {
  2532. url = url + "&zoom=" + _zoom_temp + "&zooms=" + _zooms_temp;
  2533. url = url + "&zoomx=" + _zoomx_temp + "&zoomy=" + _zoomy_temp;
  2534. }
  2535. else {
  2536. url = url + "&zoom=0" + "&zooms=0" + "&zoomx=0" + "&zoomy=0";
  2537. }
  2538. var durchlaufe = 0;
  2539. function sleep(ms) {
  2540. return new Promise(resolve => setTimeout(resolve, ms));
  2541. }
  2542. async function task() {
  2543. while (true) {
  2544. var xhttp = new XMLHttpRequest();
  2545. if (durchlaufe > 10) {
  2546. document.getElementById("overlay").style.display = "none";
  2547. firework.launch('Save Cam Settings aborted, timeout!', 'danger', 5000);
  2548. return;
  2549. }
  2550. try {
  2551. xhttp.open("GET", url, false);
  2552. xhttp.send();
  2553. } catch (error){}
  2554. if (xhttp.responseText == "CamSettingsSet") {
  2555. document.getElementById("overlay").style.display = "none";
  2556. firework.launch('Cam Settings saved', 'success', 2000);
  2557. return;
  2558. }
  2559. else {
  2560. // Get status
  2561. var _xhttp = new XMLHttpRequest();
  2562. durchlaufe = durchlaufe + 1;
  2563. try {
  2564. _xhttp.open("GET", domainname + "/statusflow", false);
  2565. _xhttp.send();
  2566. }
  2567. catch (error){}
  2568. document.getElementById("overlaytext").innerHTML = "Device is busy, please wait.<br><br>Current step: " + _xhttp.responseText;
  2569. console.log("Device is busy, waiting 2s then checking again...");
  2570. await sleep(2000);
  2571. }
  2572. }
  2573. }
  2574. setTimeout(function() {
  2575. // Delay so the overlay gets shown
  2576. task();
  2577. }, 1);
  2578. }
  2579. function doReboot() {
  2580. var stringota = domainname + "/reboot";
  2581. window.location = stringota;
  2582. window.location.href = stringota;
  2583. window.location.assign(stringota);
  2584. window.location.replace(stringota);
  2585. }
  2586. function FormatDecimalValue(_param, _cat, _name) {
  2587. for (var j = 1; j <= _param[_cat][_name]["anzParam"]; ++j) {
  2588. var _val = _param[_cat][_name]["value"+j];
  2589. _val = _val.replace(",", ".");
  2590. _param[_cat][_name]["value"+j] = _val;
  2591. }
  2592. }
  2593. function editConfigRaw() {
  2594. if (confirm("Proceed to switch to raw edit mode? Unsaved changes will get lost")) {
  2595. var stringota = domainname + "/edit_config_raw.html?v=$COMMIT_HASH";
  2596. window.location = stringota;
  2597. window.location.href = stringota;
  2598. window.location.assign(stringota);
  2599. window.location.replace(stringota);
  2600. }
  2601. }
  2602. function numberChanged() {
  2603. var sel = document.getElementById("Numbers_value1");
  2604. _neu = sel.selectedIndex;
  2605. UpdateInputIndividual(sel);
  2606. var _selInflux = document.getElementById("NumbersInfluxDBv2_value1");
  2607. if (_selInflux.selectedIndex != _neu) {
  2608. _selInflux.selectedIndex = _neu
  2609. }
  2610. var _sel3 = document.getElementById("NumbersInfluxDB_value1");
  2611. if (_sel3.selectedIndex != _neu) {
  2612. _sel3.selectedIndex = _neu
  2613. }
  2614. var _sel4 = document.getElementById("NumbersMQTTIdx_value1");
  2615. if (_sel4.selectedIndex != _neu) {
  2616. _sel4.selectedIndex = _neu
  2617. }
  2618. }
  2619. function numberMQTTIdxChanged() {
  2620. var sel = document.getElementById("NumbersMQTTIdx_value1");
  2621. _neu = sel.selectedIndex;
  2622. UpdateInputIndividual(sel);
  2623. var _sel2 = document.getElementById("Numbers_value1");
  2624. if (_sel2.selectedIndex != _neu) {
  2625. _sel2.selectedIndex = _neu
  2626. }
  2627. var _sel3 = document.getElementById("NumbersInfluxDB_value1");
  2628. if (_sel3.selectedIndex != _neu) {
  2629. _sel3.selectedIndex = _neu
  2630. }
  2631. var _sel4 = document.getElementById("NumbersInfluxDBv2_value1");
  2632. if (_sel4.selectedIndex != _neu) {
  2633. _sel4.selectedIndex = _neu
  2634. }
  2635. }
  2636. function numberInfluxDBv2Changed() {
  2637. var sel = document.getElementById("NumbersInfluxDBv2_value1");
  2638. _neu = sel.selectedIndex;
  2639. UpdateInputIndividual(sel);
  2640. var _sel2 = document.getElementById("Numbers_value1");
  2641. if (_sel2.selectedIndex != _neu) {
  2642. _sel2.selectedIndex = _neu
  2643. }
  2644. var _sel3 = document.getElementById("NumbersInfluxDB_value1");
  2645. if (_sel3.selectedIndex != _neu) {
  2646. _sel3.selectedIndex = _neu
  2647. }
  2648. var _sel4 = document.getElementById("NumbersMQTTIdx_value1");
  2649. if (_sel4.selectedIndex != _neu) {
  2650. _sel4.selectedIndex = _neu
  2651. }
  2652. }
  2653. function numberInfluxDBChanged() {
  2654. var sel = document.getElementById("NumbersInfluxDB_value1");
  2655. _neu = sel.selectedIndex;
  2656. UpdateInputIndividual(sel);
  2657. var _sel2 = document.getElementById("Numbers_value1");
  2658. if (_sel2.selectedIndex != _neu) {
  2659. _sel2.selectedIndex = _neu
  2660. }
  2661. var _sel3 = document.getElementById("NumbersInfluxDBv2_value1");
  2662. if (_sel3.selectedIndex != _neu) {
  2663. _sel3.selectedIndex = _neu
  2664. }
  2665. var _sel4 = document.getElementById("NumbersMQTTIdx_value1");
  2666. if (_sel4.selectedIndex != _neu) {
  2667. _sel4.selectedIndex = _neu
  2668. }
  2669. }
  2670. function getParameterByName(name, url = window.location.href) {
  2671. name = name.replace(/[\[\]]/g, '\\$&');
  2672. var regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)'),
  2673. results = regex.exec(url);
  2674. if (!results) {return null;}
  2675. if (!results[2]) {return '';}
  2676. return decodeURIComponent(results[2].replace(/\+/g, ' '));
  2677. }
  2678. function InvertEnableItem(_cat, _param) {
  2679. _zw = _cat + "_" + _param + "_enabled";
  2680. _isOn = document.getElementById(_zw).checked;
  2681. _color = "rgb(122, 122, 122)";
  2682. if (_isOn) {
  2683. _color = "black";
  2684. }
  2685. _zw = _cat + "_" + _param + "_text";
  2686. document.getElementById(_zw).disabled = !_isOn;
  2687. document.getElementById(_zw).style.color = _color;
  2688. setEnabled(_cat + "_" + _param, _isOn);
  2689. for (var j = 1; j <= param[_cat][_param]["anzParam"]; ++j) {
  2690. document.getElementById(_cat+"_"+_param+"_value"+j).disabled = !_isOn;
  2691. document.getElementById(_cat+"_"+_param+"_value"+j).style.color = _color;
  2692. }
  2693. }
  2694. function setEnabled(className, enabled) {
  2695. _color = "rgb(122, 122, 122)";
  2696. if (enabled) {
  2697. _color = "black";
  2698. }
  2699. let elements = document.getElementsByClassName(className);
  2700. for (i = 0; i < elements.length; i++) {
  2701. if (enabled) {
  2702. elements[i].classList.remove("disabled");
  2703. }
  2704. else {
  2705. elements[i].classList.add("disabled");
  2706. }
  2707. let inputs = elements[i].getElementsByTagName("input");
  2708. for (j = 0; j < inputs.length; j++) {
  2709. if (inputs[j].id.endsWith("_enabled")) {
  2710. continue;
  2711. }
  2712. inputs[j].style.color = _color;
  2713. if (enabled) {
  2714. inputs[j].removeAttribute("disabled");
  2715. }
  2716. else {
  2717. inputs[j].setAttribute("disabled", "disabled");
  2718. }
  2719. }
  2720. }
  2721. }
  2722. function setVisible(className, visible) {
  2723. let elements = document.getElementsByClassName(className);
  2724. for (i = 0; i < elements.length; i++) {
  2725. if (visible) {
  2726. elements[i].classList.remove("hidden");
  2727. }
  2728. else {
  2729. elements[i].classList.add("hidden");
  2730. }
  2731. }
  2732. }
  2733. function EnDisableItem(_status, _param, _category, _cat, _name, _optional, _number = -1) {
  2734. // _status = _category[_cat]["enabled"];
  2735. _color = "rgb(122, 122, 122)";
  2736. if (_status) {
  2737. _color = "black";
  2738. }
  2739. if (_optional) {
  2740. document.getElementById(_cat+"_"+_name+"_enabled").disabled = !_status;
  2741. document.getElementById(_cat+"_"+_name+"_enabled").style.color = _color;
  2742. }
  2743. if (_number == -1) {
  2744. if (!_param[_cat][_name]["enabled"]) {
  2745. _status = false;
  2746. _color = "rgb(122, 122, 122)";
  2747. }
  2748. }
  2749. else {
  2750. if (!NUMBERS[_number][_cat][_name]["enabled"]) {
  2751. _status = false;
  2752. _color = "rgb(122, 122, 122)";
  2753. }
  2754. }
  2755. document.getElementById(_cat+"_"+_name+"_text").disabled = !_status;
  2756. document.getElementById(_cat+"_"+_name+"_text").style.color = _color;
  2757. setEnabled(_cat+"_"+_name, _status);
  2758. for (var j = 1; j <= _param[_cat][_name]["anzParam"]; ++j) {
  2759. document.getElementById(_cat+"_"+_name+"_value"+j).disabled = !_status;
  2760. document.getElementById(_cat+"_"+_name+"_value"+j).style.color = _color;
  2761. }
  2762. }
  2763. function ReadParameter(_param, _cat, _name, _optional, _number = -1) {
  2764. if (_number > -1) {
  2765. if (_cat == "Digits") {
  2766. _cat = "digit";
  2767. }
  2768. if (_cat == "Analog") {
  2769. _cat = "analog";
  2770. }
  2771. if ((NUMBERS[_number] == undefined) || (NUMBERS[_number][_cat] == undefined) || (NUMBERS[_number][_cat][_name] == undefined)) {
  2772. return;
  2773. }
  2774. if (_optional) {
  2775. NUMBERS[_number][_cat][_name]["enabled"] = document.getElementById(_cat+"_"+_name+"_enabled").checked;
  2776. }
  2777. for (var j = 1; j <= _param[_cat][_name]["anzParam"]; ++j) {
  2778. let element = document.getElementById(_cat+"_"+_name+"_value"+j);
  2779. if (element.tagName.toLowerCase() == "select") {
  2780. NUMBERS[_number][_cat][_name]["value"+j] = element.selectedIndex > -1 ? element.options[element.selectedIndex].value : "";
  2781. }
  2782. else if ((element.getAttribute("type") != null) && (element.getAttribute("type").toLowerCase() == "checkbox")) {
  2783. NUMBERS[_number][_cat][_name]["value"+j] = element.checked;
  2784. }
  2785. else {
  2786. if ((NUMBERS[_number][_cat][_name].checkRegExList != null) && (NUMBERS[_number][_cat][_name].checkRegExList[j-1] != null)) {
  2787. if (!element.value.match(NUMBERS[_cat][_name].checkRegExList[j-1])) {
  2788. element.classList.add("invalid-input");
  2789. }
  2790. else {
  2791. element.classList.remove("invalid-input");
  2792. }
  2793. }
  2794. NUMBERS[_number][_cat][_name]["value"+j] = element.value;
  2795. }
  2796. }
  2797. }
  2798. else
  2799. {
  2800. if (_optional) {
  2801. _param[_cat][_name]["enabled"] = document.getElementById(_cat+"_"+_name+"_enabled").checked;
  2802. }
  2803. for (var j = 1; j <= _param[_cat][_name]["anzParam"]; ++j) {
  2804. let element = document.getElementById(_cat+"_"+_name+"_value"+j);
  2805. if (element.tagName.toLowerCase() == "select") {
  2806. _param[_cat][_name]["value"+j] = element.selectedIndex > -1 ? element.options[element.selectedIndex].value : "";
  2807. }
  2808. else if ((element.getAttribute("type") != null) && (element.getAttribute("type").toLowerCase() == "checkbox")) {
  2809. _param[_cat][_name]["value"+j] = element.checked;
  2810. }
  2811. else {
  2812. if ((_param[_cat][_name].checkRegExList != null) && (_param[_cat][_name].checkRegExList[j-1] != null)) {
  2813. if (!element.value.match(_param[_cat][_name].checkRegExList[j-1])) {
  2814. element.classList.add("invalid-input");
  2815. }
  2816. else {
  2817. element.classList.remove("invalid-input");
  2818. }
  2819. }
  2820. _param[_cat][_name]["value"+j] = element.value;
  2821. }
  2822. }
  2823. }
  2824. }
  2825. function WriteParameter(_param, _category, _cat, _name, _optional, _number = -1) {
  2826. let anzpara;
  2827. try {
  2828. anzpara = _param[_cat][_name].anzParam;
  2829. }
  2830. catch (error) {
  2831. firework.launch("Parameter '" + _name + "' in category '" + _cat + "' is unknown!", 'danger', 30000);
  2832. return;
  2833. }
  2834. if (_number > -1) {
  2835. if ((NUMBERS[_number] == undefined) || (NUMBERS[_number][_cat] == undefined) || (NUMBERS[_number][_cat][_name] == undefined)) {
  2836. return;
  2837. }
  2838. if (_optional) {
  2839. document.getElementById(_cat+"_"+_name+"_enabled").checked = NUMBERS[_number][_cat][_name]["enabled"];
  2840. for (var j = 1; j <= anzpara; ++j) {
  2841. document.getElementById(_cat+"_"+_name+"_value"+j).disabled = !NUMBERS[_number][_cat][_name]["enabled"];
  2842. }
  2843. }
  2844. document.getElementById(_cat+"_"+_name+"_text").style.color = "black"
  2845. setEnabled(_cat+"_"+_name, true);
  2846. for (var j = 1; j <= anzpara; ++j) {
  2847. let element = document.getElementById(_cat+"_"+_name+"_value"+j);
  2848. if (element.tagName.toLowerCase() == "select") {
  2849. var textToFind = NUMBERS[_number][_cat][_name]["value"+j];
  2850. if (textToFind == undefined) {
  2851. continue;
  2852. }
  2853. _isFound = false;
  2854. element.selectedIndex = -1;
  2855. for (var i = 0; i < element.options.length; i++) {
  2856. if (element.options[i].value.toLowerCase() === textToFind.toLowerCase()) {
  2857. element.selectedIndex = i;
  2858. _isFound = true;
  2859. break;
  2860. }
  2861. }
  2862. if (!_isFound) {
  2863. _zw_txt = "In the selected field the value '" + textToFind + "' in the parameter '";
  2864. _zw_txt = _zw_txt + _cat + "' in the field '" + _name + "' is invalid. PLEASE CHECK BEFORE SAVING!";
  2865. firework.launch(_zw_txt, 'warning', 10000);
  2866. }
  2867. }
  2868. else if ((element.getAttribute("type") != null) && (element.getAttribute("type").toLowerCase() == "checkbox")) {
  2869. element.checked = NUMBERS[_number][_cat][_name]["value"+j] == "true";
  2870. }
  2871. else {
  2872. element.value = NUMBERS[_number][_cat][_name]["value"+j];
  2873. }
  2874. }
  2875. }
  2876. else {
  2877. if (_optional) {
  2878. document.getElementById(_cat+"_"+_name+"_enabled").checked = _param[_cat][_name]["enabled"];
  2879. for (var j = 1; j <= anzpara; ++j) {
  2880. document.getElementById(_cat+"_"+_name+"_value"+j).disabled = !_param[_cat][_name]["enabled"];
  2881. }
  2882. }
  2883. document.getElementById(_cat+"_"+_name+"_text").style.color = "black"
  2884. setEnabled(_cat+"_"+_name, true);
  2885. for (var j = 1; j <= anzpara; ++j) {
  2886. let element = document.getElementById(_cat+"_"+_name+"_value"+j);
  2887. if (element.tagName.toLowerCase() == "select") {
  2888. var textToFind = _param[_cat][_name]["value"+j];
  2889. if (textToFind == undefined) {
  2890. continue;
  2891. }
  2892. _isFound = false;
  2893. element.selectedIndex = -1;
  2894. for (var i = 0; i < element.options.length; i++) {
  2895. if (element.options[i].value.toLowerCase() === textToFind.toLowerCase()) {
  2896. element.selectedIndex = i;
  2897. _isFound = true;
  2898. break;
  2899. }
  2900. }
  2901. if (!_isFound) {
  2902. _zw_txt = "In the selected field the value '" + textToFind + "' in the section '";
  2903. _zw_txt = _zw_txt + _cat + "' in the field '" + _name + "' is invalid. PLEASE CHECK BEFORE SAVING!";
  2904. firework.launch(_zw_txt, 'warning', 10000);
  2905. }
  2906. }
  2907. else if ((element.getAttribute("type") != null) && (element.getAttribute("type").toLowerCase() == "checkbox")) {
  2908. element.checked = _param[_cat][_name]["value"+j] == "true";
  2909. }
  2910. else {
  2911. element.value = _param[_cat][_name]["value"+j];
  2912. }
  2913. }
  2914. }
  2915. ///////////////// am Ende, falls Kategorie als gesamtes nicht ausgewählt --> deaktivieren
  2916. if (_category[_cat]["enabled"] == false) {
  2917. if (_optional) {
  2918. document.getElementById(_cat+"_"+_name+"_enabled").disabled = true;
  2919. for (var j = 1; j <= anzpara; ++j) {
  2920. document.getElementById(_cat+"_"+_name+"_value"+j).disabled = true;
  2921. }
  2922. }
  2923. document.getElementById(_cat+"_"+_name+"_text").style="color: gray;"
  2924. setEnabled(_cat+"_"+_name, false);
  2925. }
  2926. EnDisableItem(_category[_cat]["enabled"], _param, _category, _cat, _name, _optional, _number);
  2927. }
  2928. /* hash #description open the details part of the page */
  2929. function openDescription() {
  2930. if(window.location.hash) {
  2931. var hash = window.location.hash.substring(1); //Puts hash in variable, and removes the # character
  2932. if(hash == 'description') {
  2933. document.getElementById("desc_details").open = true;
  2934. document.getElementById("reboot").style.display = "none";
  2935. document.getElementById("reboot_text").style.display = "none";
  2936. }
  2937. }
  2938. }
  2939. openDescription();
  2940. LoadConfigNeu();
  2941. </script>
  2942. </body>
  2943. </html>