-
-
Notifications
You must be signed in to change notification settings - Fork 495
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
DietPi-Software | Web Dashboard for DietPi #448
Comments
brainstorming..... this can probably be done with python. Couchpotato and NzbHydra use python and have decent simple web interfaces. But, so does netdata and it's written in C. |
I plan on taking a stab at this with Python/Flask. |
Excellent 👍 We will need to change alot of the DietPi code to truly accommodate the web dashboard, but either myself or @rhkean can do this alongside @tr0yspradling's work. |
YMPD is also written in C: https://github.com/notandy/ympd
|
Great idea. I think that the system will benefit more if it's designed extensible from the start, so it can be tailored for custom system commands or headless operation (ie one button remote system shutdown/restart, modules commands -ie minidlna db rescan-, etc) |
Yep, ideally i'd like a system where users can either use the web dash, or, terminal for all DietPi features. I recently added code that allows for automated command line installations:
But I/we will need help with this, I can do the bash/unix side, but i lack the skills for the web side. |
terrific idea. The trick, I think, will come in finding a way to do this that maintains the small footprint that is at the heart of DietPi |
Ideally it should just be a different UI for using the existing installation / config scripts, with the ability to add user scripts / commands / recipes somehow (to avoid reinventing the wheel and having to reimplement the current / tuned dietpi-* specific scripts). |
I've created DietPi-Dashboard. It's a skeleton project at the moment, but I'll have some progress up soon. I've decided to use CherryPy instead of Flask, but I'm curious, should we reverse proxy through NGINX or use the standalone server with CherryPy? |
That was quick, looking forward to seeing it progress 👍
I would prefer it didn't required a webserver, self contained in a standalone server would be ideal. |
Yep. |
Right now I'm working on syncing live system information with python-socketio and displaying it with Chart.js. Once I finish that, I'm going to add process & software package management. |
Hi, are where any news? Thanks. |
I'll be updating the repository tonight. I'll post back here when I do. |
I haven't been able to get as much done as I hoped, I had another project taking up most of my time. Check out DietPi-Dashboard to see what's there. It needs cleaned up and reorganized a little, some of the major features aren't implemented yet. |
No worries 👍
I'am a bit of a Python "n00b" (Its like reading an Alien language for me, with a few English letters and numbers in-between lol) , but i'll give it a whirl, |
Notes: Quick install deps and run:
@tr0yspradling Expected?
|
The application depends on several python packages. The python package index can be installed with I'm creating a virtualenv and startup script for it now. I'll update when I've finished my modifications. |
Check DietPi-Dashboard. Executing |
Tried on my test rig (Odroid C2, ARM64):
I'll power up a RPi and try it. |
I'll have to go through and check the supported architectures for each supported platform. I didn't think of that. I should have done this from the start, but I'll go through and pull the data from the special file: |
We should start reporting issues to the dashboard repository so it's more organized. |
Good call 👍 |
Absolutely. Check your email! |
I just recently noticed that happening a couple times as well. I'll try to pin it down. |
@Joulinar, just pushed a change that, for me, fixes that problem. It also brings CPU usage on most pages from ~100% (spinning loop), to 0%! |
This should make testing a bit easier, CI will now build binaries after every commit. See the updated README for downloading instructions. |
ahh cool. Quite easy to install the |
@MichaIng, just added config file with port and TLS support. |
+ CHANGELOG | Thanks to @ravenclaw900, we are priod to announce our own official DietPi web interface for monitoring and managing your DietPi system. It is still in beta phase, as we are testing and implementing more features gradually, but we are happy if you would give it a try, "dietpi-software install 200", and give us feedback: #448
Could you test the binaries linked against the |
Hmm, when downloading these artifacts via curl, I get a 404, when using wget, a 400, same when I use the final URL that is redirected to. Via browser it works well, but I'm too lazy to install desktop + browser on all test systems. Any idea how those can be downloaded from command line? 🤔 |
It requires you to be logged in with a GitHub account. You could use the nightly.link: https://nightly.link/ravenclaw900/DietPi-Dashboard/actions/runs/1427621051. (https://nightly.link/ravenclaw900/DietPi-Dashboard/actions/runs/1427621051/dietpi-dashboard-amd64.zip for amd64 direct download). |
These work, thanks. Indeed these use only about 60% of memory 👍. They do not seem to cause any issues. Everything that works with the |
+ DietPi-Software | DietPi-Dashboard: Thanks to the great work of @ravenclaw900, we are proud to announce our own official DietPi web interface for monitoring and managing your DietPi system using your web browser. It is still in beta phase as we test and gradually implement more features. We would be happy if you would try it out via "dietpi-software install 200" and give us feedback: #448 + DietPi-Services | When printing the status, instead of removing a hardcoded number of 11 characters from the start of the line, remove the first field and delimiter. The number of leading spaces has changed with Bullseye, so that the colon of "Active:" was shown unintentionally.
Tried out the Stable release in 7.8 Beta and this is really great! Some remarks: Just had about 15min to look at it so could not deep dive into it. |
Known issue and fixed with next beta, which I will push in 1-2 hours: ravenclaw900/DietPi-Dashboard#19
I suppose this is as navigating to Terminal currently stops the service. Here a manual fix btw: cat << '_EOF_' > /etc/systemd/system/dietpi-dashboard.service
[Unit]
Description=Web Dashboard (DietPi)
Wants=network-online.target
After=network-online.target
[Service]
ExecStart=/opt/dietpi-dashboard/dietpi-dashboard
StandardInput=tty
TTYPath=/dev/tty42
StandardOutput=journal
[Install]
WantedBy=multi-user.target
_EOF_
systemctl daemon-reload
systemctl restart dietpi-dashboard
Indeed needed IMO. My idea was to keep it simple and use password protection only (no user management): ravenclaw900/DietPi-Dashboard#11
Jep, a documentation is required: MichaIng/DietPi-Docs#610 Update should be done via
Good idea. As of my preference for dark modes, @ravenclaw900 was so kind to make realise this: #448 (comment) Since this issue will be closed with the release, it would be great if you guys could check for requests/issues on the actual dashboard repository, and if not existing yet, report it there: https://github.com/ravenclaw900/DietPi-Dashboard/issues |
I installed the dashboard, but I much prefer these colors to the current "dietpi"-esque theme, . I imagine ravenclaw900/DietPi-Dashboard#29 is fixing that? Another idea that may be out of scope to this project is doing regular SMART checking of hard drives. Could require an extension to dietpi_drive-manager. |
Jep, the linked request is about this at least. Though no ETA when we will address it. SMART data is indeed an interesting idea, probably to show on the Management page. Since not all drives support SMART, I'd implement it as optional, e.g. using |
I'll mark this issue as closed now. Please do reports/requests at the dedicated repository from now on: https://github.com/ravenclaw900/DietPi-Dashboard/issues |
ADMIN EDIT
Dashboard is available for testing, see https://github.com/ravenclaw900/DietPi-Dashboard#installation for instructions.
Base:
Main DietPi programs for web implementation:
Additional features:
The text was updated successfully, but these errors were encountered: