Shutdown the pc via Voice Command from Google Assistant

Share and discuss your flows and ideas with other users.

Moderator: Martin

Post Reply
PretorianJ
Posts: 2
Joined: 24 Jan 2019 15:20

Shutdown the pc via Voice Command from Google Assistant

Post by PretorianJ » 25 Jan 2019 22:34

Hey All.

I created a flow for a WOL function and works great. powers on the pc perfectly.

I created also a flow chart for shutdown but it says i need root access to be able to use this command.

I don't want to root my phone. Any other way to send a shut down package to the pc ? Or a bypass to send a shutdown command?

Thank you in advance

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Shutdown the pc via Voice Command from Google Assistant

Post by Desmanto » 26 Jan 2019 04:10

The action Shutdown is to turn off the phone, not the PC.

To shutdown the PC, you have to use the mixture of Eventghost and Automagic action HTTP request. Need some configuration to make it work.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

PretorianJ
Posts: 2
Joined: 24 Jan 2019 15:20

Re: Shutdown the pc via Voice Command from Google Assistant

Post by PretorianJ » 26 Jan 2019 08:57

Oh thank you very much.

Is there any tutorial how to setup EventGhost to the pc to work with Automagic?

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Shutdown the pc via Voice Command from Google Assistant

Post by Desmanto » 26 Jan 2019 17:12

There is tutorial about using eventghost + autoremote + tasker, but it is quite different, since you need the auto remote in between. My eventghost webserver simply use the webserver, without the need of autoremote anymore (or tasker). I can't just simply share the flow/config without any explanation, it can harm your PC if you misconfigure it.

The big picture of the process is
1. install eventghost and add the webserver plugin. Configure the webserver to listen to certain port.
2. Add the HTTP event with the proper suffix to trigger the action system reboot
3. Create flow in automagic to use action HTTP request and use the link + the event suffix, sent to the PC IP.

I use this to send clipboard back-thru from PC to phone and vice versa. It can send/receive files and mirroring too. Quite complex to explain in the thread, never finished the typing.

BTW, this thread should be in the user help section. You can try the eventghost first, tinker around until you got stucked. And you can ask here again. I will try to help as far as I can.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

tphg
Posts: 57
Joined: 17 Apr 2017 05:31

Re: Shutdown the pc via Voice Command from Google Assistant

Post by tphg » 27 Jan 2019 00:59

This program sounds interesting. Thanks @ Desmanto.
I will also try discovering it.

codeassault
Posts: 2
Joined: 10 May 2016 17:55

Re: Shutdown the pc via Voice Command from Google Assistant

Post by codeassault » 08 Feb 2019 14:04

To be able to turn off a PC in the local network, I have installed an SSH server (freeSSHd) in each computer. And through the "Execute SSH Command" action I sent the command "shutdown /p".
Last edited by codeassault on 11 Feb 2019 21:52, edited 1 time in total.

xdauser
Posts: 35
Joined: 05 Aug 2015 17:55

Re: Shutdown the pc via Voice Command from Google Assistant

Post by xdauser » 09 Feb 2019 14:24

You may check out IFTTT.

Post Reply