-
Notifications
You must be signed in to change notification settings - Fork 0
/
Page_Information.h
executable file
·87 lines (67 loc) · 11.6 KB
/
Page_Information.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#ifndef PAGE_INFOMATION_H
#define PAGE_INFOMATION_H
//
// The HTML PAGE
//
const char PAGE_Information[] PROGMEM = R"=====(
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="style.css" type="text/css" />
<script src="microajax.js"></script>
<a href="admin.html" class="btn btn--s"><</a> <strong>FabFarmer Informationen</strong>
<hr>
<table border="0" cellspacing="0" cellpadding="3" style="width:310px" >
<tr><td align="right">SSID :</td><td><span id="x_ssid"></span></td></tr>
<tr><td align="right">IP :</td><td><span id="x_ip"></span></td></tr>
<tr><td align="right">Netmask :</td><td><span id="x_netmask"></span></td></tr>
<tr><td align="right">Gateway :</td><td><span id="x_gateway"></span></td></tr>
<tr><td align="right">Mac :</td><td><span id="x_mac"></span></td></tr>
<tr><td colspan="2"><hr></span></td></tr>
<tr><td align="right">NTP Zeit:</td><td><span id="x_ntpt"></span></td></tr>
<tr><td align="right">NTP Datum:</td><td><span id="x_ntpd"></span></td></tr>
<tr><td colspan="2"><hr></span></td></tr>
<tr><td align="right">SW Version:</td><td>V<span id="x_version">...</span></td></tr>
<tr><td align="middle">by JTL & thirsch</td><td align="middle">FabLab Bayreuth 2017-2019</td>
<tr><img align="left" width="235" height="75" alt="FLBT Logo" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKkAAAA2CAMAAACLO0mLAAADAFBMVEUhRmghRmkiR2kjSGojSGkkSWomSmsnS2woTG0rT28pTW4oS2wsT3AtUHA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DN6771U+Ev4U/F6kDdPXZZ5lV5RGqbi3Vn20c3+UwqLVLtX6Y1Kb6x4lynLgDhW8iqiSq+BF3+77B5Z5Lf1dnn5Ru7lB5ONkpeczaqX40dRnUqzosXT16uI2KicfRMM6eVFQRm1NFp267BevVqOsOEx6FUSYz3z9S/Z9E7OUM3AoT1selEC360OAzydqq16z0D8Xl0IXG3xmO07qt36gxaPwb50xtsZVvv68mYXa9N7dv3oXnd3sOndUnm3w2vRm6td000vZHc/vzkLteo9uSZWXPUC//ShZUe9EJ7slW82vVEXOKC3fWg7T29o2Huteg3DpvfIIfT6hj3dptd718Br07vax1r94RB6TVjkyZekwR9MvABvM2f7Fs8tmvzMoteZFzO9dOWl1tNZr1eeILrbF9zsW7YNTvblL6t/Xjj5LydviN30cv7hDv6C5t1/BeDB39v1wmPUOpQOtwZw8i2rXjUqXhjWGwPoDmEelun9yAcX3roRcODVkgMn3rz6FSe92HrAcUe9lDViR734Hnzuqvc0X8Cr4tQSeKdo7d4B/x1dIohP/ZbuuXYH7HCqtzwnLuZjjX2LGPazmUH9kInXtCikmdfUyCZmXmMzzc16qQnvjgLMvIGhN80hNGJ96J8d7Vnsm8OBqeO08JpGZMSaT7pisx2M5w/cjI2Nf8yMjQxrvgVrOu8LLNglwxqzYBcMa6dt/nCtd0R5K9//BRL1ErmRpsLZAAAAAElFTkSuQmCC"</td>
<tr><td colspan="2" align="center"><a href="javascript:GetState()" class="btn btn--m btn--green">AKTUALISIEREN</a></td></tr>
<tr><td colspan="2"><hr></span></td></tr>
</table>
<script>
function GetState()
{
setValues("/admin/sensrefreshtimes");
}
window.onload = function ()
{
load("style.css","css", function()
{
load("microajax.js","js", function()
{
GetState();
});
});
}
function load(e,t,n){if("js"==t){var a=document.createElement("script");a.src=e,a.type="text/javascript",a.async=!1,a.onload=function(){n()},document.getElementsByTagName("head")[0].appendChild(a)}else if("css"==t){var a=document.createElement("link");a.href=e,a.rel="stylesheet",a.type="text/css",a.async=!1,a.onload=function(){n()},document.getElementsByTagName("head")[0].appendChild(a)}}
</script>
)=====" ;
//
// FILL WITH INFOMATION
//
void send_information_values_html(AsyncWebServerRequest *request)
{
String values ="";
values += "x_ssid|" + (String)WiFi.SSID() + "|div\n";
values += "x_ip|" + (String) WiFi.localIP()[0] + "." + (String) WiFi.localIP()[1] + "." + (String) WiFi.localIP()[2] + "." + (String) WiFi.localIP()[3] + "|div\n";
values += "x_gateway|" + (String) WiFi.gatewayIP()[0] + "." + (String) WiFi.gatewayIP()[1] + "." + (String) WiFi.gatewayIP()[2] + "." + (String) WiFi.gatewayIP()[3] + "|div\n";
values += "x_netmask|" + (String) WiFi.subnetMask()[0] + "." + (String) WiFi.subnetMask()[1] + "." + (String) WiFi.subnetMask()[2] + "." + (String) WiFi.subnetMask()[3] + "|div\n";
values += "x_mac|" + GetMacAddress() + "|div\n";
values += "x_version|" + (String)PGNV + "|div\n";
char buffer[50];
sprintf(buffer, "x_ntpt|%02d:%02d:%02d|div\n", DateTime.hour, DateTime.minute, DateTime.second);
values += buffer;
sprintf(buffer, "x_ntpd|%02d.%02d.%04d|div\n", DateTime.day, DateTime.month, DateTime.year);
values += buffer;
request->send ( 200, "text/plain", values);
Serial.println(__FUNCTION__);
}
#endif