From 345a5ff8bca697263893e8c5dbf4d86be77cb32b Mon Sep 17 00:00:00 2001 From: Torsten Date: Fri, 25 Jun 2021 09:14:06 +0300 Subject: [PATCH] add mini static graph, no data, and not working with file anymore. Otherwise good --- fan_control/data/chartist.min.css.gz | Bin 0 -> 1520 bytes fan_control/data/index.html | 34 +++++++++++++++++++++++++++ fan_control/src/server.cpp | 2 +- 3 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 fan_control/data/chartist.min.css.gz create mode 100644 fan_control/data/index.html diff --git a/fan_control/data/chartist.min.css.gz b/fan_control/data/chartist.min.css.gz new file mode 100644 index 0000000000000000000000000000000000000000..0847dbfdf7c2a1716fcddb1f1588f8af42fd72c1 GIT binary patch literal 1520 zcmVyD#15Jq2RG^>?%qy~`- zxe#gJ#ee}P4$gqno$hGgea$Vwu5x-pSanvD{?jR!tLl6>faP){>BQm~a_Wdkl2;m# zMAG8LRrXZynC4DNBgsVG8`zVrC>+Y^E6rsF2Gj(R$B5bD&Q6F`qP{X?1&l1;C{J{6 zmZOEVW>83DHw&q)W=bH_ffk99$Vr%9!^JL+g*H(BJd&b~a8?yosKNK|n}}0V1fh`G zKb0FNA?4?UaUK+DNdEF(sy}!BV-pE33e%XVKnmf52JX@?=zhalPMwUhG?T%kju>U6 zkWNU7ZII#;>R^hWQK9CSZ0*k zY+r1X<=XRMHWLR#fH*O}*gyh`;ZPKZ;yBcbGxullEP>ff91sEGP!tCyNHClP#Yu3S z#ERpu*VAbTvza&`0>nvB9GD=*a8eW}#c@(Aj_1$k@eF1&aX`)w-fMYlu#o;&(x8kf8 z%QcqG!~qc?4o7idf<1<_M{)Kz&fba>PNUg$0kfGnAOghMqc|`@j^X4ePLAW`_B-2T zwW3p)&BOr_AWn|rzyt!r5h#wpafB6zEa$6;z-%TChyZZ}iqlU}9}pQQFb7ex`W&vH zoJjUcH{BM*`?EJI2x%g~LN=L za@rgIyL?S;HIq=OaFlc-#X;q%3JJV=ZvUk2USjQ(Z$$3(%w76O3LAglX`l+dgVVcJ z=pVX{sKRRHuDZ_}No7@|=k&;$s1II;Es5sLc1$g1?(Fh`nQkwP+UJpVF-(cxf%%w9 zAmMMXga`2TBlLR}Fb?2H6rsC2U`PCj4!YZeQdC_AgO#XT6h;(cv2YjNXNl$dRFcZ; zp(jVxv@!6(QTKa{sm9dxVS-Pd8kNs50rdWydo?h+d&ZPu;;y{;V!fRBOEi~F5#8;f zC+VP7(Q8K%p}u~({LN@yKxV=95X zNWkv68*fz)DAIJU-77`g?>43edSn}MGyKqd)9_0#$G-4$B>X4uO^>equ0eB{0+;sA z5k;6SFAqqhh19A<=l0NAXnI5ku7R+tj_EC2xff!)>s literal 0 HcmV?d00001 diff --git a/fan_control/data/index.html b/fan_control/data/index.html new file mode 100644 index 0000000..b5d3c2d --- /dev/null +++ b/fan_control/data/index.html @@ -0,0 +1,34 @@ + + + + My first Chartist Tests + + + + +

Weekly

+
+

Monthly

+
+ + + + + diff --git a/fan_control/src/server.cpp b/fan_control/src/server.cpp index 1f37673..b84f523 100644 --- a/fan_control/src/server.cpp +++ b/fan_control/src/server.cpp @@ -25,7 +25,7 @@ String getContentType(String filename){ bool handleFileRead(String path ){ DBG_OUTPUT_PORT.println("handleFileRead: " + path); - if(path.endsWith("/")) path += "index.htm"; + if(path.endsWith("/")) path += "index.html"; String contentType = getContentType(path); String pathWithGz = path + ".gz"; if(LittleFS.exists(pathWithGz) || LittleFS.exists(path)){