Hi Jerome,
I do not quite understand the using of the tokens (when) and if necessary how to create.
I have running two Pi’s (OH2 + OH3), with settings.json in the ".vscode-Folder)
The settings.json for OH2-Pi is:
{
"openhab.languageserver.remoteEnabled": true,
"openhab.languageserver.remotePort": 5007,
"openhab.connection.host": "192.168.178.xx",
"openhab.connection.port": 8080,
"openhab.useRestApi": true,
"openhab.connection.basicAuth.username": ""
}
The settings.json for OH3-Pi looks like:
{
"openhab.connection.host": "192.168.178.yy",
"openhab.connection.port": 8080,
"openhab.languageserver.remoteEnabled": true,
"openhab.languageserver.remotePort": 5007,
// "openhab.sitemapPreviewUI": "basicui",
"openhab.useRestApi": true,
"openhab.connection.basicAuth.password": "sagichnicht",
"openhab.connection.basicAuth.username": "weissichnicht"
}
and a “Default-settings.json” on my Windows-Machine:
{
"openhab.languageserver.remoteEnabled": true,
"openhab.languageserver.remotePort": 5007,
"openhab.connection.host": "192.168.178.xx",
"openhab.connection.port": 8080,
"openhab.useRestApi": true,
"window.zoomLevel": 0,
"editor.fontSize": 12,
"editor.renderWhitespace": "none",
"editor.renderControlCharacters": true,
"breadcrumbs.enabled": true,
"workbench.startupEditor": "newUntitledFile",
"editor.minimap.enabled": false,
"workbench.statusBar.visible": true,
"workbench.activityBar.visible": true,
"workbench.sideBar.location": "left",
"terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\cmd.exe",
"workbench.iconTheme": "openhab",
"editor.fontLigatures": false,
}
and at the very end I activated the API-Security-Switch (Allow Basic Authentication) in my OH3-Settings.
Now I’m a bit confused
where to set the Parameter “openhab.connection.authToken”:, and what Key I have to use and how to create, if necessary. Do you have some hints for me ?
Thx in advance - Peter