Get CPR certified in 30 minutes at CPR Test Center.
Echo & Alexa Forums

Wake On LAN with Alexa

0 Members and 2 Guests are viewing this topic.

AntonG

Wake On LAN with Alexa
« on: September 22, 2016, 02:15:20 pm »
Would it be possible to tell Alexa to turn on pc like this?

1. Setup your PC to be able to wake on Lan

2. set up an IFTTT to open a URL with the wake on Lan commands from https://www.depicus.com/wake-on-lan/woli
it should allow you to wake up your pc thru the internet by using a link like this
https://www.depicus.com/wake-on-lan/woli?m=001143BDA600&i=82.110.108.30&s=255.255.255.255&p=4321

3. Say Alexa and the magic words -> IFTTT opens the URL and the PC turns on?

I cant try this out yet cause I haven't received my Echo yet and I have some PC Issues at the moment. My Ethernet card loses power when i turn my pc off. Any suggestions would be great :)

So would this work in the end? or does anyone know a easier way to turn on my PC with Alexa?

Thanks

Re: Wake On LAN with Alexa
« Reply #1 on: September 22, 2016, 03:58:09 pm »
Would it be possible to tell Alexa to turn on pc like this?

1. Setup your PC to be able to wake on Lan

2. set up an IFTTT to open a URL with the wake on Lan commands from https://www.depicus.com/wake-on-lan/woli
it should allow you to wake up your pc thru the internet by using a link like this
https://www.depicus.com/wake-on-lan/woli?m=001143BDA600&i=82.110.108.30&s=255.255.255.255&p=4321

3. Say Alexa and the magic words -> IFTTT opens the URL and the PC turns on?

I cant try this out yet cause I haven't received my Echo yet and I have some PC Issues at the moment. My Ethernet card loses power when i turn my pc off. Any suggestions would be great :)

So would this work in the end? or does anyone know a easier way to turn on my PC with Alexa?

Thanks

I just use a wemo insight switch to turn my computer on/off using Alexa. 

StevenR

Re: Wake On LAN with Alexa
« Reply #2 on: December 11, 2016, 11:15:31 am »
Quote
Would it be possible to tell Alexa to turn on pc like this?

1. Setup your PC to be able to wake on Lan

2. set up an IFTTT to open a URL with the wake on Lan commands from https://www.depicus.com/wake-on-lan/woli
it should allow you to wake up your pc thru the internet by using a link like this
https://www.depicus.com/wake-on-lan/woli?m=001143BDA600&i=82.110.108.30&s=255.255.255.255&p=4321

3. Say Alexa and the magic words -> IFTTT opens the URL and the PC turns on?

I cant try this out yet cause I haven't received my Echo yet and I have some PC Issues at the moment. My Ethernet card loses power when i turn my pc off. Any suggestions would be great  :)

So would this work in the end? or does anyone know a easier way to turn on my PC with Alexa?

Thanks

I found another way of doing this, not involving IFTTT (which means it will also work in the UK where IFTTT isn't available on the Amazon Echo). I am emulating the WeMo protocol on a Raspberry Pi based on the following:

http://www.instructables.com/id/Hacking-the-Amazon-Echo/

And also using the code from the following GitHub project, which has which has Python code for sending the Wake-on-LAN "magic packet":

https://github.com/bentasker/Wake-On-Lan-Python

I can now say "Alexa, turn on my computer" and it will wake up my Mac.
As a bonus I was also able to get it to make the Mac hibernate (by SSHing into it and triggering sleep) when I say "Alexa, turn off my computer".

The waking up part of that should also be possible with a PC, even if the sleep/hibernate part cannot.

Quote
I just use a wemo insight switch to turn my computer on/off using Alexa.

I wouldn't recommend just using a WeMo switch for this, as shutting of the power without a proper shutdown of the PC could cause hard disk and other issues.