Page 1 of 1

Module config page : Listing users

Posted: 29 Feb 2016 22:25
by DomotikQuebec
Is it possible, in the module config page, to offer the list of the availlable users for selection.

I know how to show a select(dropdown list) of binary devices for example.

Code: Select all

{
    "field": "enum",
    "datasource": "namespaces",
    "enum": "namespaces:devices_sensorBinary:deviceId,namespaces:devices_switchBinary:deviceId",
    "required": true
},
But I want to be able to select a user instead.
Is there any datasource for the users ?

An example...
You activate the module and in the config page, you select a user in the users list.
That module create a virtual device that show the last time this user logued in.

I want my module to do stuff based on the selected user.

Thanks !