Grand Total Stats #2452
homeautomaton
started this conversation in
Show and tell
Replies: 2 comments 3 replies
-
We already planned to add that -- sort of ;) Line 1091 in 3264d01 |
Beta Was this translation helpful? Give feedback.
0 replies
-
I've discovered that if I redirect output to a file Is this a desired behavior? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I love when I start thinking about a possible feature request, then I remember to RTFM (again) only to find that rtl_433 can already do basically what I want. It's a really excellent project. Kudos to the maintainers.
I originally overlooked the "stats" option of the -M feature, thinking "Add various meta data to each output" meant the options all applied to the regular reception-based messages so I skipped reading all of the details. Later when I re-read the man page and saw the time setting here "Use "stats[:[][:]]" to report statistics (default: 600 seconds)," I realized that this is almost exactly what I was looking for.
I'm probably not the only user that runs rtl_433 for the purpose of finding other interesting RF transmissions nearby. I'd been using "grep" "sed" and "uniq" to post process the detailed log (as well as storing data in a sqlite db) to see what kinds of signals repeat over a long period of time. (Anything received just once might be noise.) Now I'm using "report_meta stats:1:99999999" in my config, or the equivalent option "-M stats:1:99999999" on the command-line.
It might not be obvious how cool this feature is, and why I have a huge number for the time, but what this does is print the final stats when I stop the program with control-C.
So the feature I originally wanted, a summary of everything that's been received, already exists, in a way. I could still imagine a separate "grand total" feature, so that periodic stats could also be seen. (This presently resets all of the counters, which is why I have opted to use a really long time setting, and periodically stop to see what I've found.)
Beta Was this translation helpful? Give feedback.
All reactions