Giter Club home page Giter Club logo

remote_controller's Introduction

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

remote_controller's People

Contributors

herrbez avatar

Stargazers

 avatar

Watchers

 avatar

remote_controller's Issues

Add configuration file

Add configuration file to manage basic configurations, such as the port number to expose

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.