projects
/
vaillant-thermostat
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ba6eef
)
move serial to cubieboard2
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Fri, 12 Feb 2021 11:35:38 +0000
(12:35 +0100)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Fri, 12 Feb 2021 11:35:38 +0000
(12:35 +0100)
serial.pl
patch
|
blob
|
history
diff --git
a/serial.pl
b/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+//;