Spaces:
Sleeping
Sleeping
Update index.js
Browse files
index.js
CHANGED
@@ -22,10 +22,10 @@ app.get('/', (req, res) => {
|
|
22 |
const minutesAgo = Math.round((now - lastUpdate) / 60000);
|
23 |
|
24 |
let html = `<html><head>
|
25 |
-
<title
|
26 |
<style>body { font-family: Arial; }</style>
|
27 |
</head><body>`;
|
28 |
-
html += '<h1
|
29 |
html += `<p>Last update: ${(new Date(lastUpdate)).toISOString()} (${minutesAgo} min ago)</p>`;
|
30 |
html += `<p>Hardware: ${statistics.hardware}</p>`;
|
31 |
html += `<p>SDK: ${statistics.sdk}</p>`;
|
|
|
22 |
const minutesAgo = Math.round((now - lastUpdate) / 60000);
|
23 |
|
24 |
let html = `<html><head>
|
25 |
+
<title>🪴 HF plant monitoring</title>
|
26 |
<style>body { font-family: Arial; }</style>
|
27 |
</head><body>`;
|
28 |
+
html += '<h1>🪴 HF plant monitoring</h1>';
|
29 |
html += `<p>Last update: ${(new Date(lastUpdate)).toISOString()} (${minutesAgo} min ago)</p>`;
|
30 |
html += `<p>Hardware: ${statistics.hardware}</p>`;
|
31 |
html += `<p>SDK: ${statistics.sdk}</p>`;
|