/mqtt_to_keyboard

Nn electron app which listen to commands received via MQTT controls the keyboard

Primary LanguageJavaScriptCreative Commons Zero v1.0 UniversalCC0-1.0

mqtt to keyboard

A simple program to control the keyboard remotely via MQTT. developed for the ML@school workshop.


Usage

  1. Launch the program
  2. Fill in the text field the "channel" you want to connect to (e.g. "/1234")
  3. check the example p5.js code here to understand how to connect to mqtt and send messages
  4. Wanna see the messages being transmitted?

Setup electron app for development

To clone and run this repository you'll need Git and Node.js (which comes with npm) installed on your computer.

From your command line:

# Clone this repository
git clone https://github.com/garciadelcastillo/electron-p5js-quick-start
# Go into the repository
cd electron-p5js-quick-start
# Install dependencies
npm install
# Run the app
npm start

Package

macOS

Build you app as an .app (and installable .dmg) for macOS.

For now, you need to comment the line of electron-reload in main.js for the packaged app to run.

npm run dist

Windows & Linux

TODO

TODO

  • Define specific messages to activate special keys
  • Beautify

thanks to

garciadelcastillo for the awesome p5.js electron boilerplate