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

Have piglet persist config in a file #623

Open
andrewdavidmackenzie opened this issue Nov 17, 2024 · 2 comments
Open

Have piglet persist config in a file #623

andrewdavidmackenzie opened this issue Nov 17, 2024 · 2 comments
Labels
enhancement New feature or request
Milestone

Comments

@andrewdavidmackenzie
Copy link
Owner

when a config is sent to a piglet, but then power cycles or it is rebooted, or piglet app restarts for any reason, then the config is lost and it will restart with no config and not do anything to GPIO hardware.

When the config is sent over network, persist it to a file, that is checked for on every start as the default config.... so if it restarts for some reason the same config will be reapplied and we continue where we left off.

@andrewdavidmackenzie
Copy link
Owner Author

It should probably respond with the config when connected to also, so that the UI reflects the actual state :-/

@andrewdavidmackenzie
Copy link
Owner Author

This should persist each and every config change sent to it also... so maybe store each pin config separately with a different key in the ekv?

Then a config can simply be broken down and each pin stored separately.

@andrewdavidmackenzie andrewdavidmackenzie added the enhancement New feature or request label Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant