Page 2 of 5
Re: Help With Broadcaster
Posted: Tue Sep 19, 2017 7:30 am
by enobhsiw
The output I got was
And the code was
Code: Select all
DATA: '0xff0xff0xff0xff0xff0xff0x340xe60xad0xe0x430x130x340xe60xad0xe0x430x130x340xe60xad0xe0x430x130x340xe60xad0xe0x430x130x340xe60xad0xe0x430x130x340xe60xad0xe0x430x130x340xe60xad0xe0x430x130x340xe60xad0xe0x430x130x340xe60xad0xe0x430x130x340xe60xad0xe0x430x130x340xe60xad0xe0x430x130x340xe60xad0xe0x430x130x340xe60xad0xe0x430x130x340xe60xad0xe0x430x130x340xe60xad0xe0x430x130x340xe60xad0xe0x430x13'
Re: Help With Broadcaster
Posted: Tue Sep 19, 2017 5:51 pm
by kgschlosser
Ok cool. As soon as I get home I will parse out the hex
Re: Help With Broadcaster
Posted: Tue Sep 19, 2017 7:06 pm
by kgschlosser
sorry about that i fat fingered one of the hex segments. this one should be fixed
Re: Help With Broadcaster
Posted: Wed Sep 20, 2017 8:23 am
by enobhsiw
Ok, I ran the new plugin, and it gave out a positive trigger event. I was able to get the following result:
I ran it for 5 mins, by terminating and triggering the event using the WoL from the iOS phone, and it worked fine. But it randomly threw the data that I marked. But other than that, everything was fine.
Here's that data:
Code: Select all
DATA: '0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff0xff'
Then, I decided to use an Android phone to further test, and I got the following result:
Kore remote threw out a double WoL command(dunno why).
Yatse Remote was the only app that immediately gave the data info, but it did the task. Here is the data:
Code: Select all
DATA: '0x590x610x740x730x650x530x740x610x720x740x2d0x580x620x6d0x63'
Re: Help With Broadcaster
Posted: Wed Sep 20, 2017 3:01 pm
by kgschlosser
the double event can be filtered.
as far as it printing out the data it can be removed it is for testing purposes so we know if any additional data is being sent it could be picking up garbage as well. also I do not know if there is an indicator on the apps that tell you that kodi is running or not. I do not know what the return values would be if that is the case
Re: Help With Broadcaster
Posted: Wed Sep 20, 2017 3:23 pm
by kgschlosser
ok i remove the printing out of the data. I also added the smoothing for the double event. it has a 1 second timer on it so for 1 second after the first wol packet comes in it ill not do anything is a second one comes in.
Re: Help With Broadcaster
Posted: Thu Sep 21, 2017 9:59 am
by enobhsiw
When ever Kodi is running, if the option is enabled, the Webserver service is turned on and it starts broadcasting through http port 8080. This is picked up by the remotes, and tells if the Kodi is up and running. It is then that the buttons and icons on most remotes become active.
I installed the new plugin and it scared the crap out of me. So much RED!!!

Re: Help With Broadcaster
Posted: Thu Sep 21, 2017 10:49 am
by kgschlosser
oooops . here is the fixed version. sorry about that forgot to change something.
Re: Help With Broadcaster
Posted: Thu Sep 21, 2017 12:26 pm
by enobhsiw
Installed the plugin and got the following output with error code:
And here is the error code:
Code: Select all
error: uncaptured python exception, closing channel <eg.UserPluginModule.XBMCWOL.Server connected 192.168.0.163:9 at 0x5095b20> (<class 'wx._core.PyAssertionError'>:C++ assertion "wxThread::IsMain()" failed at ..\..\src\common\timercmn.cpp(66) in wxTimerBase::Start(): timer can only be started from the main thread [asyncore.pyc|read|76] [asyncore.pyc|handle_read_event|414] [C:\ProgramData\EventGhost\plugins\XBMCWOL\__init__.py|handle_read|79] [wx\_core.pyc|__init__|14705] [wx\_core.pyc|Start|14722] [wx\_misc.pyc|Start|1315])
Re: Help With Broadcaster
Posted: Thu Sep 21, 2017 12:43 pm
by kgschlosser
OK hopefully this one will do the trick.
Re: Help With Broadcaster
Posted: Thu Sep 21, 2017 1:44 pm
by jonib
I might be a little late with this.
@kgschlosser The
Wake-on-LAN magic packet is not XBMC/Kodi (or even Kogi

) specific, and there is even a command in EventGhost to send this packet (System->Wake on LAN).
If you know this , ignore me, but it just seems you are making it harder then it should be.
jonib
Re: Help With Broadcaster
Posted: Thu Sep 21, 2017 3:01 pm
by enobhsiw
I installed the new plugin and everything ran fine. No errors and no extra data info. The Kore Remote(Android) was still able to get in the double WoL packets, but every other remote seemed to work fine.
Im gonna mess around with this addon some more, and let you know of any updates I have.
Thank you so much kgschlosser for the time and the effort you have put into this. Hopefully if anyone wants to benefit from launching an application(such as Kodi) using a WoL command to an 'Already On' system, they can find this plugin very useful

Re: Help With Broadcaster
Posted: Thu Sep 21, 2017 3:15 pm
by jonib
@kgschlosser
If I'm reading the code correctly it's hard coded to enobhsiw MAC address, so it would only work for him.
jonib
Re: Help With Broadcaster
Posted: Thu Sep 21, 2017 3:23 pm
by enobhsiw
@kgschlosser
If I'm reading the code correctly it's hard coded to enobhsiw MAC address, so it would only work for him.
jonib
I should hope not, and I hope you are talking about the mac address of the listening pc, cuz I used both my android and iOS phones for the testing, and they each have their individual mac addresses.
Re: Help With Broadcaster
Posted: Thu Sep 21, 2017 3:45 pm
by jonib
enobhsiw wrote:
I should hope not, and I hope you are talking about the mac address of the listening pc, cuz I used both my android and iOS phones for the testing, and they each have their individual mac addresses.
Yes the listening PCs MAC address, this is hard coded in the plugin:
I assume this is the PCs MAC address?
jonib