Skip to content

Commit 43b92ab

Browse files
authored
Update README.md
Added nano scale
1 parent e72778a commit 43b92ab

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,13 @@ owonb35 [-t|-T] [-c|-j] [-u|-m|-b|-k|-M] [<device_address>]
3030
-d Timestamp measurements with date/time
3131
-c Comma separated values (CSV) output
3232
-j JSON output
33+
-n Scale measurements to nano units
3334
-u Scale measurements to micro units
3435
-m Scale measurements to milli units
3536
-b Scale measurements to base units
3637
-k Scale measurements to kilo units
3738
-M Scale measurements to mega units
38-
-n Output just the measurement without the units or type for use with feedgnuplot
39+
-x Output just the measurement without the units or type for use with feedgnuplot
3940
<device_address> Address of Owon multimeter to connect
4041
otherwise will connect to first meter found if not specified
4142
```
@@ -66,15 +67,15 @@ The `tee` command can be used to write measurement values to a file and also pip
6667

6768
[gnuplot](http://www.gnuplot.info) is a very flexible plotting program. The client can feed measurements to gnuplot in realtime using [feedgnuplot](https://github.com/dkogan/feedgnuplot).
6869

69-
`owonb35 -s -n -b | feedgnuplot --domain --lines --stream --ymin 0 --ylabel 'Volts' --xlabel 'Seconds' --exit`
70+
`owonb35 -s -x -b | feedgnuplot --domain --lines --stream --ymin 0 --ylabel 'Volts' --xlabel 'Seconds' --exit`
7071

7172
It is best to lock the measurement unit and scale to prevent them jumping around if the multimeter autoranges during measurement. feedgnuplot doesn't handle non-numeric data in its input, so the output of measurement units need to be disabled. It also cannot handle measurements with less than one second resolution, which means that it can only display elapsed timestamps. Data written to file and loaded into gnuplot can display actual timestamps.
7273

7374
### MQTT
7475

7576
MQTT is a publish/subscribe messaging system frequently used in Internet of Things networks. It allows clients to publish data onto a network for other clients to subscribe to. Data is usually published as single values or in JSON format.
7677

77-
Single value - `omonb35 -n -b | mosquitto_pub -t voltage -l`
78+
Single value - `omonb35 -x -b | mosquitto_pub -t voltage -l`
7879

7980
JSON format - `omonb35 -T -b -j | mosquitto_pub -t measurement -l`
8081

@@ -142,6 +143,7 @@ Function
142143
1 1 0 0 - hFE
143144
144145
Scale
146+
0 0 1 - nano (n)
145147
0 1 0 - micro (u)
146148
0 1 1 - milli (m)
147149
1 0 0 - Unit

0 commit comments

Comments
 (0)