Skip to content
/ gan-gen Public
forked from RPi-Distro/pi-gen

Tool used to create Raspberry Pi OS images for temperature sensors.

License

Notifications You must be signed in to change notification settings

ibz/gan-gen

 
 

Repository files navigation

gan-gen

gan-gen is a tool used to create Raspberry Pi OS images intended to be run on Raspberry Pi Zero machines with attached temperature sensors running gan. They will be used to perform the sensor readings while stasi will be used to centralize readings from multiple sensors and generate graphs.

One goal of gan-gen is to keep the image as tiny as possible, so an old 2GB SD card that you have around and is useless for a modern camera is enough for a Raspberry Pi Zero-based temperature sensor. There is absolutely no reason to use a large SD card for this job, which requires very little storage even over long periods of time!

Anything non-essential is stripped and a cron job cleans the systemd journal every day.

Config

Upon execution, build.sh will source the file user-config in the current working directory. This bash shell fragment is intended to set needed environment variables.

The following environment variables are required:

  • TARGET_HOSTNAME

  • TIMEZONE_DEFAULT

  • WPA_ESSID, WPA_PASSWORD and WPA_COUNTRY

How the build process works

For more information, please refer to pi-gen, which gan-gen is based on!

About

Tool used to create Raspberry Pi OS images for temperature sensors.

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • Shell 98.1%
  • Dockerfile 1.2%
  • sed 0.7%