|
|
|
@ -11,6 +11,7 @@ function update(){ |
|
|
|
|
fs.readFile("C:\\Users\\sigon\\Documents\\memory", |
|
|
|
|
(err,data)=>{ |
|
|
|
|
var fileContents = data.toString().split("\n"); |
|
|
|
|
if (fileContents.length>=387){ |
|
|
|
|
for (i=0;i<fileContents.length;i++){ |
|
|
|
|
line=fileContents[i] |
|
|
|
|
item=line.split(" ") |
|
|
|
@ -35,6 +36,7 @@ function update(){ |
|
|
|
|
axios.post("http://projectdivar.com/inventoryData",finalData) |
|
|
|
|
} |
|
|
|
|
firstLoad=false |
|
|
|
|
} |
|
|
|
|
setTimeout(update,1000) |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|