Search found 3 matches

by georg2020
Monday 12 October 2020 14:24
Forum: dzVents
Topic: Use user name in script to modify specific user variables
Replies: 9
Views: 1460

Re: Use user name in script to modify specific user variables

Yes exactly. In the event of switching "On Device..." call. I would like to access the user name that triggered the script by activating the switch.
Use case:
-> PrePay Systems
Similar to SmartCard, Coins, Tokens or RFID based PrePayed Systems: Accounting - use domoticz to identify user and track ...
by georg2020
Monday 12 October 2020 9:39
Forum: dzVents
Topic: Use user name in script to modify specific user variables
Replies: 9
Views: 1460

Re: Use user name in script to modify specific user variables

Thanks!
I will give it a try this week. To access the URL is a cool workaround. However it would be nice to have the logged-in user name as global system variable available. :-) It would simplifiy all kind of user / role based scripting.

Could that be put on the "Feature Requirement List" for the ...
by georg2020
Saturday 03 October 2020 16:02
Forum: dzVents
Topic: Use user name in script to modify specific user variables
Replies: 9
Views: 1460

Use user name in script to modify specific user variables

I would like to implement an accounting system tracking the usage of a switch.

For this I created Users on Domoticz and assigned the Switch to the users.
Then also created specific User Variales (UserName_Credits).

Also created a simple script that should read out and manipulate the UserName ...