Posts: 282
Joined: Aug 2011
Reputation:
0
k_zeon
Senior Member
Posts: 282
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
Posts: 180
Joined: Aug 2016
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.
Posts: 1,506
Joined: Nov 2013
Posts: 282
Joined: Aug 2011
Reputation:
0
k_zeon
Senior Member
Posts: 282
i will reach out to Tolriq to see if he can advise how he does it from Yatse
Posts: 1,506
Joined: Nov 2013
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.
Posts: 282
Joined: Aug 2011
Reputation:
0
k_zeon
Senior Member
Posts: 282
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
Posts: 1,506
Joined: Nov 2013
Posts: 282
Joined: Aug 2011
Reputation:
0
k_zeon
Senior Member
Posts: 282
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