tuyapi icon indicating copy to clipboard operation
tuyapi copied to clipboard

codetheweb/tuyapi or tuyapi

Open jonnytest1 opened this issue 1 year ago • 1 comments

Describe the bug i think the npm package is just "tuyapi" but the readme says to isntall a different one

jonnytest1 avatar Aug 14 '24 15:08 jonnytest1

btw i found an easier path to get the "key"

you can just use the normal api from @tuya/tuya-connector-nodejs set accessKEy and secretKey (which are easier available)

and then const deviceData = await tuya.request<{ id: string, category: string }>({ method: "GET", path: /v2.0/cloud/thing/${deviceId} }) deviceData.result.local_key

jonnytest1 avatar Aug 14 '24 17:08 jonnytest1