Skip to content

gudesystems/port.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

port.py

Functions

  • Query / Switch state of powerport(s) by HTTP (batch wise)
  • HTTP Authentification and SSL encryption supported by optional command line parameters
  • show OVP state

Examples

Switch device (192.168.0.2) with 4 ports

./port.py -H 192.168.0.2
1
0
0
0

./port.py -H 192.168.0.2 --port 2
0

./port.py -H 192.168.0.2 --port 2 --switch 1
1

./port.py -H 192.168.0.2
1
1
0
0

Batch wise switching of first port with ssl-encryption and credentials

To switch port 1 on, off, on and off in a 2 seconds delay:

./port.py -H 192.168.210.163 --ssl --username admin --password pw123 -p 1 -b 2 -a 1 0 1 0 

Show OVP sate

./port.py -H 192.168.0.2 --ovp 1
1

Additional Info

Following devices are not supported (see issue 1 for alternative):

  • Expert Power Control 8080
  • EMC Professional

About

show / switch output ports

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages