Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mikaello/emit-punch-cards-communication
TypeScript utils for communication with EMIT punch cards
https://github.com/mikaello/emit-punch-cards-communication
emit-orienteering orienteering serial-api webusb webusb-api
Last synced: 2 months ago
JSON representation
TypeScript utils for communication with EMIT punch cards
- Host: GitHub
- URL: https://github.com/mikaello/emit-punch-cards-communication
- Owner: mikaello
- License: gpl-3.0
- Created: 2020-03-07T15:03:06.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-04-10T07:51:02.000Z (10 months ago)
- Last Synced: 2024-04-14T12:55:57.887Z (9 months ago)
- Topics: emit-orienteering, orienteering, serial-api, webusb, webusb-api
- Language: TypeScript
- Homepage:
- Size: 1.38 MB
- Stars: 9
- Watchers: 3
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# emit-punch-cards-communication
Utils for communication with EMIT punch card devices. These utils are
implemented wih TypeScript and based on
[streams](https://developer.mozilla.org/en-US/docs/Web/API/Streams_API). To
communicate with the 250 and MTR4 device, the
[Serial API](https://wicg.github.io/serial/) (see also
[Serial API on Github](https://github.com/WICG/serial) or
[MDN](https://developer.mozilla.org/en-US/docs/Web/API/Serial)) is used, while
for the eScan device
[WebUSB API](https://developer.mozilla.org/en-US/docs/Web/API/WebUSB_API) was
needed.NB: The Serial API currently only works in Chrome and Edge, while WebUSB API
does also work on Chrome for Android.## Install
This library is published to NPM as ES modules (no CommonJS/IIFE):
```shell
yarn add @mikaello/emit-punch-card-communication
```## Usage
See [example](./example) project to see how this library could be used,
especially [helper.ts](./example/helper.ts).## Status
- :x: eScan2 device
- :white_check_mark: eScan device
- :x: ECU1
- :white_check_mark: 250 device
- :white_check_mark: MTR4 device
- :x: ePost