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

Migrate boot screen from v1 #197

Closed
zaibon opened this issue Aug 22, 2019 · 2 comments
Closed

Migrate boot screen from v1 #197

zaibon opened this issue Aug 22, 2019 · 2 comments
Assignees
Labels
type_feature New feature or request
Milestone

Comments

@zaibon
Copy link
Contributor

zaibon commented Aug 22, 2019

Even though the node is unreachable for anyone, we still want to print some useful information when a screen is connected to a node.

If no one as objection, we can just migrate the tool we use in the v1 to create this screen. Let's just define what we want to show.

@zaibon zaibon added type_feature New feature or request priority_minor labels Aug 22, 2019
@zaibon zaibon added this to the later milestone Aug 22, 2019
@muhamadazmy
Copy link
Member

I have some objects:

  • The UI was built into core0 (pid 1) of v1
  • We didn't any use any terminal libraries so it was kinda hard to setup the layout, add, or edit the layout or add new information. I built it from scratch by drawing directly in the terminal.
  • The new version UI must run as a separate daemon (basically like how X11 runs) and then add different widgets that shows stats from separate parts, hence we need to know what to monitor, and how is it going to be monitored, what meterics is important to us, etc...
  • we should definitely use this (https://github.com/gizak/termui)

@zaibon
Copy link
Contributor Author

zaibon commented Aug 22, 2019

and then add different widgets that shows stats from separate parts, hence we need to know what to monitor, and how is it going to be monitored, what meterics is important to us, etc...

I think we can be generic about that. We define an interface that any module that wants to show something on the boot screen needs to implement, and the UI daemon just loop over all modules and get the data

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type_feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants