Ben Stienstra

Linux, Unix, network, radio and more...

User Tools

Site Tools


serial_data_logger

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
serial_data_logger [2014/07/07 13:30]
admin
serial_data_logger [2014/07/07 13:31] (current)
admin [Smart Meter - P1 data logger]
Line 2: Line 2:
 =====Smart Meter - P1 data logger===== =====Smart Meter - P1 data logger=====
 This script will log serial data and prepend time/date stamp. The example below if P1 data from a smart meter. You can pipe this to [[rotatelogs]] to save the output to rotated logs. This script will log serial data and prepend time/date stamp. The example below if P1 data from a smart meter. You can pipe this to [[rotatelogs]] to save the output to rotated logs.
-<​code>#​ /​usr/​local/​bin/​serialWatch.exp ttyUSB0+  * Example output: ​<​code>#​ /​usr/​local/​bin/​serialWatch.exp ttyUSB0
  
 2014-06-16,​21:​25:​44 Log starting... 2014-06-16,​21:​25:​44 Log starting...
Line 27: Line 27:
 2014-06-16,​21:​25:​45:​ 0-1:​24.4.0(1) 2014-06-16,​21:​25:​45:​ 0-1:​24.4.0(1)
 2014-06-16,​21:​25:​45:​ !</​code>​ 2014-06-16,​21:​25:​45:​ !</​code>​
- +  * Log and timestamp script: ​<​code>#​! /bin/sh
-<​code>#​! /bin/sh+
 # the next line restarts using expect \ # the next line restarts using expect \
 exec expect $0 ${1+"​$@"​} exec expect $0 ${1+"​$@"​}
serial_data_logger.txt · Last modified: 2014/07/07 13:31 by admin