diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index 82abf04..62c3c72 100644 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -54,14 +54,22 @@ export default defineConfig({ text: 'Advanced Peripherals', collapsed: true, items: [ - { text: 'Energy Detector', link: '/reference/input/advanced-peripherals/EnergyDetector' }, + { text: 'Energy Detector', link: '/reference/input/advanced-peripherals/EnergyDetector' }, + { text: 'Environment Detector', link: '/reference/input/advanced-peripherals/EnvironmentDetector' }, + { text: 'Geo Scanner', link: '/reference/input/advanced-peripherals/GeoScanner' }, + { text: 'Inventory Manager', link: '/reference/input/advanced-peripherals/InventoryManager' }, + { text: 'ME Bridge', link: '/reference/input/advanced-peripherals/MEBridge' }, + { text: 'Player Detector', link: '/reference/input/advanced-peripherals/PlayerDetector' }, + { text: 'Redstone Integrator', link: '/reference/input/advanced-peripherals/RedstoneIntegrator' }, + { text: 'RS Bridge', link: '/reference/input/advanced-peripherals/RSBridge' }, ] }, { - text: 'Applied Energistics', + text: 'Bigger Reactors', collapsed: true, items: [ - { text: 'ME Storage', link: '/reference/input/applied-energistics/MEStorage' }, + { text: 'Reactor', link: '/reference/input/bigger-reactors/Reactor' }, + { text: 'Turbine', link: '/reference/input/bigger-reactors/Turbine' }, ] }, { @@ -140,10 +148,15 @@ export default defineConfig({ ] }, { - text: 'Refined Storage', + text: 'Powah', collapsed: true, items: [ - { text: 'Refined Storage', link: '/reference/input/refined-storage/RefinedStorage' }, + { text: 'Energy Cell', link: '/reference/input/powah/EnergyCell' }, + { text: 'Furnator', link: '/reference/input/powah/Furnator' }, + { text: 'Magmator', link: '/reference/input/powah/Magmator' }, + { text: 'Reactor', link: '/reference/input/powah/Reactor' }, + { text: 'Solar Panel', link: '/reference/input/powah/SolarPanel' }, + { text: 'Thermo Generator', link: '/reference/input/powah/ThermoGenerator' }, ] }, ] diff --git a/docs/reference/input/advanced-peripherals/EnergyDetector.md b/docs/reference/input/advanced-peripherals/EnergyDetector.md index 66efd23..033da9f 100644 --- a/docs/reference/input/advanced-peripherals/EnergyDetector.md +++ b/docs/reference/input/advanced-peripherals/EnergyDetector.md @@ -1,60 +1,21 @@ -# Advanced Peripherals Energy Detector - -```lua -telem.input.advancedPeripherals.energyDetector ( - peripheralID: string, - categories?: string[] | '*' -) -``` - -::: warning Mod Dependencies -Requires **Advanced Peripherals**. -::: +--- +telem: + adapter: + id: 'energyDetector' + name: 'Energy Detector' + categories: '{ "basic" }' +--- -This adapter produces metrics for the transfer rate and limit of an attached Energy Detector. By default, the metrics are limited to an opinionated basic list, but this can be expanded with the `categories` parameter at initialization. - -See the Usage section for a complete list of the metrics in each category. - - - - - -## Usage - -```lua{4} -local telem = require 'telem' +# Advanced Peripherals Energy Detector -local backplane = telem.backplane() - :addInput('my_energy', telem.input.advancedPeripherals.energyDetector('right')) - :cycleEvery(1)() -``` + -Given an Energy Detector peripheral on the `right` side of the computer, this appends the following metrics to the backplane: +### Basic \ No newline at end of file diff --git a/docs/reference/input/advanced-peripherals/EnvironmentDetector.md b/docs/reference/input/advanced-peripherals/EnvironmentDetector.md new file mode 100644 index 0000000..8f4bd8a --- /dev/null +++ b/docs/reference/input/advanced-peripherals/EnvironmentDetector.md @@ -0,0 +1,39 @@ +--- +telem: + adapter: + id: 'environmentDetector' + name: 'Environment Detector' + categories: '{ "basic" }' +--- + +# Advanced Peripherals Environment Detector Input + + + +### Basic + +```lua +MOON_PHASES = { + ['Full moon'] = 0, ['Waning gibbous'] = 1, + ['Third quarter'] = 2, ['Waning crescent'] = 3, + ['New moon'] = 4, ['Waxing crescent'] = 5, + ['First quarter'] = 6, ['Waxing gibbous'] = 7 +} +``` + + \ No newline at end of file diff --git a/docs/reference/input/advanced-peripherals/GeoScanner.md b/docs/reference/input/advanced-peripherals/GeoScanner.md new file mode 100644 index 0000000..a1225b1 --- /dev/null +++ b/docs/reference/input/advanced-peripherals/GeoScanner.md @@ -0,0 +1,51 @@ +# Advanced Peripherals Geo Scanner Input + +```lua +telem.input.advancedPeripherals.geoScanner ( + peripheralID: string, + categories?: string[] | '*' +) +``` + +::: warning Mod Dependencies +Requires **Advanced Peripherals**. +::: + + + +## Usage + +```lua{4} +local telem = require 'telem' + +local backplane = telem.backplane() + :addInput('my_geoScanner', telem.input.advancedPeripherals.geoScanner('right', '*')) + :cycleEvery(5)() +``` + +## Storage +If a Geo Scanner is in a chunk containing ore blocks, a storage metric is added for each ore block ID scanned. + +Given a chunk with 1 layer of dirt, 2 layers of stone, and 1 layer of iron ore, the following metrics would be added: + + \ No newline at end of file diff --git a/docs/reference/input/advanced-peripherals/InventoryManager.md b/docs/reference/input/advanced-peripherals/InventoryManager.md new file mode 100644 index 0000000..3f91744 --- /dev/null +++ b/docs/reference/input/advanced-peripherals/InventoryManager.md @@ -0,0 +1,42 @@ +--- +telem: + adapter: + id: 'inventoryManager' + name: 'Inventory Manager' + categories: '{ "basic" }' +--- + +# Advanced Peripherals Inventory Manager Input + + + +### Basic + + + +## Storage + +Given an Inventory Manager peripheral containing a memory card tied to a player with the following inventory: + +![Player inventory](/assets/inventory.png) + +This appends the following metrics to the backplane: + + \ No newline at end of file diff --git a/docs/reference/input/advanced-peripherals/MEBridge.md b/docs/reference/input/advanced-peripherals/MEBridge.md new file mode 100644 index 0000000..0995fce --- /dev/null +++ b/docs/reference/input/advanced-peripherals/MEBridge.md @@ -0,0 +1,65 @@ +--- +telem: + adapter: + id: 'meBridge' + name: 'ME Bridge' + categories: '{ "basic", "energy", "storage" }' + requiresMod: 'Applied Energistics 2' +--- + +# Advanced Peripherals ME Bridge Input + + + +### Basic + + + +### Energy + + + +### Storage + + + +## Storage + +Given an ME Bridge peripheral attached to an ME storage network with the following stored items and fluids: + +![Applied Energistics ME Terminal inventory](/assets/me-inventory.webp) + +This appends the following metrics to the backplane: + + + +If Applied Mekanistics is installed, any stored chemicals and gases will also be included as metrics. \ No newline at end of file diff --git a/docs/reference/input/advanced-peripherals/PlayerDetector.md b/docs/reference/input/advanced-peripherals/PlayerDetector.md new file mode 100644 index 0000000..922e48e --- /dev/null +++ b/docs/reference/input/advanced-peripherals/PlayerDetector.md @@ -0,0 +1,86 @@ +# Advanced Peripherals Player Detector Input + +```lua +telem.input.advancedPeripherals.playerDetector ( + peripheralID: string, + categories?: string[] | '*', + playerName?: string +) +``` + +::: warning Mod Dependencies +Requires **Advanced Peripherals**. +::: + +See the Usage section for a complete list of the metrics in each category. + + + + + +## Usage + +```lua{4-7} +local telem = require 'telem' + +local backplane = telem.backplane() + :addInput( + 'my_playerDetector', + telem.input.advancedPeripherals.playerDetector('right', '*', 'PlayerName') + ) + :cycleEvery(5)() +``` + +Given a Player Detector peripheral on the `right` side of the computer, this appends the following metrics to the backplane (grouped by category here for clarity): + +### Basic + + + +### Player + +If `playerName` is provided, the following additional metrics are appended to the backplane, tracking the specified player's status: + + diff --git a/docs/reference/input/advanced-peripherals/RSBridge.md b/docs/reference/input/advanced-peripherals/RSBridge.md new file mode 100644 index 0000000..36e70ad --- /dev/null +++ b/docs/reference/input/advanced-peripherals/RSBridge.md @@ -0,0 +1,60 @@ +--- +telem: + adapter: + id: 'rsBridge' + name: 'RS Bridge' + categories: '{ "basic", "energy", "storage" }' + requiresMod: 'Refined Storage' +--- + +# Advanced Peripherals RS Bridge Input + + + +### Basic + + + +### Energy + + + +### Storage + + + +## Storage + +Given an RS Bridge peripheral attached to a Refined Storage network with the following stored items and fluids: + +![Refined Storage Fluid Grid and Grid inventory](/assets/rs-inventory.webp) + +This appends the following metrics to the backplane: + + \ No newline at end of file diff --git a/docs/reference/input/advanced-peripherals/RedstoneIntegrator.md b/docs/reference/input/advanced-peripherals/RedstoneIntegrator.md new file mode 100644 index 0000000..c235f7d --- /dev/null +++ b/docs/reference/input/advanced-peripherals/RedstoneIntegrator.md @@ -0,0 +1,80 @@ +# Advanced Peripherals Redstone Integrator Input + +```lua +telem.input.advancedPeripherals.redstoneIntegrator ( + peripheralID: string, + categories?: string[] | '*', + sides?: string[] | '*' +) +``` + +::: warning Mod Dependencies +Requires **Advanced Peripherals**. +::: + +See the Usage section for a complete list of the metrics in each category. + + + + + + +## Usage + +```lua{4-7} +local telem = require 'telem' + +local backplane = telem.backplane() + :addInput( + 'my_redstoneIntegrator', + telem.input.advancedPeripherals.redstoneIntegrator('right', '*', '*') + ) + :cycleEvery(5)() +``` + +Given a Redstone Integrator peripheral on the `right` side of the computer, this appends the following metrics to the backplane (grouped by category here for clarity): + +### Basic + + diff --git a/docs/reference/input/advanced-peripherals/common/preamble.md b/docs/reference/input/advanced-peripherals/common/preamble.md new file mode 100644 index 0000000..c28cba0 --- /dev/null +++ b/docs/reference/input/advanced-peripherals/common/preamble.md @@ -0,0 +1,58 @@ +```lua-vue +telem.input.advancedPeripherals.{{ $frontmatter?.telem?.adapter?.id || 'ADAPTER.ID' }} ( + peripheralID: string, + categories?: string[] | '*' +) +``` + +::: warning Mod Dependencies + + +::: + +See the Usage section for a complete list of the metrics in each category. + + + + + +## Usage + +```lua-vue{4} +local telem = require 'telem' + +local backplane = telem.backplane() + :addInput('my_{{ $frontmatter?.telem?.adapter?.id || 'ADAPTER.ID' }}', telem.input.advancedPeripherals.{{ $frontmatter?.telem?.adapter?.id || 'ADAPTER.ID' }}('right', '*')) + :cycleEvery(5)() +``` + +Given a {{ $frontmatter?.telem?.adapter?.name || 'ADAPTER.NAME' }} peripheral on the `right` side of the computer, this appends the following metrics to the backplane (grouped by category here for clarity): \ No newline at end of file diff --git a/docs/reference/input/applied-energistics/MEStorage.md b/docs/reference/input/applied-energistics/MEStorage.md index 64c03bb..86a1c62 100644 --- a/docs/reference/input/applied-energistics/MEStorage.md +++ b/docs/reference/input/applied-energistics/MEStorage.md @@ -2,58 +2,12 @@ outline: deep --- -# Applied Energistics ME Storage Input +# Applied Energistics ME Storage Input ```lua telem.input.meStorage (peripheralID: string) ``` -::: warning Mod Dependencies -Requires **Applied Energistics 2** and **Advanced Peripherals**. -::: - -This adapter produces a metric for each item and fluid ID in an ME storage network, with the metric names being the IDs, and the value being the total amount of that item/fluid in storage. Peripheral must be an [Advanced Peripherals ME Bridge](https://docs.advanced-peripherals.de/peripherals/me_bridge/). - -Items that are craftable but not stored are not included in the metrics. - -## Usage - -```lua{4} -local telem = require 'telem' - -local backplane = telem.backplane() - :addInput('my_me', telem.input.meStorage('meBridge_0')) - :cycleEvery(1)() -``` - -Given an ME Bridge peripheral with the ID `meBridge_0` attached to an ME storage network with the following items and fluids: - -![Applied Energistics ME Terminal inventory](/assets/me-inventory.webp) - -This appends the following metrics to the backplane: - - \ No newline at end of file +::: danger Deprecated +This adapter is deprecated and will be removed in a future release. Use the [ME Bridge](/reference/input/advanced-peripherals/MEBridge) adapter instead. +::: \ No newline at end of file diff --git a/docs/reference/input/bigger-reactors/Reactor.md b/docs/reference/input/bigger-reactors/Reactor.md new file mode 100644 index 0000000..e11fb3d --- /dev/null +++ b/docs/reference/input/bigger-reactors/Reactor.md @@ -0,0 +1,87 @@ +--- +telem: + adapter: + id: 'reactor' + name: 'Reactor' + categories: '{ "basic", "fuel", "coolant", "energy", "formation" }' +--- + + + +# Bigger Reactors Reactor Input + + + +### Basic + + + +### Fuel + + + +### Coolant + +::: warning Active reactor only +Coolant metrics are only available for active reactors. +::: + + + +### Energy + +::: warning Passive reactor only +Energy metrics are only available for passive reactors. +::: + + + +### Formation + + \ No newline at end of file diff --git a/docs/reference/input/bigger-reactors/Turbine.md b/docs/reference/input/bigger-reactors/Turbine.md new file mode 100644 index 0000000..3d9dea9 --- /dev/null +++ b/docs/reference/input/bigger-reactors/Turbine.md @@ -0,0 +1,52 @@ +--- +telem: + adapter: + id: 'turbine' + name: 'Turbine' + categories: '{ "basic", "fluid", "energy" }' +--- + + + +# Bigger Reactors Turbine Input + + + +### Basic + + + +### Fluid + + + +### Energy + + \ No newline at end of file diff --git a/docs/reference/input/bigger-reactors/common/metrics.data.ts b/docs/reference/input/bigger-reactors/common/metrics.data.ts new file mode 100644 index 0000000..d42a4c9 --- /dev/null +++ b/docs/reference/input/bigger-reactors/common/metrics.data.ts @@ -0,0 +1,23 @@ +export default { + load() { + return { + generator: { + basic: [ + { name: 'production_rate', value: '0.0 - inf', unit: 'FE/t' } + ], + + energy: [ + { name: 'energy', value: '0.0 - inf', unit: 'FE' }, + { name: 'energy_capacity', value: '0.0 - inf', unit: 'FE' } + ] + }, + + genericMachine: { + basic: [ + { name: 'active', value: '0 or 1' }, + { name: 'connected', value: '0 or 1' } + ] + } + } + } +} \ No newline at end of file diff --git a/docs/reference/input/bigger-reactors/common/preamble.md b/docs/reference/input/bigger-reactors/common/preamble.md new file mode 100644 index 0000000..b3219dd --- /dev/null +++ b/docs/reference/input/bigger-reactors/common/preamble.md @@ -0,0 +1,49 @@ +```lua-vue +telem.input.biggerReactors.{{ $frontmatter?.telem?.adapter?.id || 'ADAPTER.ID' }} ( + peripheralID: string, + categories?: string[] | '*' +) +``` + +::: warning Mod Dependencies +Requires **Bigger Reactors**. +::: + +See the Usage section for a complete list of the metrics in each category. + + + + + +## Usage + +```lua-vue{4} +local telem = require 'telem' + +local backplane = telem.backplane() + :addInput('my_{{ $frontmatter?.telem?.adapter?.id || 'ADAPTER.ID' }}', telem.input.biggerReactors.{{ $frontmatter?.telem?.adapter?.id || 'ADAPTER.ID' }}('right', '*')) + :cycleEvery(5)() +``` + +Given a {{ $frontmatter?.telem?.adapter?.name || 'ADAPTER.NAME' }} peripheral on the `right` side of the computer, this appends the following metrics to the backplane (grouped by category here for clarity): \ No newline at end of file diff --git a/docs/reference/input/powah/EnergyCell.md b/docs/reference/input/powah/EnergyCell.md new file mode 100644 index 0000000..3ad3a7b --- /dev/null +++ b/docs/reference/input/powah/EnergyCell.md @@ -0,0 +1,24 @@ +--- +telem: + adapter: + id: 'energyCell' + name: 'Energy Cell' + categories: '{ "basic" }' +--- + + + +# Powah Energy Cell Input + + + +### Basic + + \ No newline at end of file diff --git a/docs/reference/input/powah/Furnator.md b/docs/reference/input/powah/Furnator.md new file mode 100644 index 0000000..e1cade4 --- /dev/null +++ b/docs/reference/input/powah/Furnator.md @@ -0,0 +1,26 @@ +--- +telem: + adapter: + id: 'furnator' + name: 'Furnator' + categories: '{ "basic" }' +--- + + + +# Powah Furnator Input + + + +### Basic + + \ No newline at end of file diff --git a/docs/reference/input/powah/Magmator.md b/docs/reference/input/powah/Magmator.md new file mode 100644 index 0000000..23d2ed2 --- /dev/null +++ b/docs/reference/input/powah/Magmator.md @@ -0,0 +1,27 @@ +--- +telem: + adapter: + id: 'magmator' + name: 'Magmator' + categories: '{ "basic" }' +--- + + + +# Powah Magmator Input + + + +### Basic + + \ No newline at end of file diff --git a/docs/reference/input/powah/Reactor.md b/docs/reference/input/powah/Reactor.md new file mode 100644 index 0000000..2aed521 --- /dev/null +++ b/docs/reference/input/powah/Reactor.md @@ -0,0 +1,29 @@ +--- +telem: + adapter: + id: 'reactor' + name: 'Reactor' + categories: '{ "basic" }' +--- + + + +# Powah Reactor Input + + + +### Basic + + \ No newline at end of file diff --git a/docs/reference/input/powah/SolarPanel.md b/docs/reference/input/powah/SolarPanel.md new file mode 100644 index 0000000..d96dd4a --- /dev/null +++ b/docs/reference/input/powah/SolarPanel.md @@ -0,0 +1,25 @@ +--- +telem: + adapter: + id: 'solarPanel' + name: 'Solar Panel' + categories: '{ "basic" }' +--- + + + +# Powah Solar Panel Input + + + +### Basic + + \ No newline at end of file diff --git a/docs/reference/input/powah/ThermoGenerator.md b/docs/reference/input/powah/ThermoGenerator.md new file mode 100644 index 0000000..889e14e --- /dev/null +++ b/docs/reference/input/powah/ThermoGenerator.md @@ -0,0 +1,25 @@ +--- +telem: + adapter: + id: 'thermoGenerator' + name: 'Thermo Generator' + categories: '{ "basic" }' +--- + + + +# Powah Thermo Generator Input + + + +### Basic + + \ No newline at end of file diff --git a/docs/reference/input/powah/common/metrics.data.ts b/docs/reference/input/powah/common/metrics.data.ts new file mode 100644 index 0000000..9e685d3 --- /dev/null +++ b/docs/reference/input/powah/common/metrics.data.ts @@ -0,0 +1,12 @@ +export default { + load() { + return { + energy: { + basic: [ + { name: 'energy', value: '0.0 - inf', unit: 'FE' }, + { name: 'max_energy', value: '0.0 - inf', unit: 'FE' } + ] + }, + } + } +} \ No newline at end of file diff --git a/docs/reference/input/powah/common/preamble.md b/docs/reference/input/powah/common/preamble.md new file mode 100644 index 0000000..53065ac --- /dev/null +++ b/docs/reference/input/powah/common/preamble.md @@ -0,0 +1,49 @@ +```lua-vue +telem.input.powah.{{ $frontmatter?.telem?.adapter?.id || 'ADAPTER.ID' }} ( + peripheralID: string, + categories?: string[] | '*' +) +``` + +::: warning Mod Dependencies +Requires **Minecraft 1.19.2** and **Advanced Peripherals**. +::: + +See the Usage section for a complete list of the metrics in each category. + + + + + +## Usage + +```lua-vue{4} +local telem = require 'telem' + +local backplane = telem.backplane() + :addInput('my_{{ $frontmatter?.telem?.adapter?.id || 'ADAPTER.ID' }}', telem.input.powah.{{ $frontmatter?.telem?.adapter?.id || 'ADAPTER.ID' }}('right', '*')) + :cycleEvery(5)() +``` + +Given a {{ $frontmatter?.telem?.adapter?.name || 'ADAPTER.NAME' }} peripheral on the `right` side of the computer, this appends the following metrics to the backplane (grouped by category here for clarity): \ No newline at end of file diff --git a/docs/reference/input/refined-storage/RefinedStorage.md b/docs/reference/input/refined-storage/RefinedStorage.md index 1b48f84..fa5609d 100644 --- a/docs/reference/input/refined-storage/RefinedStorage.md +++ b/docs/reference/input/refined-storage/RefinedStorage.md @@ -2,58 +2,12 @@ outline: deep --- -# Refined Storage Input +# Refined Storage Input ```lua telem.input.refinedStorage (peripheralID: string) ``` -::: warning Mod Dependencies -Requires **Refined Storage** and **Advanced Peripherals**. -::: - -This adapter produces a metric for each item and fluid ID in a Refined Storage network, with the metric names being the IDs, and the value being the total amount of that item/fluid in storage. Peripheral must be an [Advanced Peripherals RS Bridge](https://docs.advanced-peripherals.de/peripherals/rs_bridge/). - -Items that are craftable but not stored are not included in the metrics. - -## Usage - -```lua -local telem = require 'telem' - -local backplane = telem.backplane() - :addInput('my_refined', telem.input.refinedStorage('rsBridge_0')) - :cycleEvery(1)() -``` - -Given an RS Bridge peripheral with the ID `rsBridge_0` attached to a Refined Storage network with the following items and fluids: - -![Refined Storage Fluid Grid and Grid inventory](/assets/rs-inventory.webp) - -This appends the following metrics to the backplane: - - \ No newline at end of file +::: danger Deprecated +This adapter is deprecated and will be removed in a future release. Use the [RS Bridge](/reference/input/advanced-peripherals/RSBridge) adapter instead. +::: \ No newline at end of file diff --git a/src/telem/lib/input/advancedPeripherals/EnvironmentDetectorInputAdapter.lua b/src/telem/lib/input/advancedPeripherals/EnvironmentDetectorInputAdapter.lua index 84410a8..b917ca4 100644 --- a/src/telem/lib/input/advancedPeripherals/EnvironmentDetectorInputAdapter.lua +++ b/src/telem/lib/input/advancedPeripherals/EnvironmentDetectorInputAdapter.lua @@ -9,17 +9,17 @@ function EnvironmentDetectorInputAdapter:beforeRegister (peripheralName, categor self.queries = { basic = { - block_light_level = fn():call('getBlockLightLevel'), - day_light_level = fn():call('getDayLightLevel'), - sky_light_level = fn():call('getSkyLightLevel'), - moon_id = fn():call('getMoonId'), - time = fn():call('getTime'), - radiation = fn():call('getRadiationRaw'):with('unit', 'Sv/h'), - can_sleep = fn():call('canSleepHere'):toFlag(), - raining = fn():call('isRaining'):toFlag(), - sunny = fn():call('isSunny'):toFlag(), - thundering = fn():call('isThunder'):toFlag(), - slime_chunk = fn():call('isSlimeChunk'):toFlag(), + block_light_level = fn():call('getBlockLightLevel'), + day_light_level = fn():call('getDayLightLevel'), + sky_light_level = fn():call('getSkyLightLevel'), + moon_id = fn():call('getMoonId'), + time = fn():call('getTime'), + radiation = fn():call('getRadiationRaw'):with('unit', 'Sv/h'), + can_sleep = fn():call('canSleepHere'):toFlag(), + raining = fn():call('isRaining'):toFlag(), + sunny = fn():call('isSunny'):toFlag(), + thundering = fn():call('isThunder'):toFlag(), + slime_chunk = fn():call('isSlimeChunk'):toFlag(), }, } diff --git a/src/telem/lib/input/advancedPeripherals/GeoScannerInputAdapter.lua b/src/telem/lib/input/advancedPeripherals/GeoScannerInputAdapter.lua index 4cf6ee1..bb542a8 100644 --- a/src/telem/lib/input/advancedPeripherals/GeoScannerInputAdapter.lua +++ b/src/telem/lib/input/advancedPeripherals/GeoScannerInputAdapter.lua @@ -12,6 +12,7 @@ function GeoScannerInputAdapter:beforeRegister (peripheralName, categories) basic = {}, } + -- TODO no unit? intentional?? meh??? self.storageQueries = { fn():callElse('chunkAnalyze', {}) :map(function (k, v) return Metric{ name = k, value = v } end) diff --git a/src/telem/lib/input/advancedPeripherals/MEBridgeInputAdapter.lua b/src/telem/lib/input/advancedPeripherals/MEBridgeInputAdapter.lua index be53137..6306535 100644 --- a/src/telem/lib/input/advancedPeripherals/MEBridgeInputAdapter.lua +++ b/src/telem/lib/input/advancedPeripherals/MEBridgeInputAdapter.lua @@ -27,6 +27,8 @@ function MEBridgeInputAdapter:beforeRegister (peripheralName, categories) }, } + -- TODO gas storage metrics? + -- getCraftingCPUs -- listCraftableItems -- listCraftableFluid