Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix 判断是否在线不应该使用equipNet 而是使用status #4

Merged
merged 1 commit into from
Aug 12, 2024

Conversation

LOVE2CMOL
Copy link
Contributor

@LOVE2CMOL LOVE2CMOL commented Mar 24, 2024

根据对接口数据的差异对比得出
image

tuqiang123_data_fetcher.py
判断设备是否在线不应该使用equipNet 而是使用status的OFFLINE状态

@LOVE2CMOL
Copy link
Contributor Author

新代码 在线状态已验证
image
image

@LOVE2CMOL
Copy link
Contributor Author

新代码 离线状态验证
image

@LOVE2CMOL
Copy link
Contributor Author

LOVE2CMOL commented Mar 24, 2024

#5
同时 建议增加 statusAbstract 的数据源 样本如下

                "gpsTime": "2024-03-24 17:18:44",
                "hbTime": "2024-03-24 17:53:51",
                "imei": "XXXXX",
                "isTagFlag": "0",
                "lat": "XXXXX.XXXXX",
                "lng": "XXXXX.XXXXX",
                "orgId": "XXXXX",
                "otherPosTime": "",
                "positionType": "GPS",
                "powerStatus": "1",
                "staticSort": -2,
                "status": "OFFLINE",
                "statusAbstract": "离线11分钟",
                "statusStr": "11分钟",
                "totalKm": "0.04",
                "voltage": "12.97"
                "gpsTime": "2024-03-24 17:18:44",
                "hbTime": "2024-03-24 18:06:53",
                "imei": "XXXXX",
                "isTagFlag": "0",
                "lat": "XXXXX.XXXXX",
                "lng": "XXXXX.XXXXX",
                "orgId": "XXXXX",
                "otherPosTime": "",
                "positionType": "GPS",
                "powerStatus": "1",
                "staticSort": 3589129,
                "status": "STATIC",
                "statusAbstract": "静止59分钟",
                "statusStr": "59分钟",
                "totalKm": "0.04",
                "voltage": "13.08"

@dscao dscao merged commit 5febc17 into dscao:main Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants