Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

codingthat/old-fashioned-remote

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This code is published as part of the corresponding blog article on the Toptal Engineering Blog.

Visit https://www.toptal.com/blog and subscribe to our newsletter to read great articles!


What Does It Do, Exactly?

This runs a web server on your Linux-based laptop that can send pre-configured keystrokes to your browser windows (or untargeted). By accessing it via your smartphone's web browser, you can conveniently control the volume and playback of your movie streaming and/or music listening:

The "remote control layout selection" screen and the "generic / music player" remote control.

TL;DR

On your Linux-based computer:

  1. Install xdotool and Node.js.
  2. Clone this repo (git clone https://github.com/codingthat/old-fashioned-remote.git) and cd into the cloned directory.
  3. Run npm start (and keep it running)
  4. Open a music player, or have just one browser window open with Netflix, YouTube, or Prime Video in its title.
  5. Find out your computer's local IP address (e.g. by running hostname -I | awk '{print $1}').

On your phone:

  1. Connect to the same local network as your computer (via wifi).
  2. Open your phone's web browser.
  3. Go to http:// (your local IP address) :3000/ --- e.g. http://192.168.1.102:3000/ if your IP is 192.168.1.102.
  4. Choose your remote control.
  5. Voilà! No need to get up to pause or turn up the quiet parts.

About

Use any old smartphone as a basic remote control for your laptop

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  
Morty Proxy This is a proxified and sanitized view of the page, visit original site.