Remotely Power on Kodi
#1
Hi. I have just recently figured out how to control kodi from a windows
app that i created in VB6.

I am now trying to find out how i can issue a command to wake the kodi
device up.

I use YATSE on my mobile phone and this has a power button that does
wake the device, so i know its possible.

does any one know how to accomplish this. Is there a certain port that i need to send
a command etc

many thanks
Reply
#2
You can do it over the http port. If you turn on the Web ui There are also wake on lan options and cec options. The I know the Yatsee dev he would be willing to advise how he does it if you reach out to himto see what he is doing.
Reply
#3
it's, as pointed out above, WOL usage. https://en.wikipedia.org/wiki/Wake-on-LAN
Reply
#4
(2016-11-03, 16:33)ironic_monkey Wrote: it's, as pointed out above, WOL usage. https://en.wikipedia.org/wiki/Wake-on-LAN

Yes, but that is computers WOL. not Kodi.

Looking to find out what command can be issued to Kodi and by what protocol and port number.
Reply
#5
i will reach out to Tolriq to see if he can advise how he does it from Yatse
Reply
#6
why bother. look, the use case from yatse is exactly the same. you wake some machine from hibernation/suspend and voila, you are back in kodi, or you wake some machine that is setup to autostart kodi on boot and voila, eventually you are in kodi. it's not telling the machine to start anything except itself.

if you are looking for some way to start random software on a remote machine through your vb script, you have to check whichever remote execution exploit the script kiddies are using to 0wn windows these days. because that's what you are asking for.
Reply
#7
I have figured it out. I use VB6 to program my app so am learning how to connect to Kodi and what commands to send.
First i had to figure out how to get the Mac Address as this is needed to use the Wake On Lan (magic packet)
So found some code to do that. Then found a class to issue the magic packet using the IP/Mac
This is working very well. I can now turn on my Kodi devices.

At present I manually enter in the settings , Hostname / IP add / Port / Username / password and push button to get the Mac address

I see the Andoid devices can scan for Kodi devices, list them then select one. Then import the settings.

Does anyone know how to go about this or what i need to be doing..

tks
Reply
#8
it uses zeroconf/bonjour https://en.wikipedia.org/wiki/Zero-confi...networking
Reply
#9
does anyone know where to find examples of zeroconf/bonjour in VB6

I am currently finding all attached devices on a netowrk by Name.
Then resolving the IP and Mac
Then to detect just Kodi devices, issue a jsonrpc to see if its kodi

thanks
Reply

Logout Mark Read Team Forum Stats Members Help
Remotely Power on Kodi0