28.06.2021, 09:57
Just try the Wake-on-LAN script, either it works with your TV or it does not.
LG smart TV
|
28.06.2021, 09:57
Just try the Wake-on-LAN script, either it works with your TV or it does not.
14.10.2022, 11:33
Hi , Admin how should i use Wake-on-LAN script
TV has wake-on-lan feature , i tried with someother controllers,But could'nt make it with LM
14.10.2022, 11:39
Use this script: https://forum.logicmachine.net/showthread.php?tid=687
Code: wol_send('TV_MAC_ADDRESS')
14.10.2022, 11:58
Thanks it worked.
Another thing i stumbled on is mute "lgtv.request('ssap://audio/setMute', {mute: true});" How can i change this line to lua ?
14.10.2022, 12:02
Check the code/examples in this thread, especially this: https://forum.logicmachine.net/showthrea...6#pid20936
14.10.2022, 12:25
Code: payload = json.encode({ mute = true })
17.10.2022, 12:19
Thank you Admin.
06.02.2023, 18:29
(13.07.2020, 17:54)ro_ki@tut.by Wrote: Attached you can find the library to control LG TV with Web OS.Hi, Thank you so much for your works, I am working with your script. On WOL I can work with the TV, but with script I always receive (no connection). Is there some initial confirmation to do before start? Best regards Cristian
28.02.2023, 08:46
Hello Admin,
How to make the get commands like the following: audio/getStatus audio/getVolume
Best Regards,
28.02.2023, 08:55
You need to modify the lg_execute_command function to return the response:
Code: function lg_execute_command(ip, key_address, prefix, msgtype, uri, payload) Then try this and see if you get anything logged: Code: resp = lg_execute_command(LGTV65_IP, LGTV65_KEY, "", "request", "ssap://audio/getStatus", "")
28.02.2023, 10:04
Thanks Admin
yes I get the following: Code: "returnValue":true,"volumeStatus":{"activeStatus":true,"adjustVolume":true,"maxVolume":100,"muteStatus":false,"volume":8,"mode":"normal","soundOutput":"tv_external_speaker"},"callerId":"com.webos.service.apiadapter","mute":false,"volume":8}}
Best Regards,
28.02.2023, 10:07
Looks like a part of a JSON string. Have you copied it completely?
The correct way is to parse the JSON but it is also possible to get the volume value from the output like this: Code: volume = resp:match('"volume":(%d+)')
Here is the full string
Code: * string: {"type":"response","id":"******","payload":{"returnValue":true,"volumeStatus":{"activeStatus":true,"adjustVolume":true,"maxVolume":100,"muteStatus":false,"volume":8,"mode":"normal","soundOutput":"tv_external_speaker"},"callerId":"com.webos.service.apiadapter","mute":false,"volume":8}}
Best Regards,
28.02.2023, 10:14
Try this then:
Code: data = require('json').pdecode(resp)
Hello dears,
the turn off command stop working, is there any changes have been made on the LG TV? here are the log response of the lg_execute_command * arg: 1 * string: No connection with TV. Probably it is switched off * arg: 2 * string: ws://192.168.10.8:3000/ * arg: 3 * nil * arg: 4 * nil * arg: 5 * nil * arg: 1 * string: Connection close result: * arg: 2 * bool: false * arg: 3 * number: 1006 * arg: 4 * string: wrong state
Best Regards,
19.08.2024, 08:18
Hello Dears,
Has anyone encountered a similar issue? Are there any updates that need to be applied?
Best Regards,
|
« Next Oldest | Next Newest »
|