Mekanism Induction Matrix Input Source
telem.input.mekanism.inductionMatrix (
peripheralID: string,
categories?: string[] | '*'
)
Mod Dependencies
Requires Mekanism and Mekanism Generators.
This adapter produces a metric for most of the available information from an Induction Matrix Port. By default, the metrics are limited to an opinionated basic list, but this can be expanded with the categories
parameter at initialization. The default basic
category provides all the information needed to safely monitor the induction matrix.
See the Usage section for a complete list of the metrics in each category.
Name | Type | Default |
---|---|---|
peripheralID | string | nil |
Peripheral ID of the Induction Matrix Port | ||
categories | string[] | "*" | { "basic" } |
List of metric categories to query. The value lua
|
Usage
local telem = require 'telem'
local backplane = telem.backplane()
:addInput('my_induction', telem.input.mekanism.inductionMatrix('right', '*'))
:cycleEvery(5)()
Given an Induction Matrix Port peripheral on the right
side of the computer, this appends the following metrics to the backplane (grouped by category here for clarity):
Basic
Name | Value | Unit |
---|---|---|
mekinduction:energy_filled_percentage | 0.0 - 1.0 | |
mekinduction:energy_input | 0.0 - inf | FE/t |
mekinduction:energy_output | 0.0 - inf | FE/t |
mekinduction:energy_transfer_cap | 0 - inf | FE/t |
Advanced
Name | Value | Unit |
---|---|---|
mekinduction:comparator_level | 0 - 15 |
Energy
Name | Value | Unit |
---|---|---|
mekinduction:energy | 0 - inf | FE |
mekinduction:max_energy | 0 - inf | FE |
mekinduction:energy_needed | 0 - inf | FE |
Formation
Name | Value | Unit |
---|---|---|
mekinduction:formed | 0 or 1 | |
mekinduction:height | 0 - inf | m |
mekinduction:length | 0 - inf | m |
mekinduction:width | 0 - inf | m |
mekinduction:installed_cells | 0 - inf | |
mekinduction:installed_providers | 0 - inf |