Init
This commit is contained in:
1 parent
5954f21fd9
commit
6a57d49da8
33 files changed
+1124
No files matched your search
@@ -0,0 +1,5 @@
|
|||||||
|
.pio
|
||||||
|
.vscode/.browse.c_cpp.db*
|
||||||
|
.vscode/c_cpp_properties.json
|
||||||
|
.vscode/launch.json
|
||||||
|
.vscode/ipch
|
||||||
Vendored
+10
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
// See http://go.microsoft.com/fwlink/?LinkId=827846
|
||||||
|
// for the documentation about the extensions.json format
|
||||||
|
"recommendations": [
|
||||||
|
"platformio.platformio-ide"
|
||||||
|
],
|
||||||
|
"unwantedRecommendations": [
|
||||||
|
"ms-vscode.cpptools-extension-pack"
|
||||||
|
]
|
||||||
|
}
|
||||||
Vendored
+14
@@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"files.associations": {
|
||||||
|
"array": "cpp",
|
||||||
|
"deque": "cpp",
|
||||||
|
"list": "cpp",
|
||||||
|
"string": "cpp",
|
||||||
|
"unordered_map": "cpp",
|
||||||
|
"vector": "cpp",
|
||||||
|
"string_view": "cpp",
|
||||||
|
"initializer_list": "cpp",
|
||||||
|
"ranges": "cpp",
|
||||||
|
"regex": "cpp"
|
||||||
|
}
|
||||||
|
}
|
||||||
Vendored
+7
@@ -0,0 +1,7 @@
|
|||||||
|
/*!
|
||||||
|
* Bootstrap Grid v4.0.0 (https://getbootstrap.com)
|
||||||
|
* Copyright 2011-2018 The Bootstrap Authors
|
||||||
|
* Copyright 2011-2018 Twitter, Inc.
|
||||||
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
||||||
|
*/@-ms-viewport{width:device-width}html{box-sizing:border-box;-ms-overflow-style:scrollbar}*,::after,::before{box-sizing:inherit}.container{width:100%;padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}@media (min-width:576px){.container{max-width:540px}}@media (min-width:768px){.container{max-width:720px}}@media (min-width:992px){.container{max-width:960px}}@media (min-width:1200px){.container{max-width:1140px}}.container-fluid{width:100%;padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}.row{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-right:-15px;margin-left:-15px}.no-gutters{margin-right:0;margin-left:0}.no-gutters>.col,.no-gutters>[class*=col-]{padding-right:0;padding-left:0}.col,.col-1,.col-10,.col-11,.col-12,.col-2,.col-3,.col-4,.col-5,.col-6,.col-7,.col-8,.col-9,.col-auto,.col-lg,.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-auto,.col-md,.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-auto,.col-sm,.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-auto,.col-xl,.col-xl-1,.col-xl-10,.col-xl-11,.col-xl-12,.col-xl-2,.col-xl-3,.col-xl-4,.col-xl-5,.col-xl-6,.col-xl-7,.col-xl-8,.col-xl-9,.col-xl-auto{position:relative;width:100%;min-height:1px;padding-right:15px;padding-left:15px}.col{-ms-flex-preferred-size:0;flex-basis:0;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;max-width:100%}.col-auto{-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;width:auto;max-width:none}.col-1{-webkit-box-flex:0;-ms-flex:0 0 8.333333%;flex:0 0 8.333333%;max-width:8.333333%}.col-2{-webkit-box-flex:0;-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}.col-3{-webkit-box-flex:0;-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.col-4{-webkit-box-flex:0;-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}.col-5{-webkit-box-flex:0;-ms-flex:0 0 41.666667%;flex:0 0 41.666667%;max-width:41.666667%}.col-6{-webkit-box-flex:0;-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.col-7{-webkit-box-flex:0;-ms-flex:0 0 58.333333%;flex:0 0 58.333333%;max-width:58.333333%}.col-8{-webkit-box-flex:0;-ms-flex:0 0 66.666667%;flex:0 0 66.666667%;max-width:66.666667%}.col-9{-webkit-box-flex:0;-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%}.col-10{-webkit-box-flex:0;-ms-flex:0 0 83.333333%;flex:0 0 83.333333%;max-width:83.333333%}.col-11{-webkit-box-flex:0;-ms-flex:0 0 91.666667%;flex:0 0 91.666667%;max-width:91.666667%}.col-12{-webkit-box-flex:0;-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.order-first{-webkit-box-ordinal-group:0;-ms-flex-order:-1;order:-1}.order-last{-webkit-box-ordinal-group:14;-ms-flex-order:13;order:13}.order-0{-webkit-box-ordinal-group:1;-ms-flex-order:0;order:0}.order-1{-webkit-box-ordinal-group:2;-ms-flex-order:1;order:1}.order-2{-webkit-box-ordinal-group:3;-ms-flex-order:2;order:2}.order-3{-webkit-box-ordinal-group:4;-ms-flex-order:3;order:3}.order-4{-webkit-box-ordinal-group:5;-ms-flex-order:4;order:4}.order-5{-webkit-box-ordinal-group:6;-ms-flex-order:5;order:5}.order-6{-webkit-box-ordinal-group:7;-ms-flex-order:6;order:6}.order-7{-webkit-box-ordinal-group:8;-ms-flex-order:7;order:7}.order-8{-webkit-box-ordinal-group:9;-ms-flex-order:8;order:8}.order-9{-webkit-box-ordinal-group:10;-ms-flex-order:9;order:9}.order-10{-webkit-box-ordinal-group:11;-ms-flex-order:10;order:10}.order-11{-webkit-box-ordinal-group:12;-ms-flex-order:11;order:11}.order-12{-webkit-box-ordinal-group:13;-ms-flex-order:12;order:12}.offset-1{margin-left:8.333333%}.offset-2{margin-left:16.666667%}.offset-3{margin-left:25%}.offset-4{margin-left:33.333333%}.offset-5{margin-left:41.666667%}.offset-6{margin-left:50%}.offset-7{margin-left:58.333333%}.offset-8{margin-left:66.666667%}.offset-9{margin-left:75%}.offset-10{margin-left:83.333333%}.offset-11{margin-left:91.666667%}@media (min-width:576px){.col-sm{-ms-flex-preferred-size:0;flex-basis:0;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;max-width:100%}.col-sm-auto{-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;width:auto;max-width:none}.col-sm-1{-webkit-box-flex:0;-ms-flex:0 0 8.333333%;flex:0 0 8.333333%;max-width:8.333333%}.col-sm-2{-webkit-box-flex:0;-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}.col-sm-3{-webkit-box-flex:0;-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.col-sm-4{-webkit-box-flex:0;-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}.col-sm-5{-webkit-box-flex:0;-ms-flex:0 0 41.666667%;flex:0 0 41.666667%;max-width:41.666667%}.col-sm-6{-webkit-box-flex:0;-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.col-sm-7{-webkit-box-flex:0;-ms-flex:0 0 58.333333%;flex:0 0 58.333333%;max-width:58.333333%}.col-sm-8{-webkit-box-flex:0;-ms-flex:0 0 66.666667%;flex:0 0 66.666667%;max-width:66.666667%}.col-sm-9{-webkitLine truncated
|
||||||
|
/*# sourceMappingURL=bootstrap-grid.min.css.map */
|
||||||
+8
@@ -0,0 +1,8 @@
|
|||||||
|
/*!
|
||||||
|
* Bootstrap Reboot v4.0.0 (https://getbootstrap.com)
|
||||||
|
* Copyright 2011-2018 The Bootstrap Authors
|
||||||
|
* Copyright 2011-2018 Twitter, Inc.
|
||||||
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
||||||
|
* Forked from Normalize.css, licensed MIT (https://github.com/necolas/normalize.css/blob/master/LICENSE.md)
|
||||||
|
*/*,::after,::before{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:transparent}@-ms-viewport{width:device-width}article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:1rem;font-weight:400;line-height:1.5;color:#212529;text-align:left;background-color:#fff}[tabindex="-1"]:focus{outline:0!important}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5rem}p{margin-top:0;margin-bottom:1rem}abbr[data-original-title],abbr[title]{text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;cursor:help;border-bottom:0}address{margin-bottom:1rem;font-style:normal;line-height:inherit}dl,ol,ul{margin-top:0;margin-bottom:1rem}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:#007bff;text-decoration:none;background-color:transparent;-webkit-text-decoration-skip:objects}a:hover{color:#0056b3;text-decoration:underline}a:not([href]):not([tabindex]){color:inherit;text-decoration:none}a:not([href]):not([tabindex]):focus,a:not([href]):not([tabindex]):hover{color:inherit;text-decoration:none}a:not([href]):not([tabindex]):focus{outline:0}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}pre{margin-top:0;margin-bottom:1rem;overflow:auto;-ms-overflow-style:scrollbar}figure{margin:0 0 1rem}img{vertical-align:middle;border-style:none}svg:not(:root){overflow:hidden}table{border-collapse:collapse}caption{padding-top:.75rem;padding-bottom:.75rem;color:#6c757d;text-align:left;caption-side:bottom}th{text-align:inherit}label{display:inline-block;margin-bottom:.5rem}button{border-radius:0}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}button,input,optgroup,select,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{padding:0;border-style:none}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=date],input[type=datetime-local],input[type=month],input[type=time]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{display:block;width:100%;max-width:100%;padding:0;margin-bottom:.5rem;font-size:1.5rem;line-height:inherit;color:inherit;white-space:normal}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item;cursor:pointer}template{display:none}[hidden]{display:none!important}
|
||||||
|
/*# sourceMappingURL=bootstrap-reboot.min.css.map */
|
||||||
Vendored
+12
@@ -0,0 +1,12 @@
|
|||||||
|
/*!
|
||||||
|
* Bootswatch v4.6.0
|
||||||
|
* Homepage: https://bootswatch.com
|
||||||
|
* Copyright 2012-2021 Thomas Park
|
||||||
|
* Licensed under MIT
|
||||||
|
* Based on Bootstrap
|
||||||
|
*//*!
|
||||||
|
* Bootstrap v4.6.0 (https://getbootstrap.com/)
|
||||||
|
* Copyright 2011-2021 The Bootstrap Authors
|
||||||
|
* Copyright 2011-2021 Twitter, Inc.
|
||||||
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
|
*/@import url(https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap);:root{--blue:#df691a;--indigo:#6610f2;--purple:#6f42c1;--pink:#e83e8c;--red:#d9534f;--orange:#f0ad4e;--yellow:#f0ad4e;--green:#5cb85c;--teal:#20c997;--cyan:#5bc0de;--white:#fff;--gray:#868e96;--gray-dark:#343a40;--primary:#df691a;--secondary:#4e5d6c;--success:#5cb85c;--info:#5bc0de;--warning:#f0ad4e;--danger:#d9534f;--light:#abb6c2;--dark:#4e5d6c;--breakpoint-xs:0;--breakpoint-sm:576px;--breakpoint-md:768px;--breakpoint-lg:992px;--breakpoint-xl:1200px;--font-family-sans-serif:Lato,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";--font-family-monospace:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}*,::after,::before{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}article,aside,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}body{margin:0;font-family:Lato,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:1rem;font-weight:400;line-height:1.5;color:#ebebeb;text-align:left;background-color:#2b3e50}[tabindex="-1"]:focus:not(:focus-visible){outline:0!important}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5rem}p{margin-top:0;margin-bottom:1rem}abbr[data-original-title],abbr[title]{text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;cursor:help;border-bottom:0;-webkit-text-decoration-skip-ink:none;text-decoration-skip-ink:none}address{margin-bottom:1rem;font-style:normal;line-height:inherit}dl,ol,ul{margin-top:0;margin-bottom:1rem}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:#df691a;text-decoration:none;background-color:transparent}a:hover{color:#9a4912;text-decoration:underline}a:not([href]):not([class]){color:inherit;text-decoration:none}a:not([href]):not([class]):hover{color:inherit;text-decoration:none}code,kbd,pre,samp{font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:1em}pre{margin-top:0;margin-bottom:1rem;overflow:auto;-ms-overflow-style:scrollbar}figure{margin:0 0 1rem}img{vertical-align:middle;border-style:none}svg{overflow:hidden;vertical-align:middle}table{border-collapse:collapse}caption{padding-top:.75rem;padding-bottom:.75rem;color:rgba(255,255,255,.4);text-align:left;caption-side:bottom}th{text-align:inherit;text-align:-webkit-match-parent}label{display:inline-block;margin-bottom:.5rem}button{border-radius:0}button:focus:not(:focus-visible){outline:0}button,input,optgroup,select,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}[role=button]{cursor:pointer}select{word-wrap:normal}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]:not(:disabled),[type=reset]:not(:disabled),[type=submit]:not(:disabled),button:not(:disabled){cursor:pointer}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{padding:0;border-style:none}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}textarea{overflow:auto;resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{display:block;width:100%;max-width:100%;padding:0;margin-bottom:.5rem;font-size:1.5rem;line-height:inherit;color:inherit;white-space:normal}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item;cursor:pointer}template{display:none}[hidden]{display:none!important}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{margin-bottom:.5rem;font-weight:500;line-height:1.2}.h1,h1{font-size:2.5rem}.h2,h2{font-size:2rem}.h3,h3{font-size:1.75rem}.h4,h4{font-size:1.5rem}.h5,h5{font-size:1.25rem}.h6,h6{font-size:1rem}.lead{font-size:1.25rem;font-weight:300}.display-1{font-size:6rem;font-weight:300;line-height:1.2}.display-2{font-size:5.5rem;font-weight:300;line-height:1.2}.display-3{font-size:4.5rem;font-weight:300;line-height:1.2}.display-4{font-size:3.5rem;font-weight:300;line-height:1.2}hr{margin-top:1rem;margin-bottom:1rem;border:0;border-top:1px solid rgba(0,0,0,.1)}.small,small{font-size:80%;font-weight:400}.mark,mark{padding:.2em;baLine truncated
|
||||||
Vendored
+5
@@ -0,0 +1,5 @@
|
|||||||
|
/*!
|
||||||
|
* Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com
|
||||||
|
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
||||||
|
*/
|
||||||
|
@font-face{font-family:"Font Awesome 5 Brands";font-style:normal;font-weight:400;font-display:block;src:url(../webfonts/fa-brands-400.eot);src:url(../webfonts/fa-brands-400.eot?#iefix) format("embedded-opentype"),url(../webfonts/fa-brands-400.woff2) format("woff2"),url(../webfonts/fa-brands-400.woff) format("woff"),url(../webfonts/fa-brands-400.ttf) format("truetype"),url(../webfonts/fa-brands-400.svg#fontawesome) format("svg")}.fab{font-family:"Font Awesome 5 Brands";font-weight:400}
|
||||||
Vendored
+273
@@ -0,0 +1,273 @@
|
|||||||
|
body {
|
||||||
|
padding-top: 120px;
|
||||||
|
background-color: #212529;
|
||||||
|
}
|
||||||
|
pre {
|
||||||
|
background: #f7f7f9;
|
||||||
|
}
|
||||||
|
iframe {
|
||||||
|
overflow: hidden;
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
@media (min-width: 768px) {
|
||||||
|
body > .navbar-transparent {
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
body > .navbar-transparent .navbar-nav > .open > a {
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.dark-bg {
|
||||||
|
background-color: #212529;
|
||||||
|
}
|
||||||
|
.light-bg {
|
||||||
|
background-color: #212529;
|
||||||
|
}
|
||||||
|
#home,
|
||||||
|
#help {
|
||||||
|
font-size: 0.9rem;
|
||||||
|
}
|
||||||
|
#home .navbar,
|
||||||
|
#help .navbar {
|
||||||
|
background: #349aed;
|
||||||
|
background: linear-gradient(145deg, #349aed 50%, #34d8ed 100%);
|
||||||
|
transition: box-shadow 200ms ease-in;
|
||||||
|
}
|
||||||
|
#home .navbar-transparent,
|
||||||
|
#help .navbar-transparent {
|
||||||
|
background: none !important;
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
#home .navbar-brand .nav-link,
|
||||||
|
#help .navbar-brand .nav-link {
|
||||||
|
display: inline-block;
|
||||||
|
margin-right: -30px;
|
||||||
|
}
|
||||||
|
#home .nav-link,
|
||||||
|
#help .nav-link {
|
||||||
|
text-transform: uppercase;
|
||||||
|
font-weight: 500;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
#home {
|
||||||
|
padding-top: 0;
|
||||||
|
}
|
||||||
|
#home .btn {
|
||||||
|
padding: 0.6rem 0.55rem 0.5rem;
|
||||||
|
box-shadow: none;
|
||||||
|
font-size: 0.7rem;
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
.bs-docs-section {
|
||||||
|
margin-top: 4em;
|
||||||
|
}
|
||||||
|
.bs-docs-section .page-header h1 {
|
||||||
|
padding: 2rem 0;
|
||||||
|
font-size: 3rem;
|
||||||
|
}
|
||||||
|
.dropdown-menu.show[aria-labelledby="themes"] {
|
||||||
|
display: -ms-flexbox;
|
||||||
|
display: flex;
|
||||||
|
width: 420px;
|
||||||
|
-ms-flex-wrap: wrap;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
}
|
||||||
|
.dropdown-menu.show[aria-labelledby="themes"] .dropdown-item {
|
||||||
|
width: 33.333%;
|
||||||
|
}
|
||||||
|
.dropdown-menu.show[aria-labelledby="themes"] .dropdown-item:first-child {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
.bs-component {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
.bs-component + .bs-component {
|
||||||
|
margin-top: 1rem;
|
||||||
|
}
|
||||||
|
.bs-component .card {
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
}
|
||||||
|
.bs-component .modal {
|
||||||
|
position: relative;
|
||||||
|
top: auto;
|
||||||
|
right: auto;
|
||||||
|
left: auto;
|
||||||
|
bottom: auto;
|
||||||
|
z-index: 1;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
.bs-component .modal-dialog {
|
||||||
|
width: 90%;
|
||||||
|
}
|
||||||
|
.bs-component .popover {
|
||||||
|
position: relative;
|
||||||
|
display: inline-block;
|
||||||
|
width: 220px;
|
||||||
|
margin: 20px;
|
||||||
|
}
|
||||||
|
.source-button {
|
||||||
|
display: none;
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
right: 0;
|
||||||
|
z-index: 100;
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
.source-button:hover {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
.bs-component:hover .source-button {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
#source-modal pre {
|
||||||
|
max-height: calc(100vh - 11rem);
|
||||||
|
background-color: rgba(0, 0, 0, 0.7);
|
||||||
|
color: rgba(255, 255, 255, 0.7);
|
||||||
|
}
|
||||||
|
.nav-tabs {
|
||||||
|
margin-bottom: 15px;
|
||||||
|
}
|
||||||
|
.progress {
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#footer {
|
||||||
|
margin: 5em 0;
|
||||||
|
}
|
||||||
|
#footer li {
|
||||||
|
float: left;
|
||||||
|
margin-right: 1.5em;
|
||||||
|
margin-bottom: 1.5em;
|
||||||
|
}
|
||||||
|
#footer p {
|
||||||
|
clear: left;
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
.splash {
|
||||||
|
padding: 12em 0 6em;
|
||||||
|
background: #349aed;
|
||||||
|
background: linear-gradient(145deg, #349aed 50%, #34d8ed 100%);
|
||||||
|
color: #fff;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.splash .logo {
|
||||||
|
width: 160px;
|
||||||
|
}
|
||||||
|
.splash h1 {
|
||||||
|
font-size: 3em;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
.splash #social {
|
||||||
|
margin: 2em 0 3em;
|
||||||
|
}
|
||||||
|
.splash .alert {
|
||||||
|
margin: 2em 0;
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
.splash .sponsor a {
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
.section-tout {
|
||||||
|
padding: 6em 0 1em;
|
||||||
|
border-bottom: 1px solid rgba(0, 0, 0, 0.05);
|
||||||
|
background-color: #eaf1f1;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.section-tout .icon {
|
||||||
|
display: -ms-flexbox;
|
||||||
|
display: flex;
|
||||||
|
-ms-flex-pack: center;
|
||||||
|
justify-content: center;
|
||||||
|
-ms-flex-align: center;
|
||||||
|
align-items: center;
|
||||||
|
width: 80px;
|
||||||
|
height: 80px;
|
||||||
|
margin: 0 auto 1rem;
|
||||||
|
background: #349aed;
|
||||||
|
background: linear-gradient(145deg, #3b9cea 50%, #3db8eb 100%);
|
||||||
|
border-radius: 50%;
|
||||||
|
font-size: 2rem;
|
||||||
|
color: rgba(0, 0, 0, 0.5);
|
||||||
|
}
|
||||||
|
.section-tout p {
|
||||||
|
margin-bottom: 5em;
|
||||||
|
}
|
||||||
|
.section-preview {
|
||||||
|
padding: 4em 0;
|
||||||
|
}
|
||||||
|
.section-preview .preview {
|
||||||
|
margin-bottom: 4em;
|
||||||
|
background-color: #eaf1f1;
|
||||||
|
}
|
||||||
|
.section-preview .preview .image {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
.section-preview .preview .image::before {
|
||||||
|
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
content: "";
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
.section-preview .preview .options {
|
||||||
|
padding: 2em;
|
||||||
|
border: 1px solid rgba(0, 0, 0, 0.05);
|
||||||
|
border-top: none;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.section-preview .preview .options p {
|
||||||
|
margin-bottom: 2em;
|
||||||
|
}
|
||||||
|
.section-preview .dropdown-menu {
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
.section-preview .lead {
|
||||||
|
margin-bottom: 2em;
|
||||||
|
}
|
||||||
|
.sponsor #carbonads {
|
||||||
|
max-width: 240px;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
.sponsor .carbon-text {
|
||||||
|
display: block;
|
||||||
|
margin-top: 1em;
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
.sponsor .carbon-poweredby {
|
||||||
|
float: right;
|
||||||
|
margin-top: 1em;
|
||||||
|
font-size: 10px;
|
||||||
|
}
|
||||||
|
@media (max-width: 767px) {
|
||||||
|
.splash {
|
||||||
|
padding-top: 8em;
|
||||||
|
}
|
||||||
|
.splash .logo {
|
||||||
|
width: 100px;
|
||||||
|
}
|
||||||
|
.splash h1 {
|
||||||
|
font-size: 2em;
|
||||||
|
}
|
||||||
|
#banner {
|
||||||
|
margin-bottom: 2em;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-group {
|
||||||
|
font-size: 13px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tooltip {
|
||||||
|
display: none;
|
||||||
|
position: absolute;
|
||||||
|
padding: 10px;
|
||||||
|
color: #777;
|
||||||
|
background-color: #fff;
|
||||||
|
border: 1px solid #777;
|
||||||
|
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.5);
|
||||||
|
border-radius: 3px;
|
||||||
|
}
|
||||||
Vendored
+5
@@ -0,0 +1,5 @@
|
|||||||
|
/*!
|
||||||
|
* Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com
|
||||||
|
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
||||||
|
*/
|
||||||
|
.fa,.fab,.fad,.fal,.far,.fas{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-block;font-style:normal;font-variant:normal;text-rendering:auto;line-height:1}.fa-lg{font-size:1.33333em;line-height:.75em;vertical-align:-.0667em}.fa-xs{font-size:.75em}.fa-sm{font-size:.875em}.fa-1x{font-size:1em}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-6x{font-size:6em}.fa-7x{font-size:7em}.fa-8x{font-size:8em}.fa-9x{font-size:9em}.fa-10x{font-size:10em}.fa-fw{text-align:center;width:1.25em}.fa-ul{list-style-type:none;margin-left:2.5em;padding-left:0}.fa-ul>li{position:relative}.fa-li{left:-2em;position:absolute;text-align:center;width:2em;line-height:inherit}.fa-border{border:.08em solid #eee;border-radius:.1em;padding:.2em .25em .15em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa.fa-pull-left,.fab.fa-pull-left,.fal.fa-pull-left,.far.fa-pull-left,.fas.fa-pull-left{margin-right:.3em}.fa.fa-pull-right,.fab.fa-pull-right,.fal.fa-pull-right,.far.fa-pull-right,.fas.fa-pull-right{margin-left:.3em}.fa-spin{-webkit-animation:fa-spin 2s linear infinite;animation:fa-spin 2s linear infinite}.fa-pulse{-webkit-animation:fa-spin 1s steps(8) infinite;animation:fa-spin 1s steps(8) infinite}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.fa-rotate-90{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";-webkit-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";-webkit-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";-webkit-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";-webkit-transform:scaleX(-1);transform:scaleX(-1)}.fa-flip-vertical{-webkit-transform:scaleY(-1);transform:scaleY(-1)}.fa-flip-both,.fa-flip-horizontal.fa-flip-vertical,.fa-flip-vertical{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)"}.fa-flip-both,.fa-flip-horizontal.fa-flip-vertical{-webkit-transform:scale(-1);transform:scale(-1)}:root .fa-flip-both,:root .fa-flip-horizontal,:root .fa-flip-vertical,:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270{-webkit-filter:none;filter:none}.fa-stack{display:inline-block;height:2em;line-height:2em;position:relative;vertical-align:middle;width:2.5em}.fa-stack-1x,.fa-stack-2x{left:0;position:absolute;text-align:center;width:100%}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-500px:before{content:"\f26e"}.fa-accessible-icon:before{content:"\f368"}.fa-accusoft:before{content:"\f369"}.fa-acquisitions-incorporated:before{content:"\f6af"}.fa-ad:before{content:"\f641"}.fa-address-book:before{content:"\f2b9"}.fa-address-card:before{content:"\f2bb"}.fa-adjust:before{content:"\f042"}.fa-adn:before{content:"\f170"}.fa-adversal:before{content:"\f36a"}.fa-affiliatetheme:before{content:"\f36b"}.fa-air-freshener:before{content:"\f5d0"}.fa-airbnb:before{content:"\f834"}.fa-algolia:before{content:"\f36c"}.fa-align-center:before{content:"\f037"}.fa-align-justify:before{content:"\f039"}.fa-align-left:before{content:"\f036"}.fa-align-right:before{content:"\f038"}.fa-alipay:before{content:"\f642"}.fa-allergies:before{content:"\f461"}.fa-amazon:before{content:"\f270"}.fa-amazon-pay:before{content:"\f42c"}.fa-ambulance:before{content:"\f0f9"}.fa-american-sign-language-interpreting:before{content:"\f2a3"}.fa-amilia:before{content:"\f36d"}.fa-anchor:before{content:"\f13d"}.fa-android:before{content:"\f17b"}.fa-angellist:before{content:"\f209"}.fa-angle-double-down:before{content:"\f103"}.fa-angle-double-left:before{content:"\f100"}.fa-angle-double-right:before{content:"\f101"}.fa-angle-double-up:before{content:"\f102"}.fa-angle-down:before{content:"\f107"}.fa-angle-left:before{content:"\f104"}.fa-angle-right:before{content:"\f105"}.fa-angle-up:before{content:"\f106"}.fa-angry:before{content:"\f556"}.fa-angrycreative:before{content:"\f36e"}.fa-angular:before{content:"\f420"}.fa-ankh:before{content:"\f644"}.fa-app-store:before{content:"\f36f"}.fa-app-store-ios:before{content:"\f370"}.fa-apper:before{content:"\f371"}.fa-apple:before{content:"\f179"}.fa-apple-alt:before{content:"\f5d1"}.fa-apple-pay:before{content:"\f415"}.fa-archive:before{content:"\f187"}.fa-archway:before{content:"\f557"}.fa-arrow-alt-circle-down:before{content:"\f358"}.fa-arrow-alt-circle-left:before{content:"\f359"}.fa-arrow-alt-circle-right:before{content:"\f35a"}.fa-arrow-alt-circle-up:before{content:"\f35b"}.fa-arrow-circle-down:before{content:"\f0ab"}.fa-arrow-circle-left:before{content:"\f0a8"}.fa-arrow-ciLine truncated
|
||||||
Vendored
+5
@@ -0,0 +1,5 @@
|
|||||||
|
/*!
|
||||||
|
* Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com
|
||||||
|
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
||||||
|
*/
|
||||||
|
@font-face{font-family:"Font Awesome 5 Free";font-style:normal;font-weight:900;font-display:block;src:url(../webfonts/fa-solid-900.eot);src:url(../webfonts/fa-solid-900.eot?#iefix) format("embedded-opentype"),url(../webfonts/fa-solid-900.woff2) format("woff2"),url(../webfonts/fa-solid-900.woff) format("woff"),url(../webfonts/fa-solid-900.ttf) format("truetype"),url(../webfonts/fa-solid-900.svg#fontawesome) format("svg")}.fa,.fas{font-family:"Font Awesome 5 Free";font-weight:900}
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 15 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.2 KiB |
@@ -0,0 +1,186 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<title>Filament Dry Box - Sasa Karanovic</title>
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
<link rel="stylesheet" href="css/bootstrap.min.css" />
|
||||||
|
<link rel="stylesheet" href="css/custom.min.css" />
|
||||||
|
<link href="css/fontawesome.min.css" rel="stylesheet">
|
||||||
|
<link href="css/brands.min.css" rel="stylesheet">
|
||||||
|
<link href="css/solid.min.css" rel="stylesheet">
|
||||||
|
<link rel="shortcut icon" type="image/jpg" href="img/favicon.png" />
|
||||||
|
</head>
|
||||||
|
<body class="d-flex flex-column min-vh-100">
|
||||||
|
<div class="navbar navbar-expand-lg fixed-top navbar-dark dark-bg">
|
||||||
|
<div class="container">
|
||||||
|
<a href="#" class="navbar-brand">Filament Dry Box</a>
|
||||||
|
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
|
||||||
|
<span class="navbar-toggler-icon"></span>
|
||||||
|
</button>
|
||||||
|
<div class="collapse navbar-collapse" id="navbarResponsive">
|
||||||
|
<!-- <ul class="navbar-nav">
|
||||||
|
<li class="nav-item">
|
||||||
|
<a class="nav-link" href="https://sasakaranovic.com/projects/diy-filament-dry-box/">How it works?</a>
|
||||||
|
</li>
|
||||||
|
<li class="nav-item">
|
||||||
|
<a class="nav-link" href="https://sasakaranovic.com/projects/diy-filament-dry-box/">Project Home</a>
|
||||||
|
</li>
|
||||||
|
<li class="nav-item">
|
||||||
|
<a class="nav-link" href="https://github.com/SasaKaranovic/DIY-Filament-Dryer" target="_blank">Source Code</a>
|
||||||
|
</li>
|
||||||
|
</ul> -->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Container -->
|
||||||
|
<div class="container">
|
||||||
|
<!-- Content - First row -->
|
||||||
|
<div class="row">
|
||||||
|
<!-- Left column -->
|
||||||
|
<div class="col-lg-5 col-md-5 col-sm-5">
|
||||||
|
<!-- DryBox status title -->
|
||||||
|
<div class="page-header">
|
||||||
|
<h2>DryBox Status</h2>
|
||||||
|
</div>
|
||||||
|
<!-- DryBox status title end -->
|
||||||
|
|
||||||
|
<!-- DryBox status -->
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-12">
|
||||||
|
<div class="table-responsive">
|
||||||
|
<table class="table table-sm table-borderless">
|
||||||
|
<tr>
|
||||||
|
<td colspan="4"><span id="status-box" class="badge badge-pill badge-warning">Dry box is ??</span></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th scope="col"></th>
|
||||||
|
<th scope="col">Inside</th>
|
||||||
|
<th scope="col">Outside</th>
|
||||||
|
<th scope="col"></th>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Temperature</td>
|
||||||
|
<td><span id="status-temp-inside">??</span>°C</td>
|
||||||
|
<td><span id="status-temp-outside">??</span>°C</td>
|
||||||
|
<td></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Humidity</td>
|
||||||
|
<td><span id="status-humidity-inside">??</span>%</td>
|
||||||
|
<td><span id="status-humidity-outside">??</span>%</td>
|
||||||
|
<td></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td colspan="4"></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th scope="col"></th>
|
||||||
|
<th scope="col">Current</th>
|
||||||
|
<th scope="col">Limit</th>
|
||||||
|
<th scope="col"></th>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Heater Temperature</td>
|
||||||
|
<td><span id="status-temp-heater">??</span>°C</td>
|
||||||
|
<td><span id="status-temp-heater-max">??</span>°C</td>
|
||||||
|
<td></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Temperature Inside</td>
|
||||||
|
<td><span id="status-temp-inside2">??</span>°C</td>
|
||||||
|
<td><span id="status-temp-inside-target">??</span>°C</td>
|
||||||
|
<td></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td colspan="1">Fan speed</td>
|
||||||
|
<td colspan="3"><span id="status-fan-speed">??</span>%</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- DryBox status END -->
|
||||||
|
</div>
|
||||||
|
<!-- Left column END -->
|
||||||
|
|
||||||
|
<!-- Right column -->
|
||||||
|
<div class="col-lg-5 col-md-5 col-sm-5 offset-lg-1">
|
||||||
|
<div class="row">
|
||||||
|
<!-- DryBox control -->
|
||||||
|
<div class="col-lg-12">
|
||||||
|
<h2>Control</h2>
|
||||||
|
</div>
|
||||||
|
<!-- DryBox control END -->
|
||||||
|
|
||||||
|
<div class="col-lg-12">
|
||||||
|
<legend>Temperature</legend>
|
||||||
|
|
||||||
|
<fieldset class="form-group">
|
||||||
|
<label for="labelSetTemperature">Target temperature: 25°C</label>
|
||||||
|
<div class="float-right">
|
||||||
|
<a href="#" id="pop-temp"><img src="img/help.png" /></a>
|
||||||
|
</div>
|
||||||
|
<input type="range" class="custom-range" id="sliderTemperature" min="15" max="80" step="1" value="25" />
|
||||||
|
</fieldset>
|
||||||
|
|
||||||
|
<legend>Fan speed</legend>
|
||||||
|
<fieldset class="form-group">
|
||||||
|
<label for="labelSetFanSpeed">Fan speed: 50%</label>
|
||||||
|
<div class="float-right">
|
||||||
|
<a href="#" id="pop-fan"><img src="img/help.png" /></a>
|
||||||
|
</div>
|
||||||
|
<input type="range" class="custom-range" id="sliderFanSpeed" min="0" max="100" step="5" value="50" />
|
||||||
|
</fieldset>
|
||||||
|
|
||||||
|
<legend>Max Heater Temperature</legend>
|
||||||
|
<fieldset class="form-group">
|
||||||
|
<label for="labelSetHeaterTemperature">Max heater temperature: 55°C</label>
|
||||||
|
<div class="float-right">
|
||||||
|
<a href="#" id="pop-heater"><img src="img/help.png" /></a>
|
||||||
|
</div>
|
||||||
|
<input type="range" class="custom-range" id="sliderHeaterTemperature" min="30" max="80" step="1" value="55" />
|
||||||
|
</fieldset>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-lg-12">
|
||||||
|
<div class="btn-group btn-group-md mr-2" role="group">
|
||||||
|
<button type="button" id="btnSet" class="btn btn-primary mr-2"><i class="fas fa-fire"></i> Turn ON</button>
|
||||||
|
<button type="button" id="btnTurnOff" class="btn btn-primary"><i class="fas fa-power-off"></i> Turn OFF</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- Right column END -->
|
||||||
|
</div>
|
||||||
|
<!-- Content - First row END -->
|
||||||
|
</div>
|
||||||
|
<!-- Container END -->
|
||||||
|
|
||||||
|
<!-- FOOTER -->
|
||||||
|
<footer class="w-100 py-2 flex-shrink-0 mt-auto dark-bg">
|
||||||
|
<div class="container py-2">
|
||||||
|
<div class="row gy-4 gx-5">
|
||||||
|
<div class="col-lg-6 col-md-6">
|
||||||
|
<p class="small text-muted">
|
||||||
|
Dry box controller <!-- by <a href="https://SasaKaranovic.com/" target="_blank">Saša Karanović</a><br> -->
|
||||||
|
Released as open-source and open-hardware for you to hack and enjoy! :)<br>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div class="col-lg-6 col-md-6">
|
||||||
|
<!-- <a class="m-2" href="https://sasakaranovic.com/" target="_blank"><i class="fas fa-home"></i> Blog</a>
|
||||||
|
<a class="m-2" href="https://youtube.com/c/sasakaranovic" target="_blank"><i class="fab fa-youtube"></i> YouTube</a>
|
||||||
|
<a class="m-2" href="https://twitter.com/_sasakaranovic_" target="_blank"><i class="fab fa-twitter"></i> Twitter</a>
|
||||||
|
<a class="m-2" href="https://github.com/sasakaranovic" target="_blank"><i class="fab fa-github"></i> GitHub</a>
|
||||||
|
<a class="m-2" href="https://buymeacoffee.com/sasakaranovic" target="_blank"><i class="fas fa-mug-hot"></i> Buy me a coffee</a> -->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
<script src="js/jquery-3.6.0.min.js"></script>
|
||||||
|
<script src="js/bootstrap.bundle.min.js"></script>
|
||||||
|
<script src="js/drybox.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Vendored
+7
@@ -0,0 +1,7 @@
|
|||||||
|
/*!
|
||||||
|
* Bootstrap v5.1.3 (https://getbootstrap.com/)
|
||||||
|
* Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||||
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
|
*/
|
||||||
|
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).bootstrap=e()}(this,(function(){"use strict";const t="transitionend",e=t=>{let e=t.getAttribute("data-bs-target");if(!e||"#"===e){let i=t.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),e=i&&"#"!==i?i.trim():null}return e},i=t=>{const i=e(t);return i&&document.querySelector(i)?i:null},n=t=>{const i=e(t);return i?document.querySelector(i):null},s=e=>{e.dispatchEvent(new Event(t))},o=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),r=t=>o(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?document.querySelector(t):null,a=(t,e,i)=>{Object.keys(i).forEach((n=>{const s=i[n],r=e[n],a=r&&o(r)?"element":null==(l=r)?`${l}`:{}.toString.call(l).match(/\s([a-z]+)/i)[1].toLowerCase();var l;if(!new RegExp(s).test(a))throw new TypeError(`${t.toUpperCase()}: Option "${n}" provided type "${a}" but expected type "${s}".`)}))},l=t=>!(!o(t)||0===t.getClientRects().length)&&"visible"===getComputedStyle(t).getPropertyValue("visibility"),c=t=>!t||t.nodeType!==Node.ELEMENT_NODE||!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled")),h=t=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?h(t.parentNode):null},d=()=>{},u=t=>{t.offsetHeight},f=()=>{const{jQuery:t}=window;return t&&!document.body.hasAttribute("data-bs-no-jquery")?t:null},p=[],m=()=>"rtl"===document.documentElement.dir,g=t=>{var e;e=()=>{const e=f();if(e){const i=t.NAME,n=e.fn[i];e.fn[i]=t.jQueryInterface,e.fn[i].Constructor=t,e.fn[i].noConflict=()=>(e.fn[i]=n,t.jQueryInterface)}},"loading"===document.readyState?(p.length||document.addEventListener("DOMContentLoaded",(()=>{p.forEach((t=>t()))})),p.push(e)):e()},_=t=>{"function"==typeof t&&t()},b=(e,i,n=!0)=>{if(!n)return void _(e);const o=(t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:i}=window.getComputedStyle(t);const n=Number.parseFloat(e),s=Number.parseFloat(i);return n||s?(e=e.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(i))):0})(i)+5;let r=!1;const a=({target:n})=>{n===i&&(r=!0,i.removeEventListener(t,a),_(e))};i.addEventListener(t,a),setTimeout((()=>{r||s(i)}),o)},v=(t,e,i,n)=>{let s=t.indexOf(e);if(-1===s)return t[!i&&n?t.length-1:0];const o=t.length;return s+=i?1:-1,n&&(s=(s+o)%o),t[Math.max(0,Math.min(s,o-1))]},y=/[^.]*(?=\..*)\.|.*/,w=/\..*/,E=/::\d+$/,A={};let T=1;const O={mouseenter:"mouseover",mouseleave:"mouseout"},C=/^(mouseenter|mouseleave)/i,k=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function L(t,e){return e&&`${e}::${T++}`||t.uidEvent||T++}function x(t){const e=L(t);return t.uidEvent=e,A[e]=A[e]||{},A[e]}function D(t,e,i=null){const n=Object.keys(t);for(let s=0,o=n.length;s<o;s++){const o=t[n[s]];if(o.originalHandler===e&&o.delegationSelector===i)return o}return null}function S(t,e,i){const n="string"==typeof e,s=n?i:e;let o=P(t);return k.has(o)||(o=t),[n,s,o]}function N(t,e,i,n,s){if("string"!=typeof e||!t)return;if(i||(i=n,n=null),C.test(e)){const t=t=>function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)};n?n=t(n):i=t(i)}const[o,r,a]=S(e,i,n),l=x(t),c=l[a]||(l[a]={}),h=D(c,r,o?i:null);if(h)return void(h.oneOff=h.oneOff&&s);const d=L(r,e.replace(y,"")),u=o?function(t,e,i){return function n(s){const o=t.querySelectorAll(e);for(let{target:r}=s;r&&r!==this;r=r.parentNode)for(let a=o.length;a--;)if(o[a]===r)return s.delegateTarget=r,n.oneOff&&j.off(t,s.type,e,i),i.apply(r,[s]);return null}}(t,i,n):function(t,e){return function i(n){return n.delegateTarget=t,i.oneOff&&j.off(t,n.type,e),e.apply(t,[n])}}(t,i);u.delegationSelector=o?i:null,u.originalHandler=r,u.oneOff=s,u.uidEvent=d,c[d]=u,t.addEventListener(a,u,o)}function I(t,e,i,n,s){const o=D(e[i],n,s);o&&(t.removeEventListener(i,o,Boolean(s)),delete e[i][o.uidEvent])}function P(t){return t=t.replace(w,""),O[t]||t}const j={on(t,e,i,n){N(t,e,i,n,!1)},one(t,e,i,n){N(t,e,i,n,!0)},off(t,e,i,n){if("string"!=typeof e||!t)return;const[s,o,r]=S(e,i,n),a=r!==e,l=x(t),c=e.startsWith(".");if(void 0!==o){if(!Line truncated
|
||||||
|
//# sourceMappingURL=bootstrap.bundle.min.js.map
|
||||||
@@ -0,0 +1,144 @@
|
|||||||
|
// Shorthand for $( document ).ready()
|
||||||
|
$(function() {
|
||||||
|
|
||||||
|
$('#sliderTemperature').on('input change', function(){
|
||||||
|
$("label[for='labelSetTemperature']").text("Target temperature: " + parseInt(this.value) +"°C");
|
||||||
|
});
|
||||||
|
|
||||||
|
$('#sliderHeaterTemperature').on('input change', function(){
|
||||||
|
$("label[for='labelSetHeaterTemperature']").text("Max heater temperature: " + parseInt(this.value) +"°C");
|
||||||
|
});
|
||||||
|
|
||||||
|
$('#sliderFanSpeed').on('input change', function(){
|
||||||
|
$("label[for='labelSetFanSpeed']").text("Fan speed: " + parseInt(this.value) +"%");
|
||||||
|
});
|
||||||
|
|
||||||
|
$('#btnSet').on('click', function(){
|
||||||
|
var temperature = $("#sliderTemperature").val();
|
||||||
|
var heater = $("#sliderHeaterTemperature").val();
|
||||||
|
var fanspeed = $("#sliderFanSpeed").val();
|
||||||
|
|
||||||
|
// Send
|
||||||
|
$.ajax({
|
||||||
|
url: "/set",
|
||||||
|
type: "get", //send it through get method
|
||||||
|
data: {
|
||||||
|
temperature: temperature,
|
||||||
|
heater: heater,
|
||||||
|
fanspeed: fanspeed,
|
||||||
|
},
|
||||||
|
success: function(response) {
|
||||||
|
//Do Something
|
||||||
|
console.log(response);
|
||||||
|
update_status(false);
|
||||||
|
},
|
||||||
|
error: function(xhr) {
|
||||||
|
//Do Something to handle error
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
$('#btnTurnOff').on('click', function(){
|
||||||
|
// Send
|
||||||
|
$.ajax({
|
||||||
|
url: "/off",
|
||||||
|
type: "get", //send it through get method
|
||||||
|
success: function(response) {
|
||||||
|
console.log(response);
|
||||||
|
update_status(false);
|
||||||
|
},
|
||||||
|
error: function(xhr) {
|
||||||
|
//Do Something to handle error
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
$('a#pop-temp').popover({
|
||||||
|
trigger : 'click',
|
||||||
|
placement : 'top',
|
||||||
|
html: true,
|
||||||
|
title : 'Target Temperature',
|
||||||
|
content : 'This is the maximum/desired temperature we want inside the box.<br>\
|
||||||
|
The system will try to reach and then maintain this temperature.',
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
$('a#pop-fan').popover({
|
||||||
|
trigger : 'click',
|
||||||
|
placement : 'top',
|
||||||
|
html: true,
|
||||||
|
title : 'Fan speed',
|
||||||
|
content : 'Set the speed of the internal fan used to circulate the air inside the dry box.<br><br>\
|
||||||
|
0% = Off<br>\
|
||||||
|
50% = 50% of fan\'s maximum RPM<br>\
|
||||||
|
100% = Full speed',
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
$('a#pop-heater').popover({
|
||||||
|
trigger : 'click',
|
||||||
|
placement : 'top',
|
||||||
|
html: true,
|
||||||
|
title : 'Max heater temperature',
|
||||||
|
content : 'Maximum allowed temerature heater can reach.<br>This limit should be set to avoid damage to your filament or the box/heater itself.<br>\
|
||||||
|
For example; Let\'s say that your heater could reach max temperature of 150°C. However this could start to melt your filament, melt the dry box or start a fire.<br>\
|
||||||
|
In order to avoid this, we set a heater temperature limit to make sure heater never passes this set temperature during normal operation.<br>\
|
||||||
|
This limit will also affect how long it takes to reach target temperature.',
|
||||||
|
});
|
||||||
|
// Finally update status
|
||||||
|
update_status(true);
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
function update_status(rearm)
|
||||||
|
{
|
||||||
|
var ajaxTime= new Date().getTime();
|
||||||
|
|
||||||
|
$.ajax({
|
||||||
|
url: "/status",
|
||||||
|
type: "get", //send it through get method
|
||||||
|
success: function(response) {
|
||||||
|
console.log(response);
|
||||||
|
|
||||||
|
var res = jQuery.parseJSON(response);
|
||||||
|
|
||||||
|
$('#status-temp-target').text(res.target_temp_in);
|
||||||
|
$('#status-fan-speed').text(res.fan_speed);
|
||||||
|
$('#status-temp-inside').text(res.temp_in.toFixed(1));
|
||||||
|
$('#status-temp-inside2').text(res.temp_in.toFixed(1));
|
||||||
|
$('#status-temp-inside-target').text(res.target_temp_in.toFixed(1));
|
||||||
|
$('#status-temp-heater').text(res.temp_heater.toFixed(0));
|
||||||
|
$('#status-temp-heater-max').text(res.max_temp_heater.toFixed(0));
|
||||||
|
$('#status-humidity-inside').text(res.humid_in.toFixed(0));
|
||||||
|
$('#status-temp-outside').text(res.temp_out.toFixed(0));
|
||||||
|
$('#status-humidity-outside').text(res.humid_out.toFixed(0));
|
||||||
|
|
||||||
|
// Homed status
|
||||||
|
if(res.status == 1) {
|
||||||
|
$('#status-box').text('Dry box is on').addClass('badge-success').removeClass('badge-warning').removeClass('badge-danger');
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$('#status-box').text('Dry box is off').addClass('badge-warning').removeClass('badge-success').removeClass('badge-danger');
|
||||||
|
}
|
||||||
|
|
||||||
|
},
|
||||||
|
error: function(xhr) {
|
||||||
|
$('#status-box').text('Dry box is unreachable!').addClass('badge-danger').removeClass('badge-success').removeClass('badge-warning');
|
||||||
|
}
|
||||||
|
}).done(function () {
|
||||||
|
var totalTime = new Date().getTime()-ajaxTime;
|
||||||
|
// Here I want to get the how long it took to load some.php and use it further
|
||||||
|
});;
|
||||||
|
|
||||||
|
if(rearm) {
|
||||||
|
rearm_status();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function rearm_status()
|
||||||
|
{
|
||||||
|
setTimeout(function () {
|
||||||
|
update_status(true);
|
||||||
|
}, 2000);
|
||||||
|
}
|
||||||
|
|
||||||
Vendored
+2
@@ -0,0 +1,2 @@
|
|||||||
|
/*! jQuery v3.6.0 | (c) OpenJS Foundation and other contributors | jquery.org/license */
|
||||||
|
!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){"use strict";var t=[],r=Object.getPrototypeOf,s=t.slice,g=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},u=t.push,i=t.indexOf,n={},o=n.toString,v=n.hasOwnProperty,a=v.toString,l=a.call(Object),y={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},x=function(e){return null!=e&&e===e.window},E=C.document,c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||E).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.6.0",S=function(e,t){return new S.fn.init(e,t)};function p(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}S.fn=S.prototype={jquery:f,constructor:S,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=S.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return S.each(this,e)},map:function(n){return this.pushStack(S.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(S.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(S.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:t.sort,splice:t.splice},S.extend=S.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||m(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(l&&r&&(S.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||S.isPlainObject(n)?n:{},i=!1,a[t]=S.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},S.extend({expando:"jQuery"+(f+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==o.call(e))&&(!(t=r(e))||"function"==typeof(n=v.call(t,"constructor")&&t.constructor)&&a.call(n)===l)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){b(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(p(e)){for(n=e.length;r<n;r++)if(!1===t.call(e[r],r,e[r]))break}else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(p(Object(e))?S.merge(n,"string"==typeof e?[e]:e):u.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:i.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(p(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return g(a)},guid:1,support:y}),"function"==typeof Symbol&&(S.fn[Symbol.iterator]=t[Symbol.iterator]),S.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){n["[object "+t+"]"]=t.toLowerCase()});var d=function(n){var e,d,b,o,i,h,f,g,w,u,l,T,C,a,E,v,s,c,y,S="sizzle"+1*new Date,p=n.document,k=0,r=0,m=ue(),x=ue(),A=ue(),N=ue(),j=function(e,t){return e===t&&(l=!0),0},D={}.hasOwnProperty,t=[],q=t.pop,L=t.push,H=t.push,O=t.slice,P=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",I="(?:\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",W="\\["+M+"*("+I+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+I+"))|)"+M+"*\\]",F=":("+I+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+W+")*)|.*)\\)|)",B=new RegExp(M+"+","g"),$=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),_=new RegExp("^"+M+"*,"+M+"*"),z=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp(F),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^Line truncated
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,39 @@
|
|||||||
|
|
||||||
|
This directory is intended for project header files.
|
||||||
|
|
||||||
|
A header file is a file containing C declarations and macro definitions
|
||||||
|
to be shared between several project source files. You request the use of a
|
||||||
|
header file in your project source file (C, C++, etc) located in `src` folder
|
||||||
|
by including it, with the C preprocessing directive `#include'.
|
||||||
|
|
||||||
|
```src/main.c
|
||||||
|
|
||||||
|
#include "header.h"
|
||||||
|
|
||||||
|
int main (void)
|
||||||
|
{
|
||||||
|
...
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Including a header file produces the same results as copying the header file
|
||||||
|
into each source file that needs it. Such copying would be time-consuming
|
||||||
|
and error-prone. With a header file, the related declarations appear
|
||||||
|
in only one place. If they need to be changed, they can be changed in one
|
||||||
|
place, and programs that include the header file will automatically use the
|
||||||
|
new version when next recompiled. The header file eliminates the labor of
|
||||||
|
finding and changing all the copies as well as the risk that a failure to
|
||||||
|
find one copy will result in inconsistencies within a program.
|
||||||
|
|
||||||
|
In C, the usual convention is to give header files names that end with `.h'.
|
||||||
|
It is most portable to use only letters, digits, dashes, and underscores in
|
||||||
|
header file names, and at most one dot.
|
||||||
|
|
||||||
|
Read more about using header files in official GCC documentation:
|
||||||
|
|
||||||
|
* Include Syntax
|
||||||
|
* Include Operation
|
||||||
|
* Once-Only Headers
|
||||||
|
* Computed Includes
|
||||||
|
|
||||||
|
https://gcc.gnu.org/onlinedocs/cpp/Header-Files.html
|
||||||
@@ -0,0 +1,46 @@
|
|||||||
|
|
||||||
|
This directory is intended for project specific (private) libraries.
|
||||||
|
PlatformIO will compile them to static libraries and link into executable file.
|
||||||
|
|
||||||
|
The source code of each library should be placed in an own separate directory
|
||||||
|
("lib/your_library_name/[here are source files]").
|
||||||
|
|
||||||
|
For example, see a structure of the following two libraries `Foo` and `Bar`:
|
||||||
|
|
||||||
|
|--lib
|
||||||
|
| |
|
||||||
|
| |--Bar
|
||||||
|
| | |--docs
|
||||||
|
| | |--examples
|
||||||
|
| | |--src
|
||||||
|
| | |- Bar.c
|
||||||
|
| | |- Bar.h
|
||||||
|
| | |- library.json (optional, custom build options, etc) https://docs.platformio.org/page/librarymanager/config.html
|
||||||
|
| |
|
||||||
|
| |--Foo
|
||||||
|
| | |- Foo.c
|
||||||
|
| | |- Foo.h
|
||||||
|
| |
|
||||||
|
| |- README --> THIS FILE
|
||||||
|
|
|
||||||
|
|- platformio.ini
|
||||||
|
|--src
|
||||||
|
|- main.c
|
||||||
|
|
||||||
|
and a contents of `src/main.c`:
|
||||||
|
```
|
||||||
|
#include <Foo.h>
|
||||||
|
#include <Bar.h>
|
||||||
|
|
||||||
|
int main (void)
|
||||||
|
{
|
||||||
|
...
|
||||||
|
}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
PlatformIO Library Dependency Finder will find automatically dependent
|
||||||
|
libraries scanning project source files.
|
||||||
|
|
||||||
|
More information about PlatformIO Library Dependency Finder
|
||||||
|
- https://docs.platformio.org/page/librarymanager/ldf.html
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
; PlatformIO Project Configuration File
|
||||||
|
;
|
||||||
|
; Build options: build flags, source filter
|
||||||
|
; Upload options: custom upload port, speed and extra flags
|
||||||
|
; Library options: dependencies, extra library storages
|
||||||
|
; Advanced options: extra scripting
|
||||||
|
;
|
||||||
|
; Please visit documentation for the other options and examples
|
||||||
|
; https://docs.platformio.org/page/projectconf.html
|
||||||
|
|
||||||
|
[env:d1_mini_pro]
|
||||||
|
platform = espressif8266
|
||||||
|
board = d1_mini
|
||||||
|
framework = arduino
|
||||||
|
upload_speed = 721000
|
||||||
|
lib_deps =
|
||||||
|
gyverlibs/GyverOS@^1.2.1
|
||||||
|
adafruit/Adafruit BME280 Library@^2.2.4
|
||||||
|
me-no-dev/ESP Async WebServer@^1.2.3
|
||||||
|
gyverlibs/GyverPID@^3.3.2
|
||||||
|
board_build.filesystem = littlefs
|
||||||
@@ -0,0 +1,40 @@
|
|||||||
|
#ifndef _DIY_DRYBOX_CFG_H_
|
||||||
|
#define _DIY_DRYBOX_CFG_H_
|
||||||
|
// clang-format off
|
||||||
|
#define PIN_ONE_WIRE_BUS 18
|
||||||
|
#define PIN_HEATER_CTL 16
|
||||||
|
#define PIN_FAN_PWM 17
|
||||||
|
#define PIN_FAN_TACHO 5
|
||||||
|
|
||||||
|
#define PID_KP 65
|
||||||
|
#define PID_KI 81
|
||||||
|
#define PID_KD 50
|
||||||
|
|
||||||
|
#define PWM_HEATER_INVERT_VALUES 1
|
||||||
|
#define PWM_FREQ_HEATER 500
|
||||||
|
#define PWM_FREQ_FAN 25000
|
||||||
|
#define PWM_RESOLUTION 10
|
||||||
|
#define PWM_MAX_VALUE 1024L
|
||||||
|
#define HEATER_DUTY_OFF 0
|
||||||
|
#define HEATER_PWM_OFF PWM_MAX_VALUE
|
||||||
|
#define PWM_CH_HEATER 0
|
||||||
|
#define PWM_CH_FAN 2
|
||||||
|
|
||||||
|
#define TEMPERATURE_PRECISION 10
|
||||||
|
#define LIMIT_TEMP_IN_MIN 20
|
||||||
|
#define LIMIT_TEMP_IN_MAX 70
|
||||||
|
#define LIMIT_TEMP_HEATER_MIN 20
|
||||||
|
#define LIMIT_TEMP_HEATER_MAX 75
|
||||||
|
#define LIMIT_FAN_SPEED_MIN 0
|
||||||
|
#define LIMIT_FAN_SPEED_MAX 100
|
||||||
|
|
||||||
|
#define DEF_USE_WEB 1
|
||||||
|
#define DEF_DEBUG_CALIBRATE_ADC 0
|
||||||
|
#define DEF_DEBUG_PID 0
|
||||||
|
#define DEF_DEBUG_HETER_SAMPLES 0
|
||||||
|
#define DEF_DEBUG_SENSOR_SAMPLES 0
|
||||||
|
#define DEF_DEBUG_PWM_VALUES 0
|
||||||
|
#define DEF_DEUG_SPIFFS 0
|
||||||
|
|
||||||
|
// clang-format on
|
||||||
|
#endif
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
void setup_fan() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void set_fan_duty(uint8_t duty)
|
||||||
|
{
|
||||||
|
fan_duty = duty;
|
||||||
|
}
|
||||||
@@ -0,0 +1,47 @@
|
|||||||
|
#include "GyverPID.h"
|
||||||
|
|
||||||
|
GyverPID regulator(PID_KP, PID_KI, PID_KD);
|
||||||
|
|
||||||
|
void setup_heater(){
|
||||||
|
regulator.setDirection(NORMAL);
|
||||||
|
//regulator.setLimits(0, 1023);
|
||||||
|
regulator.setpoint = LIMIT_TEMP_HEATER_MIN;
|
||||||
|
}
|
||||||
|
|
||||||
|
void change_target_temperature(int temperature){
|
||||||
|
regulator.setpoint = temperature;
|
||||||
|
}
|
||||||
|
|
||||||
|
void current_temperature_updated(float temperature){
|
||||||
|
regulator.input = temperature;
|
||||||
|
}
|
||||||
|
|
||||||
|
void task_heater() {
|
||||||
|
if (box_status == 0){
|
||||||
|
set_heater_duty(HEATER_DUTY_OFF);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
int pwm_value = 0;
|
||||||
|
if (temperature_heater > max_temperature_heater || temperature_in > max_temperature_heater){
|
||||||
|
Serial.println("Max temperature reached. Setting off heater!");
|
||||||
|
pwm_value = 0;
|
||||||
|
}else{
|
||||||
|
pwm_value = regulator.getResult();
|
||||||
|
};
|
||||||
|
|
||||||
|
#if DEF_DEBUG_PID
|
||||||
|
Serial.print("current pid value: ");
|
||||||
|
Serial.println(pwm_value);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
set_heater_duty(pwm_value);
|
||||||
|
}
|
||||||
|
|
||||||
|
void set_heater_duty(uint8_t duty)
|
||||||
|
{
|
||||||
|
fan_duty = duty;
|
||||||
|
analogWrite(LED_PIN, 255-duty);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -0,0 +1,46 @@
|
|||||||
|
#include <Arduino.h>
|
||||||
|
#include <GyverOS.h>
|
||||||
|
// Local import
|
||||||
|
#include "config.h"
|
||||||
|
#include "wifi_credentials.h"
|
||||||
|
|
||||||
|
#define DEBUG 1
|
||||||
|
#define LED_PIN D4
|
||||||
|
|
||||||
|
GyverOS<5> OS; // указать макс. количество задач
|
||||||
|
//web
|
||||||
|
float target_temperature_in = 0.0;
|
||||||
|
float max_temperature_heater = 0.0;
|
||||||
|
float target_fan_percent = 10.0;
|
||||||
|
uint8_t box_status = 0;
|
||||||
|
float temperature_in = 0;
|
||||||
|
float temperature_out = 0;
|
||||||
|
float temperature_heater = 0;
|
||||||
|
float humidity_in = 0;
|
||||||
|
uint8_t fan_duty = 0;
|
||||||
|
uint8_t humidity_out = 0;
|
||||||
|
//end web
|
||||||
|
|
||||||
|
void setup() {
|
||||||
|
Serial.begin(9600);
|
||||||
|
pinMode(LED_PIN, OUTPUT);
|
||||||
|
|
||||||
|
setup_temperature_sensors();
|
||||||
|
setup_heater();
|
||||||
|
setup_fan();
|
||||||
|
setup_web();
|
||||||
|
|
||||||
|
// подключаем задачи (порядковый номер, имя функции, период в мс)
|
||||||
|
OS.attach(0, task_setup_web, 1000);
|
||||||
|
OS.attach(1, task_read_temperatures, 1000);
|
||||||
|
OS.attach(2, task_heater, 1000);
|
||||||
|
}
|
||||||
|
|
||||||
|
void loop() {
|
||||||
|
OS.tick(); // вызывать как можно чаще, задачи выполняются здесь
|
||||||
|
|
||||||
|
// OS.getLeft() возвращает время в мс до ближайшей задачи
|
||||||
|
// на это время можно усыпить МК, например при помощи narcoleptic или GyverPower
|
||||||
|
// для примера просто поставим delay на это время
|
||||||
|
delay(OS.getLeft());
|
||||||
|
}
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
#include <Adafruit_BME280.h>
|
||||||
|
|
||||||
|
Adafruit_BME280 bme280; // BME280 на I2C
|
||||||
|
|
||||||
|
void setup_temperature_sensors(){
|
||||||
|
bme280.begin(0x76);
|
||||||
|
}
|
||||||
|
|
||||||
|
void task_read_temperatures() {
|
||||||
|
//digitalWrite(LED_PIN, !digitalRead(LED_PIN));
|
||||||
|
|
||||||
|
// температура
|
||||||
|
temperature_in = bme280.readTemperature();
|
||||||
|
humidity_in = bme280.readHumidity();
|
||||||
|
|
||||||
|
current_temperature_updated(temperature_in);
|
||||||
|
|
||||||
|
#if DEBUG
|
||||||
|
String txt1="";
|
||||||
|
txt1="Temp=";
|
||||||
|
txt1= txt1+String(temperature_in);
|
||||||
|
txt1= txt1+" *C";
|
||||||
|
Serial.println(txt1);
|
||||||
|
|
||||||
|
// влажность
|
||||||
|
txt1="Hum=";
|
||||||
|
txt1= txt1+String(humidity_in);
|
||||||
|
txt1= txt1+" %";
|
||||||
|
Serial.println(txt1);
|
||||||
|
Serial.println("--------------------------------------------");
|
||||||
|
#endif
|
||||||
|
}
|
||||||
+144
@@ -0,0 +1,144 @@
|
|||||||
|
//web
|
||||||
|
#ifdef ESP32
|
||||||
|
#include <WiFi.h>
|
||||||
|
#include <AsyncTCP.h>
|
||||||
|
#elif defined(ESP8266)
|
||||||
|
#include <ESP8266WiFi.h>
|
||||||
|
#include <ESPAsyncTCP.h>
|
||||||
|
#endif
|
||||||
|
#include "ESPAsyncWebServer.h"
|
||||||
|
#include <FS.h>
|
||||||
|
#include <LittleFS.h>
|
||||||
|
|
||||||
|
AsyncWebServer server(80);
|
||||||
|
int WiFi_status = WL_IDLE_STATUS;
|
||||||
|
int wifi_debug_printed = 0;
|
||||||
|
|
||||||
|
void setup_web() {
|
||||||
|
WiFi.begin(ssid, password);
|
||||||
|
wifi_debug_printed = 0;
|
||||||
|
|
||||||
|
LittleFS.begin();
|
||||||
|
}
|
||||||
|
|
||||||
|
void task_setup_web() {
|
||||||
|
int wifi_status = WiFi.status();
|
||||||
|
if (wifi_status != WL_CONNECTED){
|
||||||
|
Serial.print("WiFi Status: ");
|
||||||
|
Serial.println(wifi_status);
|
||||||
|
wifi_debug_printed = 0;
|
||||||
|
} else if (wifi_status == WL_CONNECTED && wifi_debug_printed == 0) {
|
||||||
|
Serial.print("WiFi IP: ");
|
||||||
|
Serial.println(WiFi.localIP());
|
||||||
|
wifi_debug_printed = 1;
|
||||||
|
|
||||||
|
|
||||||
|
setupWebServer();
|
||||||
|
server.begin();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void setupWebServer(void)
|
||||||
|
{
|
||||||
|
server.onNotFound([](AsyncWebServerRequest *request) {
|
||||||
|
Serial.println("404:");
|
||||||
|
Serial.println(request->url());
|
||||||
|
request->send(404);
|
||||||
|
});
|
||||||
|
|
||||||
|
// // send a file when /index is requested
|
||||||
|
server.on("/index.html", HTTP_ANY, [](AsyncWebServerRequest *request) {
|
||||||
|
request->send(LittleFS, "/index.html");
|
||||||
|
});
|
||||||
|
|
||||||
|
// send a file when /index is requested
|
||||||
|
server.on("/", HTTP_ANY, [](AsyncWebServerRequest *request) {
|
||||||
|
request->send(LittleFS, "/index.html");
|
||||||
|
});
|
||||||
|
|
||||||
|
server.serveStatic("/img/", LittleFS, "/img/");
|
||||||
|
server.serveStatic("/css/", LittleFS, "/css/");
|
||||||
|
server.serveStatic("/js/", LittleFS, "/js/");
|
||||||
|
server.serveStatic("/webfonts/", LittleFS, "/webfonts/");
|
||||||
|
|
||||||
|
// Get dry box status
|
||||||
|
server.on("/status", HTTP_GET, [](AsyncWebServerRequest *request) {
|
||||||
|
char buff[200] = {0};
|
||||||
|
int len;
|
||||||
|
len =
|
||||||
|
snprintf(buff, 200,
|
||||||
|
"{\"status\":%d, \"target_temp_in\":%f, "
|
||||||
|
"\"max_temp_heater\":%f, "
|
||||||
|
"\"temp_in\":%f, \"temp_heater\":%f, \"humid_in\":%f, "
|
||||||
|
"\"fan_speed\":%d, \"temp_out\":%f, \"humid_out\":%d}",
|
||||||
|
box_status, target_temperature_in, max_temperature_heater,
|
||||||
|
temperature_in, temperature_heater, humidity_in, fan_duty,
|
||||||
|
temperature_out, humidity_out);
|
||||||
|
|
||||||
|
if (len)
|
||||||
|
{
|
||||||
|
request->send(200, "text/plain", buff);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
request->send(500, "text/plain",
|
||||||
|
"{\"status\": \"Internal server error\"}");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
//Turn OFF dry box
|
||||||
|
server.on("/off", HTTP_GET, [](AsyncWebServerRequest *request) {
|
||||||
|
box_status = 0;
|
||||||
|
set_fan_duty(0);
|
||||||
|
set_heater_duty(HEATER_DUTY_OFF);
|
||||||
|
target_temperature_in = 0;
|
||||||
|
max_temperature_heater = 0;
|
||||||
|
request->send(200, "text/plain", "{\"status\": \"OK\"}");
|
||||||
|
});
|
||||||
|
|
||||||
|
// Turn ON dry box and set target temperature, max heater temperature and fan speed
|
||||||
|
server.on("/set", HTTP_GET, [](AsyncWebServerRequest *request) {
|
||||||
|
// Check if temperature, heater temperature and fan speed arguments are present
|
||||||
|
if (request->hasParam("temperature") && request->hasParam("heater") &&
|
||||||
|
request->hasParam("fanspeed"))
|
||||||
|
{
|
||||||
|
int32_t temperature = 0;
|
||||||
|
int32_t heater = 0;
|
||||||
|
int32_t fanspeed = 0;
|
||||||
|
|
||||||
|
temperature = request->getParam("temperature")->value().toInt();
|
||||||
|
heater = request->getParam("heater")->value().toInt();
|
||||||
|
fanspeed = request->getParam("fanspeed")->value().toInt();
|
||||||
|
|
||||||
|
#if DEF_DEUG_WEB_API
|
||||||
|
Serial.println((String) "Target temp: " + temperature +
|
||||||
|
"C Heater: " + heater + "C Fan Speed: " + fanspeed);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// Check drybox temperature and heater temperature limit
|
||||||
|
if ( (temperature <= LIMIT_TEMP_IN_MAX) && (heater <= LIMIT_TEMP_HEATER_MAX) )
|
||||||
|
{
|
||||||
|
target_temperature_in = temperature;
|
||||||
|
max_temperature_heater = heater;
|
||||||
|
change_target_temperature(temperature);
|
||||||
|
set_fan_duty(fanspeed);
|
||||||
|
box_status = 1;
|
||||||
|
request->send(200, "text/plain", "{\"status\": \"OK\"}");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
// If either of them are out of range, return bad request status
|
||||||
|
else
|
||||||
|
{
|
||||||
|
request->send(400, "text/plain", "{\"status\": \"Bad request. Limit error!\"}");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
// Not all arguments are present in the request
|
||||||
|
else
|
||||||
|
{
|
||||||
|
request->send(400, "text/plain", "{\"status\": \"Bad request\"}");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
#ifndef __WIFI_CRED_CFG_
|
||||||
|
#define __WIFI_CRED_CFG_
|
||||||
|
// clang-format off
|
||||||
|
const char* ssid = "MonsterFNV";
|
||||||
|
const char* password = "*******";
|
||||||
|
// clang-format on
|
||||||
|
#endif
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
|
||||||
|
This directory is intended for PlatformIO Test Runner and project tests.
|
||||||
|
|
||||||
|
Unit Testing is a software testing method by which individual units of
|
||||||
|
source code, sets of one or more MCU program modules together with associated
|
||||||
|
control data, usage procedures, and operating procedures, are tested to
|
||||||
|
determine whether they are fit for use. Unit testing finds problems early
|
||||||
|
in the development cycle.
|
||||||
|
|
||||||
|
More information about PlatformIO Unit Testing:
|
||||||
|
- https://docs.platformio.org/en/latest/advanced/unit-testing/index.html
|
||||||
Reference in new issue
Block a user