first commit

This commit is contained in:
douboer@gmail.com
2026-03-15 09:30:40 +08:00
commit 3d19c4d34f
145 changed files with 11623 additions and 0 deletions

12
dash/docs/tipstricks.md Normal file
View File

@@ -0,0 +1,12 @@
# Tips & tricks
## Producing dashboard images from a webpage
A common way to produce dashboard images for the Kindle is to take a screenshot of a website.
This can be done in a variety of ways. A few things to keep in mind are:
1. The images should be grayscale PNG images, without any alpha layers.
2. The resolution should match the display resolution of the Kindle. For example the Kindle 4 NT has a resolution of 800x600 pixels.
I personally use a headless Chrome instance with [Puppeteer](https://pptr.dev/).
The code I use can be found [here](./screenshotter/screenshot.js) as a reference.