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

Basic Frontend #26

Closed
JarvyJ opened this issue Aug 20, 2021 · 11 comments
Closed

Basic Frontend #26

JarvyJ opened this issue Aug 20, 2021 · 11 comments
Labels
enhancement New feature or request
Milestone

Comments

@JarvyJ
Copy link
Owner

JarvyJ commented Aug 20, 2021

I've been thinking about creating a frontend so people can more easily make modifications to their customizations (and maybe default configs?!).

I might end up changing the deployment strat again if it happens, but we shall see how that goes!

@JarvyJ JarvyJ added the enhancement New feature or request label Aug 20, 2021
@JarvyJ
Copy link
Owner Author

JarvyJ commented Aug 23, 2021

It would also be really nice if you could see the logs from the different Rhasspy processes within the UI. I feel like it'll act a bit more like a separate process. We shall see what happens.

@JarvyJ JarvyJ added this to the 2021.10.0b1 milestone Aug 27, 2021
@JarvyJ
Copy link
Owner Author

JarvyJ commented Aug 28, 2021

Another idea is using the frontend as a satellite. So you could launch the site, go to a page, and start talking. Ideally being able to bookmark the page on mobile to quick launch and ask to do something. This idea will probably come to fruition a bit later.

@JarvyJ
Copy link
Owner Author

JarvyJ commented Aug 28, 2021

Also it would be super great if you could select the microphone/sounds device from the UI. Maybe on first setup (or a settings page) have an interactive mic/sound setup.

@JarvyJ
Copy link
Owner Author

JarvyJ commented Sep 4, 2021

Some of the design work has been started in the "frontend" branch. There's still a lot more to do!

@JarvyJ
Copy link
Owner Author

JarvyJ commented Sep 9, 2021

Got some settings pages mocked up for now and have added a multistage Docker build to get the docs/frontend built to be served! I'm going to work on actually getting the settings working soon!

The last "deployment" question is trying to run both the frontend and the intent handler. I'm thinking about rolling my own systemd config that just launches both (and keeps them running). Hopefully that isn't too hard to figure out!

@JarvyJ
Copy link
Owner Author

JarvyJ commented Sep 15, 2021

Making progress on this slowly, but surely!

image

It actually pulls in the settings from /config/config.yaml and I'm working on getting it to save correctly. From there it's figuring out deployment and restarts. Moving forward!

@JarvyJ
Copy link
Owner Author

JarvyJ commented Sep 18, 2021

The save functionality seems to work! I was working on getting the main Home Intent settings page mostly working.
image

You can test out the speaker (which will hopefully continue to work when it's deployed), play the sound effects, upload new ones, and select your speaker/microphone from the dropdown. Still need to get the mic test in. Likely in the next PR. and then deployments and auto-process restarting.

@JarvyJ
Copy link
Owner Author

JarvyJ commented Sep 22, 2021

Definitely did this a little out of order. Deployment is in as well as process handling (using supervisord) for now. I also have a "Live Logs" page that streams in logs which is really nice for debugging purposes.

image
^ a pic from the early version where the logs fist started streaming. There's been a bit of polish since then!

Still need to get the mic test working and then maybe create a util folder instead of a symlink for the rhasspy_api file...

@JarvyJ
Copy link
Owner Author

JarvyJ commented Sep 28, 2021

We now have a working reset button and push some of the restart status to the frontend!

@JarvyJ
Copy link
Owner Author

JarvyJ commented Sep 28, 2021

Cleaned up some of the tailwind stuff to always look good, and got it mostly ready if I ever wanted to make a light theme (#102). Added the ability to test mics to the frontend. I think the first iteration of this is coming to a close! I'll do some testing and see how it goes!

I'll break out some of the other ideas into their own issues, so we can close this one, but keep things rolling.

@JarvyJ
Copy link
Owner Author

JarvyJ commented Sep 30, 2021

Did some initial testing and got everything working in the container! This is done as of 1de651f

All other ideas that didn't quite make it in this release are now in their own issues. Going to do some more testing on the Pi and see what happens!

@JarvyJ JarvyJ closed this as completed Sep 30, 2021
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