diff --git a/pkg/debian/postinst b/pkg/debian/postinst index e6b95e93..a8e96cf6 100755 --- a/pkg/debian/postinst +++ b/pkg/debian/postinst @@ -52,18 +52,18 @@ if [ "$RET" != "" ]; then sed -i "s%station_type[ ]*=.*%station_type = $RET%" $cfgfile if [ "$RET" = "Vantage" ]; then db_get weewx/vantage_type - sed -i "s%type[ ]*=.*%type = $RET%" $cfgfile + sed -i "s%type[ ]*= serial%type = $RET%" $cfgfile if [ "$RET" = "serial" ]; then db_get weewx/vantage_port - sed -i "s%port[ ]*=.*%port = $RET%" $cfgfile + sed -i "s% port[ ]*=.*% port = $RET%" $cfgfile else db_get weewx/vantage_host - sed -i "s%host[ ]*=.*%host = $RET%" $cfgfile + sed -i "s%host[ ]*= 1.2.3.4%host = $RET%" $cfgfile fi fi if [ "$RET" = "WMR-918" ]; then db_get weewx/wmr918_port - sed -i "s%port[ ]*=.*%port = $RET%" $cfgfile + sed -i "s% port[ ]*=.*% port = $RET%" $cfgfile fi if [ "$RET" = "FineOffsetUSB" ]; then db_get weewx/fousb_model diff --git a/weewx.conf b/weewx.conf index 0340905b..f4015e23 100644 --- a/weewx.conf +++ b/weewx.conf @@ -72,23 +72,24 @@ version = 2.2.0a3 [Vantage] # - # This section is for configuration info for a Davis VantagePro2, VantageVue - # or WeatherLinkIP + # This section is for configuration info for a Davis VantagePro2, + # VantageVue or WeatherLinkIP # - # Connection type. - # Choose one of "serial" (the classic VantagePro) or "ethernet" (the WeatherLinkIP): + # Connection type: serial or ethernet + # serial (the classic VantagePro) + # ethernet (the WeatherLinkIP) type = serial - #type = ethernet - # If you chose "serial", then give its port name - # - # Ubuntu and SuSE: + # If the connection type is serial, a port must be specified: + # Debian, Ubuntu, Redhat, Fedora, and SuSE: # /dev/ttyUSB0 is a common USB port name - # /dev/ttyS0 a common serial port name + # /dev/ttyS0 is a common serial port name + # BSD: + # /dev/cuaU0 is a common serial port name port = /dev/ttyUSB0 - # If you chose "ethernet", then give its IP Address/hostname + # If the connection type is ethernet, an IP Address/hostname is required: host = 1.2.3.4 ###################################################### @@ -126,7 +127,7 @@ version = 2.2.0a3 [WMR-USB] # - # This section is for configuration info for an Oregon Scientific WMR100 + # This section is for the Oregon Scientific WMR100 # ###################################################### @@ -145,17 +146,18 @@ version = 2.2.0a3 [WMR-918] # - # This section is for configuration info for an Oregon Scientific WMR918/968 + # This section is for the Oregon Scientific WMR918/968 # # Connection type. For now, 'serial' is the only option. type = serial - - # Give the serial port name - # - # Ubuntu and SuSE: + + # A port must be specified: + # Debian, Ubuntu, Redhat, Fedora, and SuSE: # /dev/ttyUSB0 is a common USB port name - # /dev/ttyS0 a common serial port name + # /dev/ttyS0 is a common serial port name + # BSD: + # /dev/cuaU0 is a common serial port name port = /dev/ttyUSB0 ###################################################### @@ -174,7 +176,7 @@ version = 2.2.0a3 [FineOffsetUSB] # - # This section is for configuration info for the "Fine Offset" series of weather stations. + # This section is for the "Fine Offset" series of weather stations. # # The station model, e.g., WH1080, WS2080, WH3081