Remote controller is a light remote controller for your laptop. It allows you to increase the volume of your laptop and to pause a video from your smart phone.
As a lazy netflix watcher I want to be able to skip an intro, increase or decrease the volume, while lying down on my bed.
Make sure that your laptop and your smart-phone are in the same network
⚠️ run this utility only in a trusted network, where you known all the connected devices, i.e., your home network. Currently, the traffic is neither encrypted nor the server requires any form of authentication.
On your laptop (:computer:):
- Clone the repository
git clone https://github.com/herrBez/remote_controller.git
cd remote_controller
- Download the nircmd utility from this link: either add it to your environment or simply copy the executable in the same same directory
- Compile the program
go build server.go -tags target_windows
- Run the
remote_controller.exe
executable
- Clone the repository
git clone https://github.com/herrBez/remote_controller.git
cd remote_controller
- Install the xdotool utility
- Compile the program
go build server.go -tags target_linux
- Run the
./remote_controller
executable
- Open your browser on the page
http://<IP-Address-of-your-laptop>:8080
- Use your smart-phone to control remotely your pc
The web server responds to the different endpoints by calling a command in the shell of your laptop:
Thus, remote_controller
is a wrapper for specific calls to nircmd and xdotool, respectively.