A Minor Postrunner Contribution

The previous post covered how to handle locally patched Ruby software. I'm glad to write that my patch was already merged at the time of publishing, and that it is included in postrunner v1.0.4 released during the past week.

Postrunner is used to view data, such as logged exercises, hearth rate and sleep phases, from Garmin sports watches. This trivial change is intended to make it easier to differentiate between time stamps occurring on the same and the following day when viewing sleep events. For an example, please see the difference between the command output below:

% postrunner --version
1.0.2
% postrunner daily 2021-01-22
Daily Monitoring Report for 2021-01-22

+-----------------------+----------------------+--------------------+
|         Steps         |  Intensity Minutes   |   Floors Climbed   |
+-----------------------+----------------------+--------------------+
|         11083         |         90.0         |         8          |
|167% of daily goal 6620|60% of weekly goal 150|80% of daily goal 10|
+-----------------------+----------------------+--------------------+

+--------+--------+----------------+------------------+
|Distance|Calories|Floors descended|Resting Heart Rate|
+--------+--------+----------------+------------------+
|10.0 km |  2893  |       16       |      46 BPM      |
+--------+--------+----------------+------------------+

Sleep Statistics for 2021-01-22 - 2021-01-23

+------+-----+-----+--------+---------+-----------+----------+
|Cycle |From |To   |Duration|REM Sleep|Light Sleep|Deep Sleep|
+------+-----+-----+--------+---------+-----------+----------+
|     1|23:34|00:44|    1:10|     0:00|       0:41|      0:29|
|     2|00:44|02:03|    1:19|     0:01|       0:47|      0:31|
|     3|02:03|03:05|    1:02|     0:08|       0:03|      0:51|
|     4|03:05|05:07|    2:02|     0:09|       1:10|      0:43|
|     5|05:07|06:11|    1:04|     0:08|       0:20|      0:36|
|     6|06:11|07:48|    1:37|     0:34|       0:19|      0:44|
|     7|07:48|08:50|    1:02|     0:11|       0:39|      0:12|
|     8|08:50|09:13|    0:23|     0:00|       0:20|      0:03|
+------+-----+-----+--------+---------+-----------+----------+
|Totals|23:34|09:13|    9:39|     1:11|       4:19|      4:09|
+------+-----+-----+--------+---------+-----------+----------+
 
% postrunner --version
1.0.4
% postrunner daily 2021-01-22
Daily Monitoring Report for 2021-01-22

+-----------------------+----------------------+--------------------+
|         Steps         |  Intensity Minutes   |   Floors Climbed   |
+-----------------------+----------------------+--------------------+
|         11083         |         90.0         |         8          |
|167% of daily goal 6620|60% of weekly goal 150|80% of daily goal 10|
+-----------------------+----------------------+--------------------+

+--------+--------+----------------+------------------+
|Distance|Calories|Floors descended|Resting Heart Rate|
+--------+--------+----------------+------------------+
|10.0 km |  2893  |       16       |      46 BPM      |
+--------+--------+----------------+------------------+

Sleep Statistics for 2021-01-22 - 2021-01-23

+------+------+------+--------+---------+-----------+----------+
|Cycle |From  |To    |Duration|REM Sleep|Light Sleep|Deep Sleep|
+------+------+------+--------+---------+-----------+----------+
|     1| 23:34|+00:44|    1:10|     0:00|       0:41|      0:29|
|     2|+00:44|+02:03|    1:19|     0:01|       0:47|      0:31|
|     3|+02:03|+03:05|    1:02|     0:08|       0:03|      0:51|
|     4|+03:05|+05:07|    2:02|     0:09|       1:10|      0:43|
|     5|+05:07|+06:11|    1:04|     0:08|       0:20|      0:36|
|     6|+06:11|+07:48|    1:37|     0:34|       0:19|      0:44|
|     7|+07:48|+08:50|    1:02|     0:11|       0:39|      0:12|
|     8|+08:50|+09:13|    0:23|     0:00|       0:20|      0:03|
+------+------+------+--------+---------+-----------+----------+
|Totals| 23:34| 09:13|    9:39|     1:11|       4:19|      4:09|
+------+------+------+--------+---------+-----------+----------+

(It is no surprise that the example shows a night with almost ten hours of sleep. On the rare occasions when I go to bed prior to midnight, it tends to be because of me being more tired than usual.)

Hopefully this change hasn't broken anything for too many people. Maybe this just slightly improved output can even be of use to someone else but me, who knows?


2021-02-21 00:21:00 +0100
Thoughts and feedback may be directed at me using the channel listed on my contact page.

Previous post Next post