Search found 11 matches

by mrdavisma
Mon Feb 16, 2015 12:23 pm
Forum: Coding Corner
Topic: python eg.TriggerEvent() Please check my code
Replies: 3
Views: 1986

Re: python eg.TriggerEvent() Please check my code

Thank you Dragon I am only on the fist couple of chapters of python for noobs and I believe the chapter for threading is a long way off lol but after having a play around and a lot of debugging I have managed to get it working the way I want. I did find out (after a while) that the orignal script wo...
by mrdavisma
Sun Feb 15, 2015 1:25 pm
Forum: Coding Corner
Topic: python eg.TriggerEvent() Please check my code
Replies: 3
Views: 1986

python eg.TriggerEvent() Please check my code

Hi I am hoping someone can help with my code. I am learning python (only just started) and I am writing a script to test my ip address and having it trigger EG Events based on the result. The trouble I am having is no matter where in the script I place eg.TriggerEvent("connecting") it never executes...
by mrdavisma
Thu Feb 12, 2015 12:08 pm
Forum: Feature Requests
Topic: LG TV via LAN
Replies: 22
Views: 29424

Re: LG TV via LAN

Well just an update. I guess I wont be turning this into a plug in for the simple reason, there is one available already!!!! and it works very well http://www.eventghost.net/forum/viewtopic.php?f=10&t=6144 After weeks of searching for a solution I never once found this thread. I just happened to cha...
by mrdavisma
Wed Feb 04, 2015 5:05 am
Forum: Feature Requests
Topic: LG TV via LAN
Replies: 22
Views: 29424

Re: LG TV via LAN

That's it! Wow you swapped a couple of words around on the cmdText line and suddenly it all works! Thank you very much Sem;colon for taking the time to look into this and get it working. I had looked for sometime for a way to do this but only ever found dead ends. I have decided it it finally time t...
by mrdavisma
Tue Feb 03, 2015 6:23 pm
Forum: Feature Requests
Topic: LG TV via LAN
Replies: 22
Views: 29424

Re: LG TV via LAN

Hi Sem;colon Thanks for your input on this. After comparing the lgcommander script and this one I had noticed there where some lines missing in the handleCommand. I had been attempting to add them myself but ended up with syntax errors aplenty lol ( I think I will have to buy python for noobs to rea...
by mrdavisma
Mon Feb 02, 2015 6:28 pm
Forum: Feature Requests
Topic: LG TV via LAN
Replies: 22
Views: 29424

Re: LG TV via LAN

You just need to change the "command" to what you whant to do / what your TV supports Yes thats the problem, I have changed the command from 26 (mute) to 400 (3D) 24 and 25 etc but nothing is happening on the tv. I know these commands work because I have tried them in the LGCommander python3 script...
by mrdavisma
Mon Feb 02, 2015 3:47 pm
Forum: Feature Requests
Topic: LG TV via LAN
Replies: 22
Views: 29424

Re: LG TV via LAN

Quick update... After looking at your line print LG TV IP I added after line 80 print "LG TV Session ID: "+ theSessionid and now when i test the script I get the following log..... Python Script LG TV IP: 192.168.0.107 LG TV Session ID: 923650698 so eg is connecting and getting a valid session ID Mark
by mrdavisma
Mon Feb 02, 2015 2:48 pm
Forum: Feature Requests
Topic: LG TV via LAN
Replies: 22
Views: 29424

Re: LG TV via LAN

Hi Ok so after making those changes the script runs without any errors in the log window or any other info other than Python Script LG TV IP: 192.168.0.107 Nothing happens on the TV However if I change the pairing key on line 9 to something other than the correct one and run the script the TV displa...
by mrdavisma
Sun Feb 01, 2015 11:51 pm
Forum: Feature Requests
Topic: LG TV via LAN
Replies: 22
Views: 29424

Re: LG TV via LAN

Cheers again. I will give that a try when I get home from work.
Mark
by mrdavisma
Sun Feb 01, 2015 2:36 pm
Forum: Feature Requests
Topic: LG TV via LAN
Replies: 22
Views: 29424

Re: LG TV via LAN

Hi Thanks for taking a look at the script. I added it to a python script in eg and ran it which resulted in the following Python Script Lg TV not found Traceback (most recent call last): Python script "33", line 73, in <module> print "LG TV IP: "+lgtv["ipaddress"] TypeError: cannot concatenate 'str'...
by mrdavisma
Sat Jan 31, 2015 9:34 pm
Forum: Feature Requests
Topic: LG TV via LAN
Replies: 22
Views: 29424

Re: LG TV via LAN

Hi, I normally don't post requests, I prefer to surf and research until I find the answer however I only get about an hour a day of play time on my pc and have been looking for a way to control my lg tv over lan for about two weeks now! I am like a dog with a bone. I, like the post author would love...