klattimer / LGWebOSRemote

Command line webOS remote for LGTVs
MIT License
511 stars 99 forks source link

update remote.py for wol on different subnet #129

Closed Luckyman76489 closed 1 year ago

Luckyman76489 commented 1 year ago

Hi klattimer, I've created this PR to address the bug where a TV maybe on a different subnet. I've added a second argument to the send_magic_packet function to pass in the ip address and I've also done a check before hand to check that the ip value isn't null.

klattimer commented 1 year ago

Thanks.