Browse Source

Added a reload interval to the main html page.

klaute 2 years ago
parent
commit
f52e7afc87
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      firmware/webUpdater.ino

+ 3
- 1
firmware/webUpdater.ino View File

@@ -52,7 +52,9 @@ void setSensorData(String device, String localip, float sensorValues[]) {
52 52
 }
53 53
 
54 54
 void showHTMLMain(void) {
55
-  String message = "<html><head><title>OKO Weatherstation - " + String(dev) + "</title></head><body>"
55
+  String message = "<html><head><title>OKO Weatherstation - " + String(dev) + "</title>"
56
+"<meta http-equiv=\"refresh\" content=\"20\">"
57
+"</head><body>"
56 58
 "<br><a href=\"http://" + ip + ":8080/update\">firmware update</a><br><br>"
57 59
 "<table>"
58 60
 "<tr><td>temperature</td><td>" + String(sensValues[SENSOR_TEMPERATURE]) + "</td></tr>"

Loading…
Cancel
Save