Page 3 of 4

Re: LG TV WebOs 3.0

Posted: Wednesday 02 December 2020 13:32
by jon205
I'm willing to test it Bram.

Re: LG TV WebOs 3.0

Posted: Sunday 06 December 2020 13:07
by owner1987
Can you send a picture via this notification method for lg webos?

I want to send my door ipcam picture by first pausing content and showing a static jpeg picture from a url.

Greetz.

Re: LG TV WebOs 3.0

Posted: Thursday 24 December 2020 10:37
by FreddyJb
I'd be happy to test

Re: LG TV WebOs 3.0

Posted: Thursday 24 December 2020 13:38
by jon205
Am I the only one to which this happens: I can turn off the tv through the network, but when it is off, it won't turn on. This happens with the LG app, but also in Domoticz.

Re: LG TV WebOs 3.0

Posted: Thursday 31 December 2020 11:21
by pagocs
I would like to join to the test team also! :)

Re: LG TV WebOs 3.0

Posted: Thursday 31 December 2020 11:59
by Egregius
jon205 wrote: Thursday 24 December 2020 13:38 Am I the only one to which this happens: I can turn off the tv through the network, but when it is off, it won't turn on. This happens with the LG app, but also in Domoticz.
Think you need to allow that in the settings of the tv.

Re: LG TV WebOs 3.0

Posted: Thursday 31 December 2020 16:43
by jon205
I though I already configured that. I'll double check.

Re: LG TV WebOs 3.0

Posted: Monday 04 January 2021 11:44
by mrfusion
Interested to test as well.
The feature to send notification with a picture would be excellent if feasible.

Re: LG TV WebOs 3.0

Posted: Thursday 14 January 2021 17:52
by jon205
Egregius wrote: Thursday 31 December 2020 11:59
jon205 wrote: Thursday 24 December 2020 13:38 Am I the only one to which this happens: I can turn off the tv through the network, but when it is off, it won't turn on. This happens with the LG app, but also in Domoticz.
Think you need to allow that in the settings of the tv.
Checked this, power-on by wifi is enabled. But I'm not using wifi, but ethernet. Does it mean you can only switch on the tv over wifi? That wouldn't make any sense.

Re: LG TV WebOs 3.0

Posted: Friday 15 January 2021 6:35
by Egregius
I believe it should work over ethernet also. Don't use it anymore because my Nvidia Shield starts the TV with HDMI HEC.

Re: LG TV WebOs 3.0

Posted: Sunday 24 January 2021 15:09
by Sarcas
DarkG wrote: Thursday 12 November 2020 1:01 I habe this error in log

2020-11-12 00:59:49.946 Error: (tv) 'onHeartbeat' failed 'NameError':'name 'out' is not defined'.
2020-11-12 00:59:49.946 Error: (tv) ----> Line 466 in '/home/pi/domoticz/plugins/Domoticz-LGTV-WebOS-Plugin-master/plugin.py', function onHeartbeat
2020-11-12 00:59:49.946 Error: (tv) ----> Line 298 in '/home/pi/domoticz/plugins/Domoticz-LGTV-WebOS-Plugin-master/plugin.py', function onHeartbeat
2020-11-12 00:59:49.946 Error: (tv) ----> Line 351 in '/home/pi/domoticz/plugins/Domoticz-LGTV-WebOS-Plugin-master/plugin.py', function GetTVInfo
I have the same error. Found a solution yet?

Re: LG TV WebOs 3.0

Posted: Friday 29 January 2021 20:45
by marcovz
Sarcas wrote: Sunday 24 January 2021 15:09
DarkG wrote: Thursday 12 November 2020 1:01 I habe this error in log

2020-11-12 00:59:49.946 Error: (tv) 'onHeartbeat' failed 'NameError':'name 'out' is not defined'.
2020-11-12 00:59:49.946 Error: (tv) ----> Line 466 in '/home/pi/domoticz/plugins/Domoticz-LGTV-WebOS-Plugin-master/plugin.py', function onHeartbeat
2020-11-12 00:59:49.946 Error: (tv) ----> Line 298 in '/home/pi/domoticz/plugins/Domoticz-LGTV-WebOS-Plugin-master/plugin.py', function onHeartbeat
2020-11-12 00:59:49.946 Error: (tv) ----> Line 351 in '/home/pi/domoticz/plugins/Domoticz-LGTV-WebOS-Plugin-master/plugin.py', function GetTVInfo
I have the same error. Found a solution yet?
The problem is in plugin.py that 'out' is not defined in 'def GetTVInfo(self):' starting at line 340. Variable out is called at line 351. Following is working for me, insert a line at 341 to define out:

Code: Select all

out = self.run("software-info")
the beginning of 'Def GetTVInfo(self):'will look like

Code: Select all

def GetTVInfo(self):
        out = self.run("software-info")
        currentApp = str(self.run("current-app")).rstrip()
        currentInput = str(self.run("get-input")).rstrip()
        currentChannel = self.run("get-channel")
        currentInfo = self.run("info")

        self.tvPlaying = {'title': 'test', 'programTitle': None}#_tv.get_playing_info()
        Domoticz.Debug("App: " + currentApp)
        Domoticz.Debug("Input: " + currentInput)
        Domoticz.Debug("Channel: " + currentChannel)
        Domoticz.Debug("Info: " + currentInfo)
       
        if 'TimeoutError()' in out:
            currentChannel = "Off"
            
restart Domoticz service. Maybe this is not the best solution, but for me it works.

Re: LG TV WebOs 3.0

Posted: Saturday 30 January 2021 15:24
by Sarcas
marcovz wrote: Friday 29 January 2021 20:45 restart Domoticz service. Maybe this is not the best solution, but for me it works.
At least I have a different error now :)

Code: Select all

2021-01-30 14:30:16.965 Error: Python Plugin System: (lgtv) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/LGTV/:/usr/lib/python37.zip:/usr/lib/python3.7:/usr/lib/python3.7/lib-dynload:/usr/local/lib/python3.7/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.7/dist-packages'.
2021-01-30 14:30:16.965 Error: Python Plugin System: (LGTV) Module Import failed, exception: 'TabError'
2021-01-30 14:30:16.966 Error: Python Plugin System: (LGTV) Import detail: File: /home/pi/domoticz/plugins/LGTV/plugin.py, Line: 342, offset: 59
2021-01-30 14:30:16.966 Error: Python Plugin System: (LGTV) Error Line ' currentApp = str(self.run("current-app")).rstrip()
2021-01-30 14:30:16.966 '
2021-01-30 14:31:25.850 Error: LGTV hardware (23) thread seems to have ended unexpectedly
2021-01-30 14:31:39.855 Error: LGTV hardware (23) thread seems to have ended unexpectedly
2021-01-30 14:31:53.858 Error: LGTV hardware (23) thread seems to have ended unexpectedly
2021-01-30 14:32:07.862 Error: LGTV hardware (23) thread seems to have ended unexpectedly
2021-01-30 14:32:21.865 Error: LGTV hardware (23) thread seems to have ended unexpectedly
2021-01-30 14:32:35.868 Error: LGTV hardware (23) thread seems to have ended unexpectedly
Odd thing is, the python error only appeared once it seems. Now it is just a stream of “Error: LGTV hardware (23) thread seems to have ended unexpectedly”. I guess it just won’t work with my OLED55E7N.

Re: LG TV WebOs 3.0

Posted: Saturday 30 January 2021 15:56
by marcovz
Looks like a python error in your code at line 341 or 342, the TabError. Python uses indentation which can be tabs or spaces and should be the same in the lines of the code. What did you use to get the indentation?

In plugin.py each indent is 4 spaces, so for this new line it should be 8 spaces. Can you post a piece of your code?

Re: LG TV WebOs 3.0

Posted: Saturday 30 January 2021 18:00
by Nefsolive
marcovz wrote: Friday 29 January 2021 20:45
Sarcas wrote: Sunday 24 January 2021 15:09
DarkG wrote: Thursday 12 November 2020 1:01 I habe this error in log

2020-11-12 00:59:49.946 Error: (tv) 'onHeartbeat' failed 'NameError':'name 'out' is not defined'.
2020-11-12 00:59:49.946 Error: (tv) ----> Line 466 in '/home/pi/domoticz/plugins/Domoticz-LGTV-WebOS-Plugin-master/plugin.py', function onHeartbeat
2020-11-12 00:59:49.946 Error: (tv) ----> Line 298 in '/home/pi/domoticz/plugins/Domoticz-LGTV-WebOS-Plugin-master/plugin.py', function onHeartbeat
2020-11-12 00:59:49.946 Error: (tv) ----> Line 351 in '/home/pi/domoticz/plugins/Domoticz-LGTV-WebOS-Plugin-master/plugin.py', function GetTVInfo
I have the same error. Found a solution yet?
The problem is in plugin.py that 'out' is not defined in 'def GetTVInfo(self):' starting at line 340. Variable out is called at line 351. Following is working for me, insert a line at 341 to define out:

Code: Select all

out = self.run("software-info")
the beginning of 'Def GetTVInfo(self):'will look like

Code: Select all

def GetTVInfo(self):
        out = self.run("software-info")
        currentApp = str(self.run("current-app")).rstrip()
        currentInput = str(self.run("get-input")).rstrip()
        currentChannel = self.run("get-channel")
        currentInfo = self.run("info")

        self.tvPlaying = {'title': 'test', 'programTitle': None}#_tv.get_playing_info()
        Domoticz.Debug("App: " + currentApp)
        Domoticz.Debug("Input: " + currentInput)
        Domoticz.Debug("Channel: " + currentChannel)
        Domoticz.Debug("Info: " + currentInfo)
       
        if 'TimeoutError()' in out:
            currentChannel = "Off"
            
restart Domoticz service. Maybe this is not the best solution, but for me it works.
For me works great too! Thanks.

Re: LG TV WebOs 3.0

Posted: Sunday 31 January 2021 12:21
by Sarcas
marcovz wrote: Saturday 30 January 2021 15:56 Looks like a python error in your code at line 341 or 342, the TabError. Python uses indentation which can be tabs or spaces and should be the same in the lines of the code. What did you use to get the indentation?

In plugin.py each indent is 4 spaces, so for this new line it should be 8 spaces. Can you post a piece of your code?
My editor (BBEdit) put in a tab instead of 4 spaces. I fixed it, thanks :)

Re: LG TV WebOs 3.0

Posted: Tuesday 23 February 2021 23:08
by mapsindustrial
I have installed this amazing plugin on a Raspberry pi3 + together with domoticz and nothing else, after a day or two of correct operation my domoticz system falls and stops working, allí domoticz stop and and it is impossible to recover it.

Help ! Any solution?

Re: LG TV WebOs 3.0

Posted: Wednesday 24 February 2021 11:23
by waltervl
mapsindustrial wrote: Tuesday 23 February 2021 23:08 I have installed this amazing plugin on a Raspberry pi3 + together with domoticz and nothing else, after a day or two of correct operation my domoticz system falls and stops working, allí domoticz stop and and it is impossible to recover it.

Help ! Any solution?
See https://www.domoticz.com/wiki/Troubleshooting section Hardware to disable the plugin through Setup-Hardware or directly in the SQL database.
If Domoticz still fails to start something else is wrong..... Perhaps better to do a new install if you have no other devices in your implementation.

Re: LG TV WebOs 3.0

Posted: Wednesday 24 February 2021 16:32
by mapsindustrial
I want solve the ploblem with the plugin and use it. Domoticz isn't a problem because i can reinstall and work fine.

Re: LG TV WebOs 3.0

Posted: Wednesday 24 February 2021 22:20
by waltervl
mapsindustrial wrote: Wednesday 24 February 2021 16:32 I want solve the ploblem with the plugin and use it. Domoticz isn't a problem because i can reinstall and work fine.
Could be many things beside the plugin. If nobody else complains about crashes it could be your Domoticz install.
Do you run Stable or Beta?
What does the log file say?
What does the crash log say?

Is your SD card functioning right?
Is your power adapter functioning correctly?

Will Stable domoticz 2020.2 run on your system for 2 days without this plugin?