-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Config UI: visualize Modbusproxy #24015
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
base: master
Are you sure you want to change the base?
Conversation
| > | ||
| <input | ||
| id="networkConnectionURI" | ||
| v-model="connection.Settings.URI" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| v-model="connection.Settings.URI" | |
| v-model="connection.settings.uri" |
Lower case. See other published structures.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Die anderen Felder (Port, ReadOnly) sind aber auch Upper Case:
Oder geht es darum, dass Settings wiederum ein Objekt enthält und deshalb klein zu schreiben ist?
evcc/api/globalconfig/types.go
Lines 59 to 60 in 180145e
| Port int | |
| ReadOnly string `yaml:",omitempty" json:",omitempty"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
generell published wir die Werte immer camelCase (bspw. json:readOnly). Siehe bspw. hier https://github.com/evcc-io/evcc/blob/master/api/globalconfig/types.go#L155C1-L156C1
|
Didn't knew about the Switch and |
Give it a try. The logic is non-trivial, but currently I dont see a reason why this should be different here. |
| type: String as PropType<MODBUS_PROXY_READONLY>, | ||
| default: MODBUS_PROXY_READONLY.DENY, | ||
| }, | ||
| isProxy: Boolean, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Find ich keine gute Idee. Die innere Komponente sollte nichts vom äußeren Kontext wissen müssen. Dann zieh das readonly lieber raus: Komposition.
Host+Port find ich generell besser in zwei Feldern. Lass uns das im Modbus Proxy Kontext einfach transparent zerlegen bzw wieder zusammenbauen split(":").
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Die innere Komponente sollte nichts vom äußeren Kontext wissen müssen.
Inwiefern passiert das hier?
Dann zieh das readonly lieber raus
Dann haben wir wieder ein Kuddelmuddel, was die ModbusFormRows angeht.
Host+Port find ich generell besser in zwei Feldern
Das führt dazu, dass auf kleinen Bildschirmen zweimal ein Port-FormRow angezeigt wird. Auch nicht schön, finde ich.
|
Also wenn man bei den Begrifflichkeiten korrekt sein will... Die abfragende Instanz ist der Master. Und da es nur einen Master geben kann gibt es Proxies. Das abgefragte Gerät ist demnach der Slave. Mit Client und Device (oder Server) kann ich auch gut. Aber dass in dem ASCII Diagramm das abefragte Gerät der Client ist, finde ich befremdlich. |
https://www.modbus.org/news/modbus-organization-replaces-master-slave-with-client-server Der Client im ASCII ist der externe client welcher dann mit dem evcc Server (Proxy) eine Verbindung aufbaut. Daher würde ich schon sagen, dass das so gut passt |
… into config-ui/modbusproxy
|
@naltatis This is the current state of the UI. It is not yet finalized and only works on large screens.
(Please do not discuss the terminology. This is only about the UI.) |
|
@Maschga Looks good.
|
|
Thank you for your feedback.
Feel free to rearrange the entire UI. |
|
@naltatis No pressure, but it would be great if you could review the UI when you get a chance. |




🖼 visualize modbusproxy section
💪 use TypeScript
TODO:
\cc @naltatis