Skip to content

Remote Controller to increase/decrease the volume or your pc

License

Notifications You must be signed in to change notification settings

herrBez/remote_controller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Remote Controller

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.

Original use case

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.

Getting Started

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.

Server-Side :laptop:

On your laptop (:computer:):

Windows

  1. Clone the repository
git clone https://github.com/herrBez/remote_controller.git
  1. cd remote_controller
  2. Download the nircmd utility from this link: either add it to your environment or simply copy the executable in the same same directory
  3. Compile the program go build server.go -tags target_windows
  4. Run the remote_controller.exe executable

Linux 🐧

  1. Clone the repository
git clone https://github.com/herrBez/remote_controller.git
  1. cd remote_controller
  2. Install the xdotool utility
  3. Compile the program go build server.go -tags target_linux
  4. Run the ./remote_controller executable

Smartphone 📱

  1. Open your browser on the page http://<IP-Address-of-your-laptop>:8080
  2. Use your smart-phone to control remotely your pc

How does it work

The web server responds to the different endpoints by calling a command in the shell of your laptop:

  • In Windows systems this utility is nircmd.

  • In Linux system this utility is xdotool.

Thus, remote_controller is a wrapper for specific calls to nircmd and xdotool, respectively.

References

License

MIT License

Releases

No releases published

Packages

No packages published