#!/usr/bin/perl # Details in Forum #35416 if(@ARGV == 0) { print "Usage:\n". " mkdir -p /www/deviceimages/zwave\n". " cd /www/deviceimages/zwave\n". " wget http://www.pepper1.net/zwavedb/device/export/device_archive.zip\n". " unzip device_archive.zip\n". " perl /contrib/zwave_pepperconvert.pl *.xml\n". " sh getpics.sh\n". " rm *.xml *.txt *.sh *.zip\n". " gzip zwave_pepperlinks.csv\n"; " mv zwave_pepperlinks.csv.gz /FHEM/lib\n"; exit 1; } open(F1, ">zwave_pepperlinks.csv") || die("zwave_pepperlinks.csv: $!\n"); open(F2, ">getpics.sh") || die("getpics.sh: $!\n"); my $d=""; my %toget; while(my $l = <>) { if($l =~ m,,) { $d = $1; $d =~ s/^\s*//; $d =~ s/\s*$//; } if($l =~ m,