I am pleased to show you the simplest web tool for ewelink.
Full open-source project
Go to the Guide: docs/INSTALL.md
The only use that we give to the credentials (email / password) is to obtain access from ewelink
const { email, password } = req.body;
const connection = new ewelink({
email,
password,
});
const data = await connection.getCredentials();
( email / password are data for 1 use only, they are not stored for anything )
This is what the access data for the Ewelink account and devices looks like
{
"at": "*************",
"rt": "*************",
"user": {
"clientInfo": {
"model": "iPhone 11 Pro_iPhone12,3",
"os": "iOS",
"imei": "*************",
"romVersion": "14.3",
"appVersion": "4.8.1"
},
"_id": "*************",
"email": "usertest@gmail.com",
"password": "*************",
"appId": "*************",
"isAccepEmailAd": false,
"createdAt": "2019-08-01T22:25:08.703Z",
"apikey": "*************",
"__v": 0,
"lang": "en",
"online": false,
"onlineTime": "2021-01-10T23:15:14.852Z",
"appInfos": [
{ "os": "ios", "appVersion": "" },
{ "os": "android", "appVersion": "4.6.0" }
],
"ip": "179.13.51.15",
"location": "",
"offlineTime": "2021-01-10T23:16:21.459Z",
"bindInfos": { "gaction": ["ewelink-google-home-v1", "ewelinkGoogleHome"] },
"userStatus": "2",
"nickname": "usertest",
"countryCode": "+86",
"currentFamilyId": "*************",
"language": "en",
"extra": { "ipCountry": "CO" }
},
"region": "us"
}
Once the access JSON is obtained, we use the data obtained at
, region
, etc...
const connection = new ewelink({
at,
region,
});
References:
Feel free to make suggestions or feedback through github issues or Reddit