A simple program to control the keyboard remotely via MQTT. developed for the ML@school workshop.
- Launch the program
- Fill in the text field the "channel" you want to connect to (e.g. "/1234")
- check the example p5.js code here to understand how to connect to mqtt and send messages
- Wanna see the messages being transmitted?
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
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
TODO
- Define specific messages to activate special keys
- Beautify
garciadelcastillo for the awesome p5.js electron boilerplate