Python Forum

Full Version: Shutdown from remote trough Android
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi guys, i try to find something on google but with no results.. How can i shutdown my computer trough my Android phone or tablet?
Take the corner of the phone and press it against the 'on/off' button  Big Grin

Seriously though, this relates to Python how?
I think im bad to explain.. Im not good with english sorry! I wanna write a script for shutdown my computer from remote Android. Like this, run this on my android with python installed and shutdown when i start the script.

ipcomputer = 'myip', '128.0.0.0'
androidremotecontrol = '128.0.0.0' 'shutdown'

Is a bad example, but is what i want to do. If you know a module for remote control..
You might take a look at QPython or Kivy . Are you looking to do this over the internet or on an intranet?
you could just ssh into your computer and execute a shutdown command and then make an apk file from the script.
(Nov-15-2016, 08:44 PM)metulburr Wrote: [ -> ]you could just ssh into your computer and execute a shutdown command and then make an apk file from the script.

Who'd a thunk  Tongue . After reading your reply, did a quick Google and first listing was http://www.techrepublic.com/article/easi...id-device/ 
May have to give it a try  Cool
(Nov-15-2016, 08:44 PM)metulburr Wrote: [ -> ]you could just ssh into your computer and execute a shutdown command and then make an apk file from the script.

Can you expain me? Or send me an example? I dont understand.. By the way i dont want a external program, just wanna understand the module to use.. For write a script :)