Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Log Analyze Feature to TlmExtractor/CmdExtractor #336

Closed
ghost opened this issue Sep 26, 2016 · 2 comments
Closed

Add Log Analyze Feature to TlmExtractor/CmdExtractor #336

ghost opened this issue Sep 26, 2016 · 2 comments
Assignees
Labels
Milestone

Comments

@ghost
Copy link

ghost commented Sep 26, 2016

I frequently end up writing little scripts to read through log files and see what packets are actually within them. Add a new feature to TlmExtractor and CmdExtractor that will do exactly that and present the user with a dialog that shows what packets are present in a log file and how many of each packet exists.

@ghost ghost added the feature label Sep 26, 2016
@ghost
Copy link
Author

ghost commented Sep 26, 2016

Here is a little command line script that will do this, GUI will be similar:

require 'cosmos'
require 'cosmos/packet_logs/packet_log_reader'

counts = {}

plr = Cosmos::PacketLogReader.new
plr.each(ARGV[0]) do |packet|
  counts["#{packet.target_name}_#{packet.packet_name}"] ||= 0
  counts["#{packet.target_name}_#{packet.packet_name}"] += 1
end

counts.each do |name, count|
  puts "#{name}: #{count}"
end

@donaldatball donaldatball self-assigned this May 5, 2017
donaldatball pushed a commit that referenced this issue May 9, 2017
… menu action instead of a front-panel button
donaldatball pushed a commit that referenced this issue May 9, 2017
…ScrollTextDialog to make it auto-size itself
@donaldatball
Copy link
Contributor

Closed with d61332c

@ghost ghost modified the milestone: v3.9.2 May 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant