lhn153
lhn153
Thanks. Here is a snipper of it (after JSON.parse) ``` { eventCode:20, areaName:Lab, areaId:4028e7549a580d2c019a5c5f4c2a02d4 eventTime:1763721562000 } ```
Sorry for that. Here is the raw data `{ "module": "acc", "dataType": "text", "moduleName": "Access", "content": "{\"areaId\":\"4028e7549a580d2c019a5c5f4c2a02d4\",\"areaName\":\"Lab\",\"capturePhotoPath\":\"/upload/event/photo/QUH4253400003/20251120102140.jpg\",\"cardNo\":\"9045744198220775424\",\"deptCode\":\"1\",\"deptId\":\"4028b8e698e39f9f0198e3a1ec280004\",\"deptName\":\"All\",\"description\":\"\",\"devAlias\":\"ACS_LUMR1_EAST_Lobby\",\"devId\":\"8ae480909a15796a019a158ef57c0038\",\"devSn\":\"QUH4253400003\",\"doorId\":\"8ae480909a15796a019a158ef62e008a\",\"doorName\":\"ACS-LUMBL-A00-Lobby\",\"equals\":false,\"eventAddr\":1,\"eventLevel\":0,\"eventCode\":222,\"eventPointId\":\"8ae480909a15796a019a158ef62e008a\",\"eventPointName\":\"ACS-LUMBL-A00-Lobby\",\"eventPointType\":0,\"eventTime\":1763608900000,\"lastName\":\"\",\"logId\":3160,\"maskFlag\":\"255\",\"name\":\"\",\"persPersonId\":\"4028818b9a85b287019a90c4ba9c03bb\",\"pin\":\"1\",\"readerId\":\"8ae480909a15796a019a158ef62e008b\",\"readerName\":\"10.100.0.14-1-In\",\"readerState\":0,\"temperature\":\"255\",\"uniqueKey\":\"QUH4253400003_3160_2025-11-20 10:21:40\",\"verifyModeName\":\"common_verifyMode_other\",\"verifyModeNo\":200}", "pushType": 7, "pushTypeName": "Event Log" }` Here is my transform script (JS)....
Yeah you're right. I just want to explore more options, or maybe the thingsboard way to handle it and let the system run smoothly. Thanks for your support
Our ThingsBoard Edge instance receives data from devices in the format { ..., eventNumber: someNumber, ... }. The eventNumber corresponds to an enum from the device’s event list. Each time...
Thanks alot! So the best direction is to make a custom widget? I want to keep it working with thingsboard flow and easy to extends with other devices too
Thanks, very helpful.