Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux: Use config file for gateway settings #1061

Merged
merged 1 commit into from
Mar 23, 2018

Conversation

marceloaqno
Copy link
Member

@marceloaqno marceloaqno commented Feb 11, 2018

  • The following settings can be use on the config file:
    • verbose=[debug,info,notice,warn,err] - Logging verbosity. Default=debug
    • log_file=[0|1] - Enable logging to a file. Default=0
    • log_filepath=[/tmp/mysgw.log] - Log file path.
    • log_pipe=[0|1] - Enable logging to a named pipe(aka fifo). Default=0
      Use this option to view your gateway's log messages from the
      log_pipe_file (defined below).
      To do so, run the following command on another terminal:
      • $ cat "log_pipe_file"
    • log_pipe_file=[/tmp/mysgw.pipe]
    • syslog=[0|1] - Enable logging to syslog. Default=0
    • eeprom_file=[/etc/mysensors.eeprom]
    • eeprom_size=[1024]
  • Change some mysgw parameters:
    • Added:
      • -q, --quiet: for quiet mode, disable log messages written to the
        terminal.
    • Removed:
      • -d, --debug: removed, log messages are now enabled by default.
    • Replaced:
      • -b, --background: replaced by --daemon
  • isatty() is no longer used, log messages by default are printed to
    stderr unless the gateway is started with --quiet (Option to disable isatty check for Linux gateway #1022)
  • MY_LINUX_CONFIG_FILE: no longer holds the path to the eeprom file,
    but to the configuration file

@marceloaqno marceloaqno force-pushed the linux-config branch 4 times, most recently from b8a90af to 166b2e1 Compare February 13, 2018 10:47
@mfalkvidd
Copy link
Member

mfalkvidd commented Feb 14, 2018

We'll need to document the possible config file settings and their default values, preferably in Doxygen. Perhaps an activity for the Hackathon?

Edit: the config file setting will automatically be documented since it is mentioned in ./configure --help. So no need to document it separately. Just add it to the blacklist in keywords.txt in the Raspberry Pi gateway section.

- The following settings can be use on the config file:
  - verbose=[debug,info,notice,warn,err] - Logging verbosity.
  - log_file[0|1] - Enable logging to a file.
  - log_filepath=(FILE) - Log file path.
  - log_pipe=[0|1] - Enable logging to a named pipe(aka fifo).
    Use this option to view your gateway's log messages from the
    log_pipe_file (defined below).
    To do so, run the following command on another terminal:
    - $ cat "log_pipe_file"
  - log_pipe_file=(FILE)
  - syslog=[0|1] - Enable logging to syslog.
  - eeprom_file=[/etc/mysensors.eeprom]
  - eeprom_size=[1024]
- Change some mysgw parameters:
  - Added:
    - -q, --quiet:  for quiet mode, disable log messages written to the
    terminal.
  - Removed:
    - -d, --debug: removed, log messages are now enabled by default.
  - Replaced:
    - -b, --background: replaced by --daemon
- isatty() is no longer used, log messages by default are printed to
  stderr unless the gateway is started with --quiet (mysensors#1022)
- MY_LINUX_CONFIG_FILE: no longer holds the path to the eeprom file,
  but to the configuration file
@mfalkvidd mfalkvidd merged commit 2175c99 into mysensors:development Mar 23, 2018
@marceloaqno marceloaqno deleted the linux-config branch March 23, 2018 23:38
@mfalkvidd mfalkvidd added the release-notes Issues that have information that should be included in the release notes label Apr 27, 2018
@mfalkvidd
Copy link
Member

We'll need to update the build page with these changes when doing the release.

fallberg pushed a commit that referenced this pull request Jun 18, 2018
- The following settings can be use on the config file:
  - verbose=[debug,info,notice,warn,err] - Logging verbosity.
  - log_file[0|1] - Enable logging to a file.
  - log_filepath=(FILE) - Log file path.
  - log_pipe=[0|1] - Enable logging to a named pipe(aka fifo).
    Use this option to view your gateway's log messages from the
    log_pipe_file (defined below).
    To do so, run the following command on another terminal:
    - $ cat "log_pipe_file"
  - log_pipe_file=(FILE)
  - syslog=[0|1] - Enable logging to syslog.
  - eeprom_file=[/etc/mysensors.eeprom]
  - eeprom_size=[1024]
- Change some mysgw parameters:
  - Added:
    - -q, --quiet:  for quiet mode, disable log messages written to the
    terminal.
  - Removed:
    - -d, --debug: removed, log messages are now enabled by default.
  - Replaced:
    - -b, --background: replaced by --daemon
- isatty() is no longer used, log messages by default are printed to
  stderr unless the gateway is started with --quiet (#1022)
- MY_LINUX_CONFIG_FILE: no longer holds the path to the eeprom file,
  but to the configuration file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-notes Issues that have information that should be included in the release notes RPi
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants