Closed BClark09 closed 6 years ago
Good idea. Above "User Groups" maybe add "User"? How about the URL of the openHAB dashboard, uses might change the http port and forget about that.
So something like this:
user@server:~ $ openhab-cli info
Version: 2.2.0-SNAPSHOT (#1051)
User: openhab (Active Process 18965)
User Groups: openhab tty dialout
Directories: Folder Name | Path | User:Group
----------- | ---- | ----------
OPENHAB_HOME | /usr/share/openhab2 | openhab:openhab
OPENHAB_RUNTIME | /usr/share/openhab2/runtime | openhab:openhab
OPENHAB_USERDATA | /var/lib/openhab2 | openhab:openhab
OPENHAB_CONF | /etc/openhab2 | openhab:openhab
OPENHAB_LOGDIR | /var/log/openhab2 | openhab:openhab
OPENHAB_BACKUPS | /var/lib/openhab2/backups | openhab:openhab
Dashboard URLS: http://192.168.0.10:8080
https://192.168.0.10:8443
Looks good. What's the use case for the active process number?
In openHABian I'm already showing a few of these details. In the URL I'm using the hostname (I know that it can be less ideal in some scenarios).
The user might be different depending on how openHAB was started. So in priority order I search for the user by:
I'll put up a PR to show what I've done in a bit.
A command that can be used for quick diagnostic information should be added to the CLI:
@ThomDietrich, can you think of any other stat that may be useful here?