DietPi icon indicating copy to clipboard operation
DietPi copied to clipboard

DietPi-Software/DietPi-Services | Machine readable output format (DietPi-Dashboard)

Open nonnorm opened this issue 3 years ago • 0 comments

Creating a feature request

Is your feature request related to a problem? Please describe:

  • DietPi-Dashboard is currently parsing the list and status outputs of DietPi-Software and DietPi-Services. However, these seem to be more geared to human consumption. It would be great if there was a more machine-readable format for those subcommands.

Describe the solution you'd like:

  • A established format, like JSON, isn't required, but something with standard separators, less unneeded data, and no color would be useful.

Describe alternatives you've considered:

  • This isn't required soon, parsing the human-readable output works fine as well. However, this would greatly simplify code and complexity on the DietPi-Dashboard end.

Additional context

Possible formats

  • DietPi-Software:
197 DISABLED|0|Box64|x86_64 userspace emulation|+Build-Essential|https://dietpi.com/docs/software/gaming/#box64
198|0|File Browser|web based file manager||https://dietpi.com/docs/software/cloud/#filebrowser
199|0|Spotifyd|Open source Spotify client running as UNIX daemon|+ALSA|https://dietpi.com/docs/software/media/#spotifyd
200|2|DietPi-Dashboard (beta)|Official lightweight DietPi web interface (Rust)||https://dietpi.com/docs/software/system_stats/#dietpi-dashboard
  • DietPi-Services:
dropbear|active|Thu 2022-06-02 16:01:15 BST; 1 day 1h ago
dietpi-vpn|failed|
Jun 03 17:28:58 DietPi systemd[1]: Starting VPN Client (DietPi)...
Jun 03 17:28:58 DietPi systemd[4279]: dietpi-vpn.service: Failed to locate executable /usr/sbin/openvpn: No such file or directory
Jun 03 17:28:58 DietPi systemd[4279]: dietpi-vpn.service: Failed at step EXEC spawning /usr/sbin/openvpn: No such file or directory
Jun 03 17:28:58 DietPi systemd[1]: dietpi-vpn.service: Main process exited, code=exited, status=203/EXEC
Jun 03 17:28:58 DietPi systemd[1]: dietpi-vpn.service: Failed with result 'exit-code'.
Jun 03 17:28:58 DietPi systemd[1]: Failed to start VPN Client (DietPi).
dietpi-ramlog|active|Thu 2022-06-02 16:01:15 BST; 1 day 1h ago
dietpi-cloudshell|inactive|

Obviously these aren't the required formats, just something similar and easier to parse than the current format.

nonnorm avatar Jun 03 '22 16:06 nonnorm