###### tags: `meeting minutes` # 新系統開會紀錄 2020/01/20 ## Zono - 新增data的機制 [(slides)](https://docs.google.com/presentation/d/1O7rAKcWFE4PqB39nmc8HeSiUJXCPM0Sw4RM93pTEXkM/edit#slide=id.p) :::success 在Zono中新增一SQS client,當有新data上傳至S3時,傳送SQS訊息至Zono,讓Zono parse data後,並更新至DB ::: - How to convert latitude, longitude to address - Google API - OpenStreetMap - [openData](https://drive.google.com/drive/folders/10_3uveo5_f0HyMDw1tKipgOYrbKD2dld?usp=sharing_eil&ts=5e1ecc10)格式 - zones - Schema ```json= { "_id": ObjectId "category": string, //Parking, Trip, Service, System, Assistance "type": string, "name": string, //name of the store "phone": string, "website": string, "serviceHours": "", "location":{ "type": string, //point, circle "diameter": double, "direction": number, //0-360 angle "cordinates":{ "longitude": double, "latitude": double, } }, "address": string, "city": string, "country": string "usedId": string, //null == public(?) "actionEntry": ["push", "sms"], // notify other service OAO?! "actionExit": ["push", "sms"], "speedLimit": number, "issueString": string } ``` ## Sensol #### 規格異動 - 事件字段調整 - sensol -> alerto的event中,移除tripId ``` // Add sensol SQS json format ``` - 移除暫存機制 >> fix: 將micro service變成stateless - 資料庫表格名稱調整 - vehicle_info調整成vehicles ## Vehicle #### 規格異動 - 收到非法字元(e.g., 0或null)則忽略不採用 (e.g., L1中avgRPM為0或null,則不更新DB中avgRPM的值) >> fix error: 將數值0納入計算平均 - 取during trip值時,需由reportType,區分L1/L2 Report >> fix error: 誤用L1/L2不存在為之數值 #### 待修正錯誤 - 打包時更新 - 同步更新vehicle.dailyRecords, vehicle.weeklyRecords, vehicle.monthlyRecords - 清空fuelStats的值 >> fix error: weeklyRecords每週更新、monthlyReords每月更新 fuelStats之值錯誤 ## Tripo - 效能問題 - 當5至10台OBD2時,ecs container (0.25 vCPU, 0.5GB Mem) CPU loading已達97%