Device::WS2500PCInterfacing the WS2500PC Weather Logger from ELV | |
Download |
Device::WS2500PC Ranking & Summary
Advertisement
- License:
- GPL
- Publisher Name:
- Magnus Schmidt
- Publisher web site:
- http://ducts.27b-6.de/cdcover/
Device::WS2500PC Tags
Device::WS2500PC Description
Interfacing the WS2500PC Weather Logger from ELV Device::WS2500PC is a Perl module for reading data from the interface WS2500PC distributed by the German company ELV (http://www.elv.de). This interface collects data from various sensors (temperature, wind, rain, etc), and stores them in a buffer. This buffer can be read with the serial interface. The library implements all documented commands with complete wrappers, so that all data returned can easily be processed.SYNOPSIS use Device::WS2500PC; my %result; if (ws2500_GetDataset('/dev/ttyS0',\%result,'next')) { if ($result{'dataset'}->{'status'} eq 'dataset' and $result{'dataset'}->{"temp$x"}->{'status'} ne 'n/a') print "Temperature Sensor 1: $result{'dataset'}->{'temp1'}->{'temperature'} Celcius\n"; } } # More usage examples: ws2500_GetTime ('/dev/ttyS0'); ws2500_GetStatus ('/dev/ttyS0',\%result); ws2500_NextDataset ('/dev/ttyS0'); ws2500_GetDataset ('/dev/ttyS0',\%result,'next'); # Advanced functions ws2500_GetDatasetBulk ('/dev/ttyS0',\%result,10); ws2500_FirstDataset ('/dev/ttyS0'); ws2500_InterfaceInit ('/dev/ttyS0',\%setup_data); ws2500_SetDebug (1); Requirements: · Perl
Device::WS2500PC Related Software