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

Add History Data for AirPurifier Core300S #167

Open
Flobul opened this issue Dec 9, 2022 · 0 comments
Open

Add History Data for AirPurifier Core300S #167

Flobul opened this issue Dec 9, 2022 · 0 comments
Labels
enhancement New feature or request todo

Comments

@Flobul
Copy link

Flobul commented Dec 9, 2022

Here are some requests working on my Core300S.

POST https://smartapi.vesync.com/cloud/v2/deviceManaged/getAirPurifierData

{"appVersion":"1.1","phoneBrand":"Jeedom-VeSync","phoneOS":"Jeedom-VeSync","traceId":1670058086681,"acceptLanguage":"fr","region":"EU","timeZone":"Europe/Brussels","accountID":"0000000","token":"00000000000000000000000000000000000000000000000000==","method":"getAirPurifierData","debugMode":true,"deviceRegion":"EU","cid":"00000000000000000000000000000000","configModel":"NOT_EMPTY","configModule":"WiFiBTOnboardingNotify_AirPurifier_Core300S_EU","payload":{"data":{}, "method":"","source":"APP"}}

{
    "traceId": "1670058086681",
    "code": 0,
    "msg": "request success",
    "module": null,
    "stacktrace": null,
    "result": {
        "totalUsedTime": 150300,
        "totalCleanAir": 2957,
        "totalEnergySaving": 0
    }
}

POST https://smartapi.vesync.com/cloud/v2/deviceManaged/getAirPurifierDailyData

{"appVersion":"1.1","phoneBrand":"Jeedom-VeSync","phoneOS":"Jeedom-VeSync","traceId":1670058086681,"acceptLanguage":"fr","region":"EU","timeZone":"Europe/Brussels","accountID":"0000000","token":"00000000000000000000000000000000000000000000000000==","method":"getAirPurifierDailyData","debugMode":true,"deviceRegion":"EU","cid":"00000000000000000000000000000000","configModule":"WiFiBTOnboardingNotify_AirPurifier_Core300S_EU","payload":{"data":{}, "method":"","source":"APP"}}

{
    "traceId": "1670058086681",
    "code": 0,
    "msg": "request success",
    "module": null,
    "stacktrace": null,
    "result": {
        "data": [
            {
                "date": "2022-11-28",
                "averagePM10": null,
                "averagePm2p5": 5,
                "averagePM1": null,
                "runningTime": {
                    "totalTime": 162,
                    "distribution": [
                        {
                            "closeTime": "21:42",
                            "openTime": "18:59"
                        }
                    ]
                }
            },
            {
                "date": "2022-11-30",
                "averagePM10": null,
                "averagePm2p5": 6,
                "averagePM1": null,
                "runningTime": {
                    "totalTime": 118,
                    "distribution": [
                        {
                            "closeTime": "19:31",
                            "openTime": "18:54"
                        },
                        {
                            "closeTime": "20:54",
                            "openTime": "19:36"
                        }
                    ]
                }
            },
            {
                "date": "2022-12-01",
                "averagePM10": null,
                "averagePm2p5": 6,
                "averagePM1": null,
                "runningTime": {
                    "totalTime": 140,
                    "distribution": [
                        {
                            "closeTime": "22:44",
                            "openTime": "20:23"
                        }
                    ]
                }
            },
            {
                "date": "2022-12-02",
                "averagePM10": null,
                "averagePm2p5": 8,
                "averagePM1": null,
                "runningTime": {
                    "totalTime": 292,
                    "distribution": [
                        {
                            "closeTime": "17:49",
                            "openTime": "15:06"
                        },
                        {
                            "closeTime": "21:37",
                            "openTime": "19:27"
                        }
                    ]
                }
            },
            {
                "date": "2022-12-03",
                "averagePM10": null,
                "averagePm2p5": 7,
                "averagePM1": null,
                "runningTime": {
                    "totalTime": 627,
                    "distribution": [
                        {
                            "closeTime": "13:00",
                            "openTime": "09:40"
                        },
                        {
                            "closeTime": "20:40",
                            "openTime": "14:43"
                        },
                        {
                            "closeTime": "21:59",
                            "openTime": "20:59"
                        }
                    ]
                }
            },
            {
                "date": "2022-12-04",
                "averagePM10": null,
                "averagePm2p5": 9,
                "averagePM1": null,
                "runningTime": {
                    "totalTime": 453,
                    "distribution": [
                        {
                            "closeTime": "10:52",
                            "openTime": "09:52"
                        },
                        {
                            "closeTime": "11:24",
                            "openTime": "10:54"
                        },
                        {
                            "closeTime": "15:21",
                            "openTime": "14:51"
                        },
                        {
                            "closeTime": "21:19",
                            "openTime": "15:49"
                        }
                    ]
                }
            },
            {
                "date": "2022-12-06",
                "averagePM10": null,
                "averagePm2p5": 9,
                "averagePM1": null,
                "runningTime": {
                    "totalTime": 42,
                    "distribution": []
                }
            },
            {
                "date": "2022-12-07",
                "averagePM10": null,
                "averagePm2p5": 13,
                "averagePM1": null,
                "runningTime": {
                    "totalTime": 60,
                    "distribution": [
                        {
                            "closeTime": "18:51",
                            "openTime": "18:21"
                        },
                        {
                            "closeTime": "20:39",
                            "openTime": "20:08"
                        }
                    ]
                }
            },
            {
                "date": "2022-12-08",
                "averagePM10": null,
                "averagePm2p5": 7,
                "averagePM1": null,
                "runningTime": {
                    "totalTime": 41,
                    "distribution": [
                        {
                            "closeTime": "18:29",
                            "openTime": "17:58"
                        }
                    ]
                }
            }
        ]
    }
}
@webdjoe webdjoe added enhancement New feature or request todo labels Feb 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request todo
Projects
None yet
Development

No branches or pull requests

2 participants