Giter Club home page Giter Club logo

actuator's Introduction

Actuator

Ultra-lightweight smart KVM system written in vanilla Javascript with raw DOM API. Intended for running directly on a Raspberry Pi zero.

Use case

Consider this: let's assume you have a KVM switch that can be actuated with a keyboard hotkey inputted into a specific USB port. That's cool and all, but what if you want to actuate it over a network instead for some ill-advised reason? This app, running on a Raspberry Pi Zero, emulates a USB HID device using the Linux USB Gadget system, and presents a JSON API and Web frontend for managing and sending hotkeys. Deploy the software to your Pi, and plug the Pi into your KVM switch's keyboard port using the Pi's USB OTG port. Using the Web interface, you can define a set of arbitrary keystrokes, which can then be triggered by pressing their corresponding buttons. Crazy! And also very, very insecure. I trust that you know what you're doing if you're still reading this, and that you don't intend to expose this to the internet or anything reckless like that.

Absolutely, categorically not intended for anything outside extremely low-stakes environments. This is a toy/prototype I threw together in a few hours to solve a very specific technical problem in my home lab. There is no input validation or sanitization of any kind. Do not use this in production!

Install

$ ./setup.sh

Setup script assumes the app is located at /home/pi/actuator. If not, please adjust the path in setup.sh.

Run

$ node .

Then open http://localhost:8005

Support, contributing, etc.

No, don't bother.

actuator's People

Contributors

clairesrc avatar

Stargazers

Mars Kennedy avatar

Watchers

 avatar

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.