move serial to cubieboard2
authorDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 12 Feb 2021 11:35:38 +0000 (12:35 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 12 Feb 2021 11:35:38 +0000 (12:35 +0100)
serial.pl

index b84c3a0..11b693d 100755 (executable)
--- a/serial.pl
+++ b/serial.pl
@@ -9,7 +9,7 @@ use LWP::UserAgent;
 my $read_len = 255;
 
 # bottom serial on rpi
-my $path = shift @ARGV || '/dev/serial/by-path/platform-20980000.usb-usb-0:1.3:1.0-port0';
+my $path = shift @ARGV || '/dev/serial/by-path/platform-1c14400.usb-usb-0:1:1.0-port0';
 
 $|=1;
 
@@ -49,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+//;