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

Stats from outside LAN? #38

Open
daniel-liuzzi opened this issue Jan 17, 2018 · 3 comments
Open

Stats from outside LAN? #38

daniel-liuzzi opened this issue Jan 17, 2018 · 3 comments
Assignees
Labels

Comments

@daniel-liuzzi
Copy link

From Kasa I can get usage and runtime stats from both inside and outside my LAN. Since I haven't setup any port forwarding in my home router, I'm assuming this information must be coming from TP-Link's own servers. I was wondering whether tplink-smarthome-api allows this? Thanks a lot for this project!

@plasticrake
Copy link
Owner

Yeah that uses the TP-Link cloud. You could write your own server that uses this API on your network, and have it relay outside your network, your own cloud. I know there is a cloud API to interact with the TP-Link cloud, not sure if there is a node version though. I have considered adding it to this project but didn't know if there was much interest.

@plasticrake plasticrake self-assigned this Jan 17, 2018
@daniel-liuzzi
Copy link
Author

daniel-liuzzi commented Jan 18, 2018

Hey thanks for your response. I checked and, indeed, there's tplink-cloud-api NPM module for retrieving data from TP-Link cloud. I've been playing with it and it seems to work fine. Unfortunately though, it only supports real-time power consumption (see adumont/tplink-cloud-api#3); no days/month stats API yet, but it's a start!

@DerekLeeHH
Copy link

Tplink-cloud-api for lightblub doesnt have any light states. Really need that so much..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants