Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

Help With Broadcaster

Questions and comments specific to a particular plugin should go here.
enobhsiw
Posts: 29
Joined: Mon Sep 11, 2017 7:51 pm

Re: Help With Broadcaster

Post by enobhsiw »

The output I got was

Image

And the code was

Code: Select all

DATA: '0xff0xff0xff0xff0xff0xff0x340xe60xad0xe0x430x130x340xe60xad0xe0x430x130x340xe60xad0xe0x430x130x340xe60xad0xe0x430x130x340xe60xad0xe0x430x130x340xe60xad0xe0x430x130x340xe60xad0xe0x430x130x340xe60xad0xe0x430x130x340xe60xad0xe0x430x130x340xe60xad0xe0x430x130x340xe60xad0xe0x430x130x340xe60xad0xe0x430x130x340xe60xad0xe0x430x130x340xe60xad0xe0x430x130x340xe60xad0xe0x430x130x340xe60xad0xe0x430x13'
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Help With Broadcaster

Post by kgschlosser »

Ok cool. As soon as I get home I will parse out the hex
If you like the work I have been doing then feel free to Image
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Help With Broadcaster

Post by kgschlosser »

sorry about that i fat fingered one of the hex segments. this one should be fixed
If you like the work I have been doing then feel free to Image
enobhsiw
Posts: 29
Joined: Mon Sep 11, 2017 7:51 pm

Re: Help With Broadcaster

Post by enobhsiw »

Ok, I ran the new plugin, and it gave out a positive trigger event. I was able to get the following result:

Image

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:

Image

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'
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Help With Broadcaster

Post 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
If you like the work I have been doing then feel free to Image
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Help With Broadcaster

Post 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.
If you like the work I have been doing then feel free to Image
enobhsiw
Posts: 29
Joined: Mon Sep 11, 2017 7:51 pm

Re: Help With Broadcaster

Post 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!!!

Image
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Help With Broadcaster

Post by kgschlosser »

oooops . here is the fixed version. sorry about that forgot to change something.
If you like the work I have been doing then feel free to Image
enobhsiw
Posts: 29
Joined: Mon Sep 11, 2017 7:51 pm

Re: Help With Broadcaster

Post by enobhsiw »

Installed the plugin and got the following output with error code:

Image

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])
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Help With Broadcaster

Post by kgschlosser »

OK hopefully this one will do the trick.
If you like the work I have been doing then feel free to Image
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Help With Broadcaster

Post by jonib »

I might be a little late with this.

@kgschlosser The Wake-on-LAN magic packet is not XBMC/Kodi (or even Kogi :lol: ) 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
XBMC2 plugin to control XBMC. If you want to flatter me Image
enobhsiw
Posts: 29
Joined: Mon Sep 11, 2017 7:51 pm

Re: Help With Broadcaster

Post 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 :)
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Help With Broadcaster

Post 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
XBMC2 plugin to control XBMC. If you want to flatter me Image
enobhsiw
Posts: 29
Joined: Mon Sep 11, 2017 7:51 pm

Re: Help With Broadcaster

Post 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.
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Help With Broadcaster

Post 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:

Code: Select all

34:E6:AD:0E:43:13
I assume this is the PCs MAC address?

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
Post Reply