Some fixes

This commit is contained in:
2012-10-27 15:50:57 +02:00
parent f2faca454c
commit d21f38f24b
4 changed files with 94 additions and 56 deletions

View File

@ -117,15 +117,18 @@ void sensorsJsonCmd(WebServer &server, WebServer::ConnectionType type,
server.httpSuccess("application/json");
server << "{ \"sensors\": ["
<< "{\"data\":\"" << time.hour() << ":" << time.minute()
<< ":" << time.second() << " " << time.day() << "/"
<< time.month() << "/" << time.year() << "\"},"
server << "{ \"sensors\": [" << "{\"data\":\""
<< time.hour() << ":"
<< time.minute() << ":"
<< time.second() << " "
<< time.day() << "/"
<< time.month() << "/"
<< time.year() << "\"},"
<< "{\"data\":" << temperature << "},"
<< "{\"data\":" << pressure << "},"
<< "{\"data\":" << altitude << "},"
<< "{\"data\":" << humidity << "},"
<< "{\"data\":" << pressure << "},"
<< "{\"data\":" << altitude << "},"
<< "{\"data\":" << humidity << "},"
<< "{\"data\":" << tsl.calculateLux(lightFull, lightIr) << "}"
<< "] }";
}