aschmelyun/print-my-profile-pic
概要
はい、チーズ!このリポジトリにStarを付けると、プロフィール画像がレシートプリンターから印刷されます。
その他のプロジェクト計測したスター増加
- 24時間
- +3
- 7日間
- +20
- 15日間
- +26
- 1か月
- +113
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルprint-my-profile-pic
Star this repo to have your GitHub profile picture framed, printed out on my receipt printer, and stuck to my wall.
That's it!
[!TIP] If you give a one-time sponsorship of any amount beforehand, your profile picture will be printed in a special frame.
How's it work?
GitHub allows you to create webhooks for specific events on your repos, I've set one up for starring this project.
When that happens, a payload is POSTed to a Cloudflare tunnel domain, which leads to a PHP script running on a Raspberry Pi that's sitting on my desk.
From the inbound request, you can gleen info about the person who starred the repo, like their display name and avatar URL. The script takes their profile picture, renders it behind a cut-out of a photo frame, and then adds some other info I thought should be included in each receipt.
The RPi is connected to an Epson TM-T88IV thermal receipt printer via USB, and the PHP script uses my go-to escpos-php library to format the receipt data and send it off to the printer.
But why?
It sounded fun when my friend Sam mentioned it. That's pretty much it!
What now?
I'll periodically update this README with a picture of the pinboard I've dubbed the "Hall of Frame" as pictures get added to it.
Want to add a new frame? Send in a PR!
関連プロジェクトを探す
読み込み中…