power on - Printable Version
+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: Supplementary Tools for XBMC (/forumdisplay.php?fid=116)
+---- Forum: XBMC Remote for Android Official Forum (/forumdisplay.php?fid=129)
+---- Thread: power on (/showthread.php?tid=78167)
power on - kris2k - 2010-07-31 14:16
how get i start xbmc (windows version) from the the buton "power on"???
it only says "Make sure XBMC webserver is enabled and xbmc is running"
is there a way to start xbmc from the phone?
(the remote works if i start manually xbmc from pc)
- the_alien - 2010-07-31 14:37
Listen to the configured WOL port and start XBMC when a package arrives. Don't know what tool you could use on Windows, sorry.
- ezpl - 2010-08-17 14:34
the_alien Wrote:Listen to the configured WOL port and start XBMC when a package arrives. Don't know what tool you could use on Windows, sorry.
Does anybody have a concrete suggestion how to achieve this? Any recommended windows utility that could be used?
- Jarny - 2010-08-18 21:49
ezpl Wrote:Does anybody have a concrete suggestion how to achieve this? Any recommended windows utility that could be used?I use the commandline tool wake.exe from http://masterbootrecord.de/english/wakeup.php
wake.exe 31-62-19-91-14-45 192.168.1.255
Just replace it with your MAC-Address and Broadcast-IP.
You can write this command in a batch file or include the call in tools like totalcommander etc. for a easy and comfortable use.
- iLurk - 2010-08-20 11:31
When pressing the "power button", I think that it could be as easy as...
But my coding skills are very limited so maybe it's not as easy as that.
- the_alien - 2010-08-20 11:58
Ok... and how should the "start xbmc" happen? On linux you could open a ssh connection.. if ssh is installed and we know it is linux. What if now ssh server is installed? What if it is Windows? Connect through remote desktop? How should we determine if the host is up and running? Through ping? Most firewalls drop imcp requests...
No, that would be a total mess. Noone would understand the settings and people will start complaining why it wont start the app.
- iLurk - 2010-08-20 19:32
Point taken. Like I said, I'm not very knowledgeable when it comes to this stuff
Still a great app though
- Sainty - 2010-08-23 16:37
I guess I cheat a little but it works, I just use wake on lan to start the pc with the power on in remote from off or standby position and as soon as it startsup and goes into windows Ive put xbmc in startup folder in windows so it starts automatically.
You need to have wake on lan enabled in bios and on your network card in windows
- pieh - 2010-08-26 00:14
i guess i could write 3rd party xbmc launcher for windows for u guys (and me too )
i have just question for devs:
lets say i would do something like this - open listening socket on the same port like xbmc http api - after client connected i would immidiately close connection and launch xbmc - how would remote react on such thing - i mean fake xbmc http server that will close as soon as some1 will connect to it?
ok, done rly quick & dirty windows app that do what i wrote above and it works but its kinda ugly
- xbmclauncher (as i quickly called it) will have to run in background all the time (if ppl would be interested in this, maybe i would rewrote it as windows service if its possible)
- when xbmc remote tries to connect to xbmc host, it actually connect first to xbmclauncher. connection is closed, xbmc remote is displaying message "connection refused" and real xbmc is launched. now just retry connection in xbmc remote and we can use it
just need some time to make editable settings - right now my settings (which are 1. path to xbmc.exe 2. port of xbmc http api) are hardcoded
question for devs - the thing with connection refused is kinda ugly - if ppl would be interested in this maybe we could define some signature that xbmclauncher would send when remote is connecting to it, so the remote instead of refused connection would display "xbmc is launching, please wait"?
- pieh - 2010-08-26 23:23
this is answer to the first post in this thread - how to start XBMC from phone while windows is running but XBMC isn't.
This is application that will run XBMC when phone will try to remotely connect to XBMC. This application however must be running all the time in background (it doesn't have any user interface, so it won't be even noticed). It's good idea to put shell link (windows shortcut) to this application in autostart menu.
How to configure application:
I would also like to add that i realise that You guys would not want to use application from random guy with 4 posts on forum - so I also include source code of this application so You can check and build this application from source on Your own. It's in C# .NET 2.0 (maybe even 1.1 but VS 2010 doesn't even allow to build such applications). Also i would appreciate someone from XBMC team to inspect it, build it and place it here so people could use it without worries about malware software from random guy (me )