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

Some fixes for location and add location cache #12

Merged
merged 3 commits into from
Feb 20, 2024

Conversation

MrKevinWeiss
Copy link
Contributor

In preparation for the power control (not a simple thing with the current structure), I am adding some location caching that allows the current locations to be saved.

It is just a mapping from id, location state, and usb id_path. With this info it should not be hard to find out node info or location info stored in the config files.

Since powering on devices takes a while ~10 seconds to fully enumerate, we will need this in order to do quick checks or inventory polls. The only issue would be removing or adding a board should be followed with an update. The boards that are used would be powered anyways and can be determined by the lockfiles.

@MrKevinWeiss
Copy link
Contributor Author

I had to run the CI manually due to inactivity but it passed... I can probably simplify the fake board output even more since we don't ever search for basic usb subtypes anymore but for now it is fine. Likely many changes will be coming up.

@MrKevinWeiss MrKevinWeiss merged commit fa46abd into master Feb 20, 2024
4 checks passed
@MrKevinWeiss MrKevinWeiss deleted the pr/location_improvements branch February 20, 2024 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant