Skip to content
/ spx Public

Unofficial Edimax Smartplug Libary. Control SP-1101W and SP-2101W from Python.

License

Notifications You must be signed in to change notification settings

tback/spx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SPX

Unofficial Edimax Smartplug Libary. Control SP-1101W and SP-2101W from Python.

Install

spx is available on pypi. Install it using pip:

pip install spx

Usage as a Library

import spx

p = spx.SmartPlug('ip_or_hostname')
p.set_state(bool)
p.switch(bool)  # alias for set_state(bool)
p.on()  # alias for set_state(True)
p.off() # alias for set_state(False)
p.get_usage()  # SP-2101W only
p.monitor() #SP-2101W only
#as a convenience all commands are available as functions as well:
spx.on('ip_or_hostname') etc.

Usage of spx.tool

$ python -m spx.tool --help
# or
$ spx-tool --help

About

Unofficial Edimax Smartplug Libary. Control SP-1101W and SP-2101W from Python.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages