Recent RaspiOS support cloud-init for automating installations, so I took a pass at converting my bash scripts to this newer method. Nice thing is you basically just need to drop a couple files into the downloaded .img, one to get it running on your network, the other to do the automated installation.
I cooked up a [
github repo] that installs and configures the following:
- WeeWX using the pip installation
- nginx as the webserver
- Belchertown as an added skin
- rsyslog for traditional logging
- logrotate to rotate logs
- ntpsec for time sync because systemd's variant is awful
See the repo for procedures and very commented files you'll need. Should be obvious re: how you can salt to taste for your needs.
Works pretty nicely for me. Gotta love burn the SD, boot the pi, and walk away. Cool stuff.