Skip to content

mikemrm/Go-TPLink-SmartPlug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TPLink SmartPlug poller

Another little project to learn golang

Example Output

$ go run tpmon.go
Discovering devices...
Found 2 devices!
+------------------+------------------+-----------+---------+----------+-------+--------+---------+---------+------+-----------+
| Name             | IP               | Model     | Version | Mode     | State | Watts  | Current | Voltage | PF   | Total Kwh |
+------------------+------------------+-----------+---------+----------+-------+--------+---------+---------+------+-----------+
| Christmas Lights | 192.168.1.1:9999 | HS110(US) | 1.0     | schedule | On    | 235.92 | 2.50    | 123.00  | 0.78 | 35.28     |
| Living Room Lamp | 192.168.1.3:9999 | HS110(US) | 1.0     | schedule | Off   | 0.00   | 0.01    | 153.32  | 0.00 | 1.16      |
+------------------+------------------+-----------+---------+----------+-------+--------+---------+---------+------+-----------+

About

Another project used to learn GoLang

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages