kuhinja battery change
[vaillant-thermostat] / serial.pl
index 2ba83e8..11b693d 100755 (executable)
--- 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+//;