FHEM Forum

FHEM => English Corner => Thema gestartet von: Lectere am 23 September 2013, 17:00:37

Titel: customize webpage adding users
Beitrag von: Lectere am 23 September 2013, 17:00:37
I'd like to add two users to access my FHEM, one for my girlfriend, so she turn off/on everything, and control heating etc. But I don't want her to be able to execute commands, or delete anything.

Is that possible with FHEM, if so how?

Also I want a friend of mine to be able to only see one page/room, and only give him access to turn on one of my WOL def's in FHEM.

Is that possible with FHEM, if so, how?

I've been looking for it, but it seems you can only create one user...? perhaps I'm missing something?
Titel: Aw: customize webpage adding users
Beitrag von: rudolfkoenig am 24 September 2013, 08:41:35
>  But I don't want her to be able to execute commands, or delete anything.

You can reach something like this by defining dedicated FHEMWEB instances, and setting for these instances some/all of the http://fhem.de/commandref.html#hiddenroom (//fhem.de/commandref.html#hiddenroom) special values. You can also hide selected rooms/special entries. Then set the http://fhem.de/commandref.html#basicAuth (//fhem.de/commandref.html#basicAuth) attribute for each of the instances.

Be aware that this is not a waterproof solution, as entering the proper commands in the URL directly will still execute a FHEM command. It only helps to avoid accidentally changing/deleting something.
Titel: Aw: customize webpage adding users
Beitrag von: Lectere am 24 September 2013, 10:34:19
She's still be able to delete properties of the visable items, and there is still the big command box on top, and even worse, the 'save config' button...

Might be a nice feature, because to conclude, now the web-interface is allways in 'nerd mode'. And there is no 'consumer mode'.
Titel: Aw: customize webpage adding users
Beitrag von: rudolfkoenig am 24 September 2013, 12:01:07
>  She's still be able to delete properties of the visable items, and there is still the big command box on top, and even worse, the 'save config' button...

Please read my text more carefully, and if you are in doubt test it first, before replying.

All of the mentioned items can be disabled with the hiddenroom attribute. What you cannot disable is to manually craft a special URL (typing it in the Browser-URL-Input field), through which you can execute arbitrary fhem commands.