telem icon indicating copy to clipboard operation
telem copied to clipboard

Pivot middleware

Open cyberbit opened this issue 9 months ago • 0 comments

Refactor targeted metrics by swapping their name and a chosen attribute (source, adapter, unit) or a custom static value. This would require a potential refactor allowing name to be a label.

For example:

backplane
  :addInput('storage', telem.input.refinedStorage('back'))
  :middleware(mw.pivot('unit'))

would produce something like

unit_item = 45 (name = minecraft:cobblestone)
unit_B = 3.12 (name = minecraft:lava)

cyberbit avatar Mar 23 '25 05:03 cyberbit