The perl script I'm going to use to read the weather stations data logger ( reciever ), uses the Device::USB module.
To get to the point of installing this module on a "clean" system somethings need to be installed.
To build the required binaries, we'll need to install the build-essential package, we'll also need the libusb-dev package:
<code>
apt-get install build-essential
apt-get install libusb-dev
</code>
To build the Device::USB module there are dependancies that need to be met, once local::lib has been installed it's just a matter of using the cpan client to install:
Inline::MakeMaker
and
Device::USB
That should be it.
Just a note with the udev rules. The example I followed was using deprecated terms for the device event and attributes.
My udev rule for the weatherstion is:
<code>
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1941", ATTRS{idProduct}=="8021", GROUP="weather-station", MODE="0660"
</code>
One other thing, when setting these things up using "screen", exit all the way out and re-login. This actually fixed the problem of the script not being able to connect to the usb device.
That's it for now, the laptop is about to run out of battery and I can run the script to read the data back. Next up we'll look at what is coming out of the updated script.

Recent Comments