diff --git a/config.js b/config.js new file mode 100644 index 0000000..6fe961d --- /dev/null +++ b/config.js @@ -0,0 +1,19 @@ +// config.js +// Zentrale Konfiguration: hier nur Datenpunkte/Zuordnungen pflegen, keine Logik. + +window.LCARS_CONFIG = { + // ioBroker Socket.IO / Web-Adapter URL (Basis) + socketUrl: "http://10.0.1.122:8084", + + // Optional: namespace für getStates / setState (ioBroker Web API Pfad-Varianten unterscheiden sich je Setup) + // Wenn dein Setup ohne funktioniert, lass es so. + api: { + getStatesPath: "/getStates", + setStatePath: "/setState" + }, + + // Anzeigeformat (klassisch: konsistent, ohne Überraschungen) + format: { + decimalsDefault: 1 + } +}; \ No newline at end of file