davis: Davis Weather Station xPL gateway
This is an xPL gateway for the older wired Davis Weather Station. In particular this gateway was written to support the Monitor model which has inside and outside temperature, inside and outside humidity, wind speed and direction, barometric pressure and rain gauge. The gateway needs configuration to gather data.

Pasted Graphic 3

The type item must be set to the value of "device" or "net-address" to specify a special device file or network address connection. The device item must be set to the special device file name if the type item is set to "device". Set the net-address item to the IP address or host name if the device item is set to "net-address". Set the net-port item to the TCP port number. The location item contains a local Nation Weather Service radio station name/web site name to obtain a barometric pressure calibration. The rrddir item should contain the directory where the round-robin database file will be stored.
The round-robin database has the following fields.

RRD Entry Information
Description RRD name Units
Inside Temperature tin F*10
Outside Temperature tout F*10
Wind Speed wsp
Wind Direction wdir 0-15 (compass)
Barometer barom In*1000
Inside Humidity hin
Outside Humidity hout
Rain rain clicks
Dew dew F*10
Wind chill chill F*10
The sensor.request schema will permit the retrieval of various weather station data. See the Davis Weather Station documentation for the meaning of these variables. Use these values for the device parameter.
Device Names
SPDDTASPDHISPDHTIMESPDHDATESPDAHIBARFLAG
DEWDTADEWHIDEWLODEWHTIMEDEWLTIMEDEWLDATE
DEWHDATEDEWAHICHLDTACHLLOCHLLTIMECHLLDATE
CHLALOBARDTABARALMSTNDRDTP1DTATP1HI
TP1LOTP1HTIMETP1LTIMETP1HDATETP1LDATETP1AHI
TP1ALOTP1CALTP2DTATP2HITP2LOTP2HTIME
TP2LTIMETP2HDATETP2LDATETP2AHITP2ALOTP2CAL
HM1DTAHM1HIHM1LOHM1HTIMEHM1LTIMEHM1HDATE
HM1LDATEHM1AHIHM1ALOHM2DTAHM2HIHM2LO
HM2HTIMEHM2LTIMEHM2HDATEHM2LDATEHM2AHIHM2ALO
DIRDTATIMEHOURMINUTESECONDTIMEALM
HRALMMINALMDATEDAYMONTHYRNDTA
DRNDTARNCALHM2CALIDNEWPTROLDPTR
STINSTOUTSWSPSWDIRSBAROMSHIN
SHOUTSRAINSAMPLEPERARCPERIODPREVRAINLASTARCTIME
WDIRSABAROMAHINAHOUTARAINATINAVG
ATOUTAVGAWSPAVGAWDIRATHIOUTAGUSTATIMESTAMP
ATLOWOUT