Changes for UAT

pull/4/head
Jose Vera 2022-03-02 18:24:35 -05:00
parent ea5acd1f90
commit 16b6256367
2 changed files with 6 additions and 2 deletions

View File

@ -1,4 +1,4 @@
version: "3.9"
version: "3.0"
services:
server:
build: .
@ -8,7 +8,7 @@ services:
volumes:
- ./:/app
ports:
- "3000:3000"
- "80:3000"
- "4040:4040"
worker:
build: .

View File

@ -185,6 +185,7 @@ function processSegmentRLog(rLogPath) {
let readStream;
let reader;
try {
readStream = fs.createReadStream(temporaryFile);
reader = Reader(readStream);
@ -199,8 +200,11 @@ function processSegmentRLog(rLogPath) {
} catch (exception) { }
resolve();
});
//const jsonLog = fs.createWriteStream(rLogPath.replace('.bz2', '.json'));
try {
reader((obj) => {
//jsonLog.write(JSON.stringify(obj));
try {
if (obj.LogMonoTime !== undefined && obj.LogMonoTime - rlog_lastTsInternal >= 1000000 * 1000 * 0.99 && obj.GpsLocation !== undefined) {
logger.info(`processSegmentRLog GpsLocation @ ${obj.LogMonoTime}: ${obj.GpsLocation.Latitude} ${obj.GpsLocation.Longitude}`);