https://github.com/mizdra/today-yuyushiki
今日のゆゆ式
https://github.com/mizdra/today-yuyushiki
ifttt manga receipt-printer smart-speaker webhook yuyushiki
Last synced: 4 months ago
JSON representation
今日のゆゆ式
- Host: GitHub
- URL: https://github.com/mizdra/today-yuyushiki
- Owner: mizdra
- License: mit
- Created: 2019-12-20T14:07:59.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-12-28T06:29:36.000Z (over 5 years ago)
- Last Synced: 2025-02-16T09:36:06.035Z (4 months ago)
- Topics: ifttt, manga, receipt-printer, smart-speaker, webhook, yuyushiki
- Language: TypeScript
- Size: 105 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# today-yuyushiki
Google Assistant に「OK Google, 今日のゆゆ式」と話しかけるとゆゆ式の 1 コマが印刷される IoT「今日のゆゆ式」の Webhook サーバです.
- 解説: [OK Google, 今日のゆゆ式 - mizdra's blog](https://www.mizdra.net/entry/2019/12/22/002822)

## Requirements
- [Node.js](https://nodejs.org)
- [yarn](https://yarnpkg.com)
- [adnanh/webhook](https://github.com/adnanh/webhook)
- `lp` コマンド
- ゆゆ式のコマ画像が格納されたディレクトリ
- コマ画像のファイル名は「1 巻 9 ページ目 5 コマ目」なら `01-009-5.jpg` のようにしておくこと
- ESC/POS コマンドをサポートしていて, 紙幅 80mm のロール紙を印刷できるレシートプリンタ
- 紙幅 80 mm の感熱ロール紙## Usage
```console
$ git clone https://github.com/mizdra/today-yuyushiki
$ cd today-yuyushiki
$ yarn install
$ yarn run build$ # localhost に 8000 番ポートで Webhook サーバを立てる
$ PORT=8000 KOMA_DIR=path/to/koma_jpgs PRINTER=tm_l90 yarn run start
```## How to dev
- `yarn run start`: Run for production
- `yarn run build`: Build for production
- `yarn run dev`: Run for development
- `yarn run check`: Try static-checking## License
MIT