edit_config_template.html 125 KB

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