https://github.com/balena-io-experimental/node-keyboard-input
An example of reading input from a physical keyboard or other USB HID into a Node application
https://github.com/balena-io-experimental/node-keyboard-input
balena keyboard-input nodejs
Last synced: 5 months ago
JSON representation
An example of reading input from a physical keyboard or other USB HID into a Node application
- Host: GitHub
- URL: https://github.com/balena-io-experimental/node-keyboard-input
- Owner: balena-io-experimental
- Created: 2018-11-09T17:57:33.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-03-24T19:24:01.000Z (over 3 years ago)
- Last Synced: 2025-03-30T19:12:53.349Z (7 months ago)
- Topics: balena, keyboard-input, nodejs
- Language: JavaScript
- Homepage:
- Size: 5.86 KB
- Stars: 4
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# node-keyboard-input
This is an example of bringing input from a physical keyboard into your balena project.The application will run a web server on port 80 that prints the input received from the keyboard in real time using socket.io.
**Note:** the vendor and product IDs specified in server.js will need to be updated to match that of your own hardware in order for the driver to know which device to open. You can do this by setting environment variables for the application or device called `VENDOR_ID` and `PRODUCT_ID`, where the values are hex string (eg. `12ab`).