Update documentation
authorMikael Berthe <mikael@lilotux.net>
Wed, 22 Feb 2017 21:01:21 +0100
changeset 10 b7ebc8c55b45
parent 9 588f7779b0b5
child 11 01e6addfa1ee
Update documentation
gobm65.go
--- a/gobm65.go	Wed Feb 22 21:01:06 2017 +0100
+++ b/gobm65.go	Wed Feb 22 21:01:21 2017 +0100
@@ -20,6 +20,8 @@
 //
 // Get records and display the average:
 // % gobm65 --average
+// ... display more statistics:
+// % gobm65 --stats
 //
 // Display the latest 3 records with the average:
 // % gobm65 -l 3 --average
@@ -28,6 +30,11 @@
 // Display all records of the last 7 days:
 // % gobm65 --since "$(date "+%F" -d "7 days ago")"
 //
+// Display statistics for morning records:
+// % gobm65 --from-time 06:00 --to-time 12:00 --stats
+// One can invert times to get night data:
+// % gobm65 --from-time 21:00 --to-time 09:00
+//
 // Display the last/first 10 records in JSON:
 // % gobm65 -l 10 --format json
 //
@@ -36,6 +43,7 @@
 //
 // Read a JSON file and display average of the last 3 records:
 // % gobm65 -i data_u2.json -l 3 --average
+// % gobm65 -i data_u2.json -l 3 --stats
 // Read a JSON file, merge with device records, and save to another file:
 // % gobm65 -i data_u2.json --merge -o data_u2-new.json