Re: LG TV WebOs 3.0
Posted: Wednesday 02 December 2020 13:32
I'm willing to test it Bram.
I have the same error. Found a solution yet?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
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:Sarcas wrote: ↑Sunday 24 January 2021 15:09I have the same error. Found a solution yet?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
Code: Select all
out = self.run("software-info")
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"
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
For me works great too! Thanks.marcovz wrote: ↑Friday 29 January 2021 20:45The 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:Sarcas wrote: ↑Sunday 24 January 2021 15:09I have the same error. Found a solution yet?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 GetTVInfothe beginning of 'Def GetTVInfo(self):'will look likeCode: Select all
out = self.run("software-info")
restart Domoticz service. Maybe this is not the best solution, but for me it works.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"
My editor (BBEdit) put in a tab instead of 4 spaces. I fixed it, thanksmarcovz 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?
See https://www.domoticz.com/wiki/Troubleshooting section Hardware to disable the plugin through Setup-Hardware or directly in the SQL database.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?
Could be many things beside the plugin. If nobody else complains about crashes it could be your Domoticz install.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.