diff --git a/docs/CHANGES.txt b/docs/CHANGES.txt index f19a89d8..7dce4951 100644 --- a/docs/CHANGES.txt +++ b/docs/CHANGES.txt @@ -4,9 +4,14 @@ CHANGE HISTORY For complete documentation, see http://www.weewx.com/docs +1.XX.YY 01/22/12 + +Added start script for FreeBSD, courtesy of user Fabian Abplanalp. Thanks, Fabian! + + 1.12.2 01/18/12 -Added check for FTP error code '521' to the list of possiblities if a directory +Added check for FTP error code '521' to the list of possibilities if a directory already exists. Thanks to user Clyde! More complete information when unable to load a module file. Thanks, Jason! diff --git a/docs/usersguide.htm b/docs/usersguide.htm index 5381b4f8..8bd96935 100644 --- a/docs/usersguide.htm +++ b/docs/usersguide.htm @@ -800,7 +800,8 @@ cp /usr/local/var/wview/archive/wview-archive.sdb $WEEWX_

Rain bucket type

Normally, this is set by Davis, but if you have replaced your bucket with - a different kind, you might want to reconfigure. Look for rain_bucket_type under section 'VantagePro'. + a different kind, you might want to reconfigure. Look for rain_bucket_type under section 'VantagePro' + in the configuration file weewx.conf. You may have to uncomment the line. For example, you might change it to

@@ -950,8 +951,9 @@ cp /usr/local/var/wview/archive/wview-archive.sdb $WEEWX_

Set to the desired archive interval of your station, in seconds. This - variable is only used when first setting up your station. Otherwise, this - value is read directly from the station. See additional details under configure your station archive interval. No default. + variable is only used when first setting up your station using + the configuration program configure.py. Otherwise, this + value is read from the station hardware EEPROM. See additional details under configure your station archive interval. No default.

type @@ -979,6 +981,18 @@ cp /usr/local/var/wview/archive/wview-archive.sdb $WEEWX_ or hostname (e.g., console.mydomain.com) to your console. Otherwise, not required. No default.

+

+ rain_bucket_type

+

+ The type of rain bucket you have. This variable is used only by + the configuration program configure.py. + The rest of the time, the bucket type is read from the station + hardware EEPROM. Normally, this option is left commented out and + therefore the configuration program leaves it alone. However, if + for some reason you change your bucket type, or if your bucket + type is wrong, uncomment the line and set it to the appropriate + type (0=0.01 inch bucket; 1=0.2 MM bucket; 2=0.1 MM bucket) then + run the configuration program.

baudrate

@@ -1723,6 +1737,20 @@ ACTION=="add", ATTRS{product}=="USB-Serial Controller", SYML

Or, at least, it should!

+

+ FreeBSD

+

+ User Fabian reports that the following had to be done to get the + VantagePro2 working under FreeBSD:

+
I needed the uslcom Driver for the usb/rs232 Adapter used by my vantage. Also I had to reset the memory of the weatherstation.
+Loading the Driver:
+Put uslcom_load="YES" in /boot/loader.conf (to load it as module).
+Which gives here an output like:
+uslcom0:  on usbus1
+And put in weewx.conf:
+    port = /dev/cuaU0
+

+  

Templates

Cheetah.NameMapper.NotFound errors

diff --git a/start_scripts/BSD/weewx b/start_scripts/BSD/weewx new file mode 100755 index 00000000..9944af7a --- /dev/null +++ b/start_scripts/BSD/weewx @@ -0,0 +1,40 @@ +#!/bin/sh +# +# Start script for FreeBSD, contributed by user Fabian Abplanalp +# Adjust WEEWX_ROOT as appropriate. +# Then put this script in /usr/local/etc/rc.d +# +WEEWX_ROOT="/opt/weewx" +PIDFILE="/var/run/weewx.pid" + +case "$1" in + "start") + echo "Starting weewx..." + /usr/local/bin/python ${WEEWX_ROOT}/bin/weewxd.py ${WEEWX_ROOT}/weewx.conf --daemon & + echo $! > ${PIDFILE} + echo "done" + ;; + + "stop") + echo "Stopping weewx..." + if [ -f ${PIDFILE} ] ; then + kill `cat ${PIDFILE}` + rm ${PIDFILE} + echo "done" + else + echo "not running?" + fi + ;; + + "restart") + echo "Restarting weewx..." + $0 stop + sleep 2 + $0 start + ;; + + *) + echo "$0 [start|stop|restart]" + ;; + +esac