stdd.1 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. .TH STDD 1 "28 July, 2013" 0.9 stdd
  2. .SH NAME
  3. stdd \- a daemon to display the current time on a 7 segment display
  4. .SH SYNOPSIS
  5. .B "stdd"
  6. [
  7. .B "-d/--daemon"
  8. ] [
  9. .B -u/--user
  10. user name ] [
  11. .B -g/--group
  12. group name ]
  13. .B -c/--config
  14. configuration file
  15. .SH DESCRIPTION
  16. stdd (short for "simple time display daemon") is a handy little daemon for
  17. the Raspberry PI device that can be used to display the current time on a
  18. 7 segment display with a HT16K33 backpack from Adafruit Industries. It
  19. makes heavy use of the python libraries published by Adafruit to control
  20. the display via I2C.
  21. .SH "COMMAND LINE OPTIONS"
  22. .TP
  23. .B "-d --daemon"
  24. run the program in daemon mode which means, it will detach from the shell and run in background
  25. .TP
  26. .BI "-u --user " "user name"
  27. instructs stdd to drop privileges and run with the privileges of the defined user. Please note that stdd nees to be started as root for this to work and the user (or his primary group) needs to be able to access the i2c device.
  28. .TP
  29. .BI "-g --group " "group name"
  30. instructs stdd to drop privileges and run with the privileges defined user. Please note that stdd nees to be started as root for this to work and the group needs to be able to access the i2c device.
  31. .TP
  32. .BI "-c --config " "configuration file"
  33. define the path to your stdd configuration file. This is usually needed to start the program in both modes.
  34. .SH EXAMPLES
  35. .TP
  36. .B stdd -c /etc/stdd.conf
  37. minimal example using the default configuration file
  38. .TP
  39. .B stdd -c /etc/stdd.conf -u i2cuser -g i2c -d
  40. start with the privileges of user i2cuser, group i2c and run as daemon
  41. .SH CONFIGURATION
  42. The following options can and should be set in the configuration file:
  43. .P
  44. HW_ADDRESS: hardware address for your display, a common value is "0x70" use i2cdetect to find yours if it doesn't match
  45. .P
  46. BLINK_COLON: define if you want the middle colon to blink, 0 = off, 1 = on
  47. .P
  48. BRIGHTNESS_HIGH: value used for "high" brightness, valid values are 0-15
  49. .P
  50. BRIGHTNESS_LOW: value used for "low" brightness, valid values are 0-15
  51. .P
  52. SET_BRIGHTNESS_LOW: value used for "low" brightness, valid values are 0-15
  53. .P
  54. SET_BRIGHTNESS_HIGH: time of the day to change the brightness from low to high
  55. .P
  56. SYSLOG_LEVEL: maximum syslog level to log, stdd uses debug, info and error
  57. .P
  58. SYSLOG_FACILITY: syslog facility to use for logging (default: user, can also be daemon)
  59. .SH FILES
  60. .TP
  61. .B /etc/stdd.conf
  62. the default path to the configuration file
  63. .SH "SEE ALSO"
  64. .TP
  65. .B http://learn.adafruit.com/matrix-7-segment-led-backpack-with-the-raspberry-pi
  66. Adafruit tutorial for attaching a display to the Raspberry PI and using the library
  67. .TP
  68. .B https://github.com/adafruit/Adafruit-Raspberry-Pi-Python-Code Adafruit
  69. sample code used in this project
  70. .SH AUTHOR
  71. Helmut Pozimski
  72. .SH COPYRIGHT
  73. 2013, Helmut Pozimski, 3-Clause BSD license
  74. .P
  75. some parts written by Limor Fried, Kevin Townsend and Mikey Sklar for Adafruit Industries
  76. .P
  77. please look at the license header in the files for details