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

feat: config ui #103

Merged
merged 22 commits into from
Feb 6, 2024
Merged

feat: config ui #103

merged 22 commits into from
Feb 6, 2024

Conversation

Julusian
Copy link
Member

@Julusian Julusian commented Nov 12, 2023

Replaces #82
Replaces #84
Replaces #95
Fixes #45

The rest api will now serve a web interface for configuration.
image

The tray has been simplified, as the same interface is hosted in an electron window too
image
image
This works with the api disabled

The styling of this page is a bit crude, I expect it will be refined over time.

The config file has now moved with this, in the existing pi images it appears that satellite is unable to write to the config file, so it is a bit broken..
Instead the json file has been put into the user folder. The existing file in the boot partition is preserved and is read at launch of satellite to update the config json before the main app launch. After it is read, it is reset back to a default state. This will allow users to keep the same manual edit flow, without forcing them to edit a json file correctly, and avoiding the permission issues (we can run that pre-step as root)

TODO:

  • review config file structure. Could it be tidied without breaking existing electron installations?
  • migration script for converting existing pi config to json
  • readme to live next to the pi config
  • script to generate the config json to bake into the pi image
  • refine styling of configuration page?

@Julusian Julusian marked this pull request as ready for review February 6, 2024 00:17
@Julusian Julusian merged commit 2074eac into master Feb 6, 2024
4 of 5 checks passed
@Julusian Julusian deleted the feat/config-as-json-and-webui branch February 6, 2024 00:20
@Julusian Julusian mentioned this pull request Feb 6, 2024
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.

Web Server Configuration Pi Version
1 participant