Karaf console: remove password and timeout?

Troubleshooting OH with the console timeout is simply horrible.
I checking values and their state for the last three days, and cannot remember how many times I logged inot the console.

Is there a way to remove the password and timeout?

Unfortunately I do not get this post:


… or understand where the file file is located.

Why don’t you use the REST api?

Sorry, can you be more specific, please?

When I enter http://openhab:8080/rest/swagger.json on my system is says: site cannot be reached.

Replacing it with my OH IP:

{"error":{"message":"HTTP 404 Not Found","http-code":404,"exception":{"class":"javax.ws.rs.NotFoundException","message":"HTTP 404 Not Found","localized-message":"HTTP 404 Not Found"}}}

When I leave out swagger.json:

{“version”:“1”,“links”:[{“type”:“uuid”,“url”:“http://192.168.1.5:8080/rest/uuid"},{“type”:“profile-types”,“url”:“http://192.168.1.5:8080/rest/profile-types”},{“type”:“extensions”,“url”:“http://192.168.1.5:8080/rest/extensions”},{“type”:“things”,“url”:“http://192.168.1.5:8080/rest/things”},{“type”:“discovery”,“url”:“http://192.168.1.5:8080/rest/discovery”},{“type”:“bindings”,“url”:“http://192.168.1.5:8080/rest/bindings”},{“type”:“config-descriptions”,“url”:“http://192.168.1.5:8080/rest/config-descriptions”},{“type”:“persistence”,“url”:“http://192.168.1.5:8080/rest/persistence”},{“type”:“items”,“url”:“http://192.168.1.5:8080/rest/items”},{“type”:“services”,“url”:“http://192.168.1.5:8080/rest/services”},{“type”:“inbox”,“url”:“http://192.168.1.5:8080/rest/inbox”},{“type”:“thing-types”,“url”:“http://192.168.1.5:8080/rest/thing-types”},{“type”:“links”,“url”:“http://192.168.1.5:8080/rest/links”},{“type”:“channel-types”,“url”:“http://192.168.1.5:8080/rest/channel-types”},{“type”:“sitemaps”,“url”:“http://192.168.1.5:8080/rest/sitemaps”},{“type”:“voice”,“url”:“http://192.168.1.5:8080/rest/voice”},{“type”:“iconsets”,“url”:"http://192.168.1.5:8080/rest/iconsets”}]}

There is documentation on the REST API for OHv2.

Now what? :slight_smile:

Install the add-on / Misc / REST docs

The REST API should appear in your dashboard:

1 Like

What is this blackmagic you’re playing with and have other tiles li pi hole?

1 Like

I think you can get access without password, by copying your ssh id key to karaf. Then every time you log in, ssh will provide authentication via the shared keys.
Google “ssh copy id” and you should find some tutorials. Also on the Raspberry Pi page itself they describe this.

1 Like

See:

3 Likes

I found a setting in putty which helps with the idle timeout issue -

Go to the connection properties in putty and set a keepalive value. 10 seems to work for me.

On a recent snapshot this does not work.

I uninstalled and reinstalled REST documentation and apart from a ton of NPE when installing the REST documentation, I still get “Can’t read swagger JSON from XXX”.

This appears to be a bug. I’ve filed an issue at https://github.com/openhab/openhab-webui/issues/86 though it might be moved to openhab-core.