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

New iot menu or even default shell as user menu evtl. in python #89

Open
ulno opened this issue Apr 21, 2024 · 3 comments
Open

New iot menu or even default shell as user menu evtl. in python #89

ulno opened this issue Apr 21, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@ulno
Copy link
Contributor

ulno commented Apr 21, 2024

The iot menu is quite popular, so we should think if we could do everything command line based with it (maybe offer simple shell escape right on front page).
I also don't like that it is written in java script. There exists a prototype in python using prompt_toolkit in bin - after adding prompt_toolkit with pip install prompt_toolkit (inside of the it environment), you can test it with:

cd "$HOME/iot/bin"
python user_menu-python.py

However it was once very slow on the pi, should be tested on pi and pi zero.

Maybe also consider switch to textual (https://github.com/Textualize/textual) or something golang (https://github.com/rivo/tview) based?

This should probably lead to a new general TUI (text UI) affecting all commands.

@ulno
Copy link
Contributor Author

ulno commented Apr 21, 2024

estimate [ulno]: 160h

@ulno ulno added the enhancement New feature or request label Apr 21, 2024
@mbz4
Copy link
Collaborator

mbz4 commented Apr 22, 2024

https://github.com/Textualize/textual looks promising!
image
Feels almost like a full docs page running in the CLI - in fact Textual references Frogmouth for visualising markdown from terminal in addition with directly mentioning SBC friendliness.
So, it might replace/mirror web_starter?
Two things to ensure are in sync + man pages using the same .rst docs.
Guess it might be something like: punch in iot then this textual/frogmouth page pops up in terminal, simultaneously starting mqtt & web_starter, but also showing both indicated started (like a dashboard)?

@stenoe
Copy link
Collaborator

stenoe commented Apr 22, 2024

There are also some options in Go available like tview or something like BubbleTea. Go can be an asset if there is need for fast and lean executables, it can crosscompile for numerous platforms including Pi's and Pi zeros etc. and no need for python libs install.

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
Status: Todo 📝
Development

No branches or pull requests

5 participants