No description
- Nunjucks 57.4%
- JavaScript 25.7%
- Shell 15%
- Nix 1.9%
| scripts | ||
| src | ||
| .DS_Store | ||
| .eleventy.js | ||
| .eleventyignore | ||
| .envrc | ||
| .gitignore | ||
| flake.lock | ||
| flake.nix | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
compost.party
This is the static website for https://compost.party. To get started, simply run:
npm ci
npx @11ty/eleventy --serve --incremental --input=src
Battery gauge
The battery gauge works correctly only if the battery level is logged regularly:
# crontab -l
# minute hour day month day-of-week
*/15 * * * * $HOME/.local/bin/power-info | jq -c --arg t $(date '+%FT%T%z') '. + {timestamp: $t}' | logger -i --tag $LOGNAME/power-info
*/30 * * * * cd $HOME/git/compost.party && git stash && git pull --rebase && { git stash pop || true; } && ./scripts/update-data.sh && npm run build -- --output=$HOME/html/
Dithering the images
Dithering is currently done individually for each file using didder:
didder --palette '#f5f5f5 #d6d6d6 #24b400' --in sky.jpeg --out sky-dithered.png --height 300 bayer 16x16
They can often be further optimized with oxipng.