Skip to content

Debug_output

gary edited this page Aug 9, 2023 · 2 revisions

Debug output

Traditionally, WeeWX debug output has been obtained by setting the debug config option in weewx.conf. When using debug = 1 this results in most WeeWX services and drivers sending additional output to the WeeWX log. Some services and drivers support higher values for the debug option (eg 2 or 3) to include more detailed output in the WeeWX log. As the debug config option is applied across the in-use driver and all WeeWX services, the WeeWX log can quickly be filled with much output making the output from a single driver or service difficult and time consuming to follow. This is especially so when higher debug values are used.

The Ecowitt gateway driver supports values of 0, 1, 2 and 3 for the weewx.conf debug option as well as a number of additional config options that apply only to the Ecowitt gateway driver. These additional options are set within the [GW1000] stanza in weewx.conf and apply to the Ecowitt gateway driver only. They are useful when debugging an issue that is solely or largely limited to the Ecowitt gaeway driver.

These additional options along with a brief decription and usage are outlined below:

  • debug_loop. Provides additional debug information for troubleshooting the processwing of loop packet data within the Ecowitt gateway driver. Available options are True or False. Default is False.
  • debug_rain. Provides additional debug information for troubleshooting rain data within the Ecowitt gateway driver. Available options are True or False. Default is False.
  • debug_wind. Provides additional debug information for troubleshooting wind data within the Ecowitt gateway driver. Available options are True or False. Default is False.
  • debug_sensors. Provides additional debug information for troubleshooting raw and mapped sensor data within the Ecowitt gateway driver. Available options are True or False. Default is False.