cmer / lg-tv-control-macos

Automatically wake/sleep and change the input of your LG TV when used as a monitor on macOS
123 stars 12 forks source link

lgtv scan not working #19

Closed cdam06 closed 7 months ago

cdam06 commented 11 months ago

I don't have previous coding experience but I was able to successfully follow all of the installation steps. I am running into a problem when use the lgtv scan ssl command. Any help would be appreciated.

This is what I'm seeing: (lgtv) chandu@ChandusacStudio lgtv % lgtv scan ssl Traceback (most recent call last): File "/Users/chandu/opt/lgtv/bin/lgtv", line 8, in sys.exit(main()) ^^^^^^ File "/Users/chandu/opt/lgtv/lib/python3.11/site-packages/LGTV/init.py", line 123, in main results = LGTVScan() ^^^^^^^^^^ File "/Users/chandu/opt/lgtv/lib/python3.11/site-packages/LGTV/scan.py", line 25, in LGTVScan response, address = sock.recvfrom(512) ^^^^^^^^^^^^^^^^^^ TimeoutError: timed out

sanioka commented 9 months ago

cdam06 Workaround:

Do not wait correct lgtv scan ssl at all.

You can manually find IP address inside LG TV menu / WiFi / Advanced, and go to next step:

lgtv auth <ip_address_here> MyTV ssl

moontails commented 7 months ago

I skipped scan and my screen didn't turn off, so wondering what I am missing.... can we add expected out put to the subsequent commands after auth?

Krizid commented 7 months ago

try this command lgtv --ssl auth MyTV

cmer commented 7 months ago

I just updated the script to work with the latest version of LGWebOSRemote. Reinstall everything by following the new instructions in README.md. It should solve your problem.