Skip to content

CommandCode Tray Meter v1.3.0

Latest

Choose a tag to compare

@standardbus standardbus released this 17 Sep 13:45
· 2 commits to main since this release

Adds a Settings window and account tabs, and removes the last external
dependency: the tray used to open config.json in Notepad, which fails on a
machine where that editor is missing or blocked.

Settings

Right-click the tray icon, then Settings…:

  • one row per account - a name and an API key, masked until you reveal it, with
    "+" to add another and "−" to remove one
  • the interface language, refresh interval, amber and red thresholds, which
    window the ring follows, monochrome and tooltip switches
  • an account kept through an environment variable shows an empty key box and
    keeps that variable unless you type a key

Saving writes config.json atomically (a temporary file replaced in place) and
preserves every key the window does not manage: endpoints, creditFiles, the
$comment notes, anything you added. No external editor is involved, and the
file stays plain JSON if you prefer editing it by hand.

Account tabs

With two or more accounts the bubble grows a tab strip: one tab per account,
clicking one switches the monitored account. The choice is remembered both in
.cache and as activeProfile in config.json, so the account you picked is the
one that opens next time. The tray menu's Account submenu does the same.

With a single account there are no tabs and the bubble is unchanged.

Robustness

A configuration whose numbers are out of range used to be able to surface a
WinForms unhandled-exception dialog ("'0' is not a valid value for 'Value'")
while the settings window was being built. Every configured number now passes
through one clamp before it reaches a control, the window's construction and
every one of its handlers are guarded, and a failure is reported inside the
window (or in the tray log) in the active language instead of escaping into the
message loop. Both implementations carry a regression test that was checked
against the reintroduced bug.

Downloads

File Platform Size SHA-256
CommandCodeMonitor.exe Windows 10/11 175.104 bytes 6708EB94EA44AA0A57F3AD4A521046769539F13FC854CDF119B8D2233AD5B5FF
commandcode-meter-linux.tar.gz Linux 41.319 bytes 6DED6E319D758FF9DDF48AF3F0D58F6368C6CE1A84D5D3B05C81340617D39A15
commandcode-meter-macos.tar.gz macOS 41.319 bytes 6DED6E319D758FF9DDF48AF3F0D58F6368C6CE1A84D5D3B05C81340617D39A15

The two archives hold the same bytes: the terminal meter is plain Node with no
platform-specific code and no dependencies, so one build serves both systems.

Verification

sha256sum commandcode-meter-linux.tar.gz
Get-FileHash .\CommandCodeMonitor.exe -Algorithm SHA256

The single-account bubble is byte-identical to the previous release: the tabs and
the window are additive. The Node suite (130 tests), the Pester suite and the
executable self-test all pass, and the settings write is covered by a round-trip
that checks the accounts changed, unknown keys survived and no key was replaced
by a mask.