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

Projects
None yet
2 participants
@marceloaqno
Copy link
Member

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 (#1022)
  • MY_LINUX_CONFIG_FILE: no longer holds the path to the eeprom file,
    but to the configuration file

@marceloaqno marceloaqno added the RPi label Feb 11, 2018

@marceloaqno marceloaqno force-pushed the marceloaqno:linux-config branch 4 times, most recently from b8a90af to 166b2e1 Feb 11, 2018

@mfalkvidd

This comment has been minimized.

Copy link
Contributor

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.

@marceloaqno marceloaqno force-pushed the marceloaqno:linux-config branch 3 times, most recently from a7232be to 9c8c5cb Feb 16, 2018

@fallberg fallberg added this to In progress in 2.4.0 Feb 28, 2018

@marceloaqno marceloaqno force-pushed the marceloaqno:linux-config branch from 9c8c5cb to b797bd6 Mar 1, 2018

Linux: Use config file for gateway settings
- 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

@marceloaqno marceloaqno force-pushed the marceloaqno:linux-config branch from b797bd6 to 29ac8bb Mar 1, 2018

@mfalkvidd mfalkvidd merged commit 2175c99 into mysensors:development Mar 23, 2018

23 checks passed

Toll gate Pass
Details
Toll gate (Arduino Mega - Examples) Pass
Details
Toll gate (Arduino Mega - Tests) Pass
Details
Toll gate (Arduino Uno - Examples) Pass
Details
Toll gate (Arduino Uno - Tests) Pass
Details
Toll gate (Code analysis - Cppcheck) Pass
Details
Toll gate (Documentation) Pass
Details
Toll gate (ESP8266 - Examples) Pass
Details
Toll gate (ESP8266 - Tests) Pass
Details
Toll gate (Gitler) Pass
Details
Toll gate (Linux builds - Ethernet GW) Pass
Details
Toll gate (Linux builds - MQTT GW) Pass
Details
Toll gate (Linux builds - Serial GW) Pass
Details
Toll gate (MySensorsGW - Examples) Pass
Details
Toll gate (MySensorsGW - Tests) Pass
Details
Toll gate (MySensorsMicro - Examples) Pass
Details
Toll gate (MySensorsMicro - Tests) Pass
Details
Toll gate (STM32F1 - Tests) Pass
Details
Toll gate (nRF5 - Examples) Pass
Details
Toll gate (nRF5 - Tests) Pass
Details
Toll gate (nRF51822 - Tests) Pass
Details
Toll gate (nRF52832 - Tests) Pass
Details
clahub All contributors have signed the Contributor License Agreement.
Details

2.4.0 automation moved this from In progress to Done Mar 23, 2018

@marceloaqno marceloaqno deleted the marceloaqno:linux-config branch Mar 23, 2018

@mfalkvidd

This comment has been minimized.

Copy link
Contributor

commented Apr 27, 2018

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

@fallberg fallberg removed this from Done in 2.4.0 Jun 16, 2018

fallberg added a commit that referenced this pull request Jun 18, 2018

Linux: Use config file for gateway settings (#1061)
- 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
You can’t perform that action at this time.