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

getStorageSize()/getUsedStorage() functions for OC or Detector mode #2313

Closed
LordMZTE opened this issue Sep 11, 2019 · 1 comment
Closed
Labels
crossmod enhancement New feature or request

Comments

@LordMZTE
Copy link

These functions would return the total amount of storage available in the network and the total used storage in the network, it might also be helpful to have an optional argument that will limit them to a certain type of storage (drive/external), that could be useful as with some external inventories (such as the drawer controller), the available storage doesn't get read correctly.

It could be very useful for things like quarries made with frames such as the ones from funky locomotion so that it would stop once there isn't any more space in the system to prevent it from breaking.

This could also be implemented as a mode to the Detector so that it will emit a signal if there is less then a certain amount of space.

@Darkere
Copy link
Collaborator

Darkere commented Sep 11, 2019

The integration already has these two functions that can be used to calculate this.
getItems():table | Gets a list of all items in this network.
getStorages():table | Gets a list of all connected storage disks and blocks in this network.

Comparator support like requested in #972 makes more sense than adding more functionality to the detector.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
crossmod enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants