show versions of code and data

This commit is contained in:
Torsten 2021-07-25 18:47:11 +03:00
parent 287f928f68
commit e695930268
2 changed files with 5 additions and 4 deletions

View File

@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<title>My first Chartist Tests</title>
<title>Fan control</title>
<link rel="stylesheet" href="chartist.min.css.gz">
<style>
.ct-chart{
@ -26,7 +26,7 @@
<div class="ct-chart chart2"></div>
</div>
<div class="right">
<h1> Log </h1>
<h1> Log 1.0.1 </h1>
<div id="log"></div>
</div>
<script >
@ -37,7 +37,7 @@
if (this.readyState == 4 && this.status == 200) {
var series = JSON.parse(this.responseText);
var data = { series: series };
chart = new Chartist.Line(clazz, data , {high: 30 , low: -25});
chart = new Chartist.Line(clazz, data , {});
}
}
xhttp.open("GET", url, true);

View File

@ -4,6 +4,7 @@
#include <FS.h>
static String FAN_VERSION = "1.0.1" ;
String getContentType(String filename){
if(filename.indexOf(".htm") > 0) return "text/html";
@ -98,7 +99,7 @@ void server_setup(){
});
server.on("/", HTTP_GET, [](AsyncWebServerRequest *request){
DEBUG_OUT.println("Index.html");
DEBUG_OUT.println("Index.html " + FAN_VERSION);
request->send(LittleFS, "/index.html", "text/html;charset=utf-8");
});
server.on("/chartist.min.css.gz", HTTP_GET, [](AsyncWebServerRequest *request){