Raspberry Pi as wake on LAN server
What you'll need:
- 1x Raspberry pi
- 1x Desktop with WOL(wake on lan) enabled. Check your BIOS settings for that.
Steps to let RPi wake your desktop for you
- Sign up for ngrok
- Fill in information for self-emailing in
send_email.py
- Place python script at the root of both Desktop and RPi
- Download ngrok and place it in
/opt/ngrok/
together withngrok.yml
after filling in your authtoken for both RPi and desktop - Place ngrok.service and email_service.serivce in both RPi and Desktop at
/lib/systemd/system
- Enable the services with
$ sudo chmod 644 email_service.serivce $ sudo chmod 644 ngrok.serivce $ sudo systemctl daemon-reload $ sudo systemctl enable email_service.serivce ngrok.serivce
- Reboot and ensure that the email is sent out together with your new ngrok host.
- You can use your RPi to wake your desktop by using wake on lan. But keep your RPi turned on