diff --git a/apps/tempmonitor/interface.html b/apps/tempmonitor/interface.html
index e9fd569d7..fdf447bde 100644
--- a/apps/tempmonitor/interface.html
+++ b/apps/tempmonitor/interface.html
@@ -26,15 +26,20 @@ function getData() {
return;
}
// Otherwise parse the data and output it as a table
+ //
${(new Date(l[0]*1000)).toLocaleString()} |
dataElement.innerHTML = `
+ | Month |
+ Day |
Time |
temperature |
`+data.trim().split("\n").map(l=>{
l = l.split(";");
return `
- | ${(new Date(l[0]*1000)).toLocaleString()} |
+ ${l[0]} |
${l[1]} |
+ ${l[2]} |
+ ${l[3]} |
`
}).join("\n")+"
";
});
diff --git a/apps/tempmonitor/metadata.json b/apps/tempmonitor/metadata.json
index 39a704f99..dafb70f27 100644
--- a/apps/tempmonitor/metadata.json
+++ b/apps/tempmonitor/metadata.json
@@ -8,7 +8,7 @@
"interface": "interface.html",
"supports": ["BANGLEJS", "BANGLEJS2"],
"readme": "README.md",
- "screenshots": [{"url":"photo_banglejs1.jpg"}],
+ "screenshots": [{"url":"ss_emul_bjs2.png"}],
"allow_emulator": true,
"storage": [
{"name":"tempmonitor.app.js","url":"tempmonitor.app.js"},
diff --git a/apps/tempmonitor/photo_banglejs1.jpg b/apps/tempmonitor/photo_banglejs1.jpg
index 58c64b01c..7352e619a 100644
Binary files a/apps/tempmonitor/photo_banglejs1.jpg and b/apps/tempmonitor/photo_banglejs1.jpg differ
diff --git a/apps/tempmonitor/tempmonitor.app.js b/apps/tempmonitor/tempmonitor.app.js
index 662fa391e..fb8b91f30 100644
--- a/apps/tempmonitor/tempmonitor.app.js
+++ b/apps/tempmonitor/tempmonitor.app.js
@@ -69,9 +69,10 @@ function saveToFile() {
strlastSaveTime=a.toISOString();
//strlastSaveTime=strlastSaveTime.concat(a.getFullYear(),a.getMonth()+1,a.getDate(),a.getHours(),a.getMinutes());;
if (v_mode_debug==1) console.log("saving="+strlastSaveTime+";"+lastMeasure);
-
+
if (v_saveToFile=='Y'){
- require("Storage").open(filename,"a").write(strlastSaveTime+";"+lastMeasure+"\n");
+ //write(strlastSaveTime+";"+
+ require("Storage").open(filename,"a").write(a.getMonth()+";"+a.getDate()+";"+a.getHours()+":"+a.getMinutes()+";"+lastMeasure+"\n");
//(getTime()+",");
v_saved_entries=v_saved_entries+1;
}