victronenergy / venus

Victron Energy Unix/Linux OS
https://github.com/victronenergy/venus/wiki
543 stars 69 forks source link

Change settings around VRM / ssh tunnel / remote access #1255

Open wiebeytec opened 2 months ago

wiebeytec commented 2 months ago

Current situation

The ssh tunnel for access to local services is started when:

The problem is that remote Node-RED and Signal K also needs this tunnel, but there is no 'Node RED on VRM' option. It currently just says in the GUI: "Access node-RED via http://venus.local:1881 and via VRM". But via VRM only works if the ssh tunnel is on, so only when 'remote support' or 'remote console on VRM' is enabled.

Desired situation

TODO

VRM logger

venus-html5-app

javascript-vnc-client

gui-v2

Others

done

mpvader commented 2 months ago

The following would be taking it a bit wider, but how about we change the Logging to VRM setting (vrmlogger on/off) into a setting with three options. Name of the setting is VRM Portal. Options are:

  1. Off
  2. Read only. (vrmlogger is enabled, but gui-v1 and gui-v2 don't work remotely, and remote access over MQTT isn't available either)
  3. Full access (default) (MQTT + the option for ssh tunnel)

The VRM two way communication setting, as well as the Remote console on VRM setting can then be removed. What we accomplish then is one setting less.

Resulting settings:

Services that are influenced:

(edited by Wiebe, finishing the thought)

mpvader commented 2 months ago

As discussed today, @jhofstee & @jepefe will review the idea and if they agree we go for this.