config.mk 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # Library and compile options
  2. SQLITE3_LDFLAGS=-L/usr/local/lib -lsqlite3
  3. SQLITE3_CFLAGS=-I/usr/local/include
  4. # Install prefix
  5. PREFIX=/usr/local
  6. # Default option values, empty means NULL (for strings)
  7. # Config file path
  8. DEFAULT_CONFIG_PATH=/usr/local/etc/rpi4b-temp-humidity/config.conf
  9. # GPIO device
  10. DEFAULT_GPIO_DEVICE=/dev/gpioc0
  11. # sysctl(8) keys for the temperature sensor
  12. DEFAULT_TEMP_KEY=dev.gpioths.0.temperature
  13. DEFAULT_HUMID_KEY=dev.gpioths.0.humidity
  14. # Set this to empty to disable checking failures
  15. DEFAULT_FAIL_KEY=dev.gpioths.0.fails
  16. # Max failures of the temperature sensor before exit
  17. DEFAULT_FAIL_LIMIT=5
  18. # Database location
  19. DEFAULT_DATABASE_LOCATION=/var/db/rpi4b-temp-humidity/db.sqlite
  20. # Time between data points, note that this is probably limited by the kernel's
  21. # gpioths driver (5 seconds)
  22. DEFAULT_REFRESH_TIME=5000
  23. # F for Fahrenheit, C for Celsius
  24. DEFAULT_TEMP_UNIT=F
  25. # The base name for export, .sqlite3 will be appended for SQLite exports and
  26. # .csv will be appended for CSV exports
  27. DEFAULT_EXPORT_FILE_NAME=env_data
  28. # The timezone used. This is overridden by the environment variable TZ. See the
  29. # tzset(3) manual page for more information about the format of this. Leave
  30. # blank for system default
  31. DEFAULT_TIMEZONE=