brianpeiris / switchmate

A python-based command line utility for controlling Switchmate switches
MIT License
35 stars 12 forks source link

Added status command #1

Closed dwaq closed 7 years ago

dwaq commented 7 years ago

Hey Brian,

I went ahead and added the status command. No big deal if you want to merge it, send me any changes and I can format it to better suit you, or reject it altogether. I only have one switchmate, so maybe you'd want to add the address and the state of each. I also set it to 30 seconds by default, but maybe this would be better as a command line parameter. I haven't thought about how I'm going to merge this in with the project I'm working on.

Dillon

brianpeiris commented 7 years ago

Thanks! I've confirmed this works perfectly with my three switchmate devices. I tweaked your implementation and cleaned things up in #2.