User Tools

Site Tools


bash:mqtt:add_to_influxdb

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
bash:mqtt:add_to_influxdb [2017/11/29 23:05]
biggi
bash:mqtt:add_to_influxdb [2017/11/29 23:06] (current)
biggi
Line 13: Line 13:
        echo "​`date` - Got: $line"        echo "​`date` - Got: $line"
 # Get vars # Get vars
- SENSORNAME=`echo $line | cut -d'/'​ -f3`+ SENSORNAME=`echo $line | cut -d'/'​ -f3 | sed 's/ /\\\ /g'`
  SENSORTYPE=`echo $line | cut -d'/'​ -f5 | awk {'​print $1'}`  SENSORTYPE=`echo $line | cut -d'/'​ -f5 | awk {'​print $1'}`
  SENSORDATA=`echo $line | awk {'​print $NF'}  SENSORDATA=`echo $line | awk {'​print $NF'}
bash/mqtt/add_to_influxdb.txt ยท Last modified: 2017/11/29 23:06 by biggi