No description
  • Nunjucks 57.4%
  • JavaScript 25.7%
  • Shell 15%
  • Nix 1.9%
Find a file
2025-03-30 17:36:51 +02:00
scripts fix power-history script, pmOS ships with multiple logreads 2024-11-28 11:52:07 +01:00
src slumber 2025-03-30 17:36:51 +02:00
.DS_Store cleanup of font size declarations; added global max width for layout; smaller font size for mobile viewports; introduced class for lead paragraph; 2024-11-24 15:39:32 +01:00
.eleventy.js use subset of departure mono for battery gauge 2024-11-28 01:24:27 +01:00
.eleventyignore add fonts, fix readme, all-lowercase always 2024-02-18 20:34:18 +01:00
.envrc Initial commit 2024-02-18 17:52:52 +01:00
.gitignore Initial commit 2024-02-18 17:52:52 +01:00
flake.lock Initial commit 2024-02-18 17:52:52 +01:00
flake.nix New layout 2024-06-05 22:00:46 +02:00
package-lock.json use new battery gauge 2024-11-27 19:34:54 +01:00
package.json use new battery gauge 2024-11-27 19:34:54 +01:00
README.md update readme 2024-11-27 20:07:01 +01:00

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.