- Create an account at https://www.tplinkcloud.com/
- Authenticate to TP-Link cloud API and get a token
- Get the end point URL and Device ID
- Put the token in scripts.js and get it started.
Use sample curl:
curl -X POST \
https://wap.tplinkcloud.com \
-H 'Content-Type: application/json' \
-d '{
"method": "login",
"params": {
"appType": "Kasa_Android",
"cloudUserName": "YOUR_CLOUD_USER_NAME",
"cloudPassword": "YOUR_CLOUD_USER_PWD",
"terminalUUID": "MY_UUID_v4"
}
}'