perl-Device-Davis - Perl extension for communicating with Davis weather stations

Property Value
Distribution ALT Linux Sisyphus
Repository Autoimports x86_64
Package filename perl-Device-Davis-1.2.3-alt4.1.x86_64.rpm
Package name perl-Device-Davis
Package version 1.2.3
Package release alt4.1
Package architecture x86_64
Package type rpm
Category Development/Perl
Homepage -
License -
Maintainer -
Download size 23.04 KB
Installed size 23.04 KB
Davis is a Perl 5 module that facilitates communication with Davis weather stations.  This module should work on most unix systems, however it was developed on Linux.
station_open() takes the tty where the station is connected as an argument and opens the tty with the correct parameters for communication.  The baud rate that is used matches the factory default of the Vantage Pro, which is 19200.  If you need to use a different baud rate, you will need to modify the Davis.xs file before compiling the module.
put_string() takes a file descriptor (NOT a perl filehandle) and the string to send as arguments and sends the string to the weather station.  This function will return the number of bytes written.
get_char() takes a file descriptor as an argument and retuns 1 byte from the weather station.
crc_accum() is an accumulator for the crc calculation.  It takes the previous value of the crc that has been accumulated ($crc) and the new data byte that needs to be added to the accumulated total.  Be sure to initialize $crc to 0 before sending a new set of data bytes.  The function will return the new accumulated crc value.  Once you pass in the crc value received from the weather station, the function should return a 0 if the crc check passed.  If you are sending commands to the station, the last value returned by the function should be what you send to the station as the crc value.  Note that the station expects the most significant byte of the crc to be sent first, which is opposite of how regular data values are sent.
put_unsigned() is for sending numeric values to the station.  It takes the file descriptor and the character to send as arguments.  It will send it's argument as a one byte unsigned character.  It will return the number of bytes written.


Package Version Architecture Repository
perl-Device-Davis-1.2.3-alt4.1.i586.rpm 1.2.3 i586 Autoimports
perl-Device-Davis - - -


Name Value
/usr/lib64/perl5 - - - - -
perl( -
perl( -
rpmlib(PayloadIsLzma) -
rpmlib(SetVersions) -
rtld(GNU_HASH) -


Name Value
perl(Device/ = 1.002.003
perl-Device-Davis = 1.2.3-alt4.1


Type URL
Binary Package perl-Device-Davis-1.2.3-alt4.1.x86_64.rpm
Source Package perl-Device-Davis-1.2.3-alt4.1.src.rpm

Install Howto

  1. Add the following line to /etc/apt/sources.list:
    rpm [Sisyphus] x86_64 autoimports
    rpm [Sisyphus] noarch autoimports
  2. Update the package index:
    # sudo apt-get update
  3. Install perl-Device-Davis rpm package:
    # sudo apt-get install perl-Device-Davis



See Also

Package Description
perl-Device-FTDI-0.14-alt1.1.x86_64.rpm perl extension to talk to FTDI chips
perl-Device-I2C-0.06-alt3.1.x86_64.rpm Control and read hardware devices with i2c(SMBus)
perl-Device-LaCrosse-WS23xx-0.10-alt3.1.x86_64.rpm read data from La Crosse weather station
perl-Device-ParallelPort-drv-parport-1.0-alt4.1.x86_64.rpm perl module Device-ParallelPort-drv-parport
perl-Device-SMBus-1.15-alt3.1.x86_64.rpm Perl interface for smbus using libi2c-dev library
perl-Device-Serdisp-0.06-alt4.1.x86_64.rpm Perl extension for talking to the serdisplib
perl-Device-SerialPort-Xmodem-1.03-alt4.1.x86_64.rpm perl module Device-SerialPort-Xmodem
perl-Device-Video-PWC-0.11-alt4.1.x86_64.rpm perl module Device-Video-PWC
perl-Device-WH1091-0.03-alt4.1.x86_64.rpm Access data from the WH1081/1091 weather station
perl-Device-WS2000-IO-0.01-alt4.1.x86_64.rpm perl module Device-WS2000-IO
perl-DiaColloDB-0.12.011-alt1.x86_64.rpm Diachronic collocation index
perl-DiaColloDB-scripts-0.12.011-alt1.x86_64.rpm perl-DiaColloDB scripts
perl-Diff-LibXDiff-0.05-alt4.1.x86_64.rpm Calculate a diff with LibXDiff (via XS)
perl-Digest-Adler32-XS-0.03-alt4.1.x86_64.rpm Generate Adler32 digests efficiently
perl-Digest-BLAKE-0.05-alt4.1.x86_64.rpm Perl interface to the BLAKE digest algorithm