X-Git-Url: http://git.rot13.org/?p=vaillant-thermostat;a=blobdiff_plain;f=serial.pl;h=11b693d11a3bdfc5ebf19bd8787207caac841573;hp=2ba83e8872fc9351a9eed00a42a1a47867890e79;hb=HEAD;hpb=f668ba4121cfeee0269e78bdbb8a418bbf2e7994 diff --git a/serial.pl b/serial.pl index 2ba83e8..11b693d 100755 --- a/serial.pl +++ b/serial.pl @@ -8,7 +8,8 @@ use LWP::UserAgent; my $read_len = 255; -my $path = shift @ARGV || '/dev/serial/by-path/platform-20980000.usb-usb-0:1.2:1.0-port0'; +# bottom serial on rpi +my $path = shift @ARGV || '/dev/serial/by-path/platform-1c14400.usb-usb-0:1:1.0-port0'; $|=1; @@ -48,7 +49,7 @@ while (1) { my $hex = unpack('H*',$string); $hex =~ s/(..)/$1 /g; - my $temp = `curl --silent localhost:3000/temp.txt`; + my $temp = `curl --silent rpi:3000/temp.txt`; $temp =~ s/\s+/ /gs; $temp =~ s/^\s+//;