How to use the wakeonlan.wol.send_magic_packet function in wakeonlan

To help you get started, we’ve selected a few wakeonlan examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ywangd / stash / bin / wol.py View on Github external
help='The mac addresses or of the computers you are trying to wake, for instance 40:16:7e:ae:af:43'
)
parser.add_argument(
    '-i',
    metavar='ip',
    default=wol.BROADCAST_IP,
    help='The ip address of the host to send the magic packet to. (default {})'.format(wol.BROADCAST_IP)
)
parser.add_argument(
    '-p',
    metavar='port',
    default=wol.DEFAULT_PORT,
    help='The port of the host to send the magic packet to (default 9)'
)
args = parser.parse_args()
wol.send_magic_packet(*args.macs, ip_address=args.i, port=args.p)

wakeonlan

A small python module for wake on lan.

MIT
Latest version published 12 months ago

Package Health Score

65 / 100
Full package analysis