Thanks. actually the trick was just to use the VIN for the 2nd car. I was looking for an index.
I created a 2nd API user so that I could get 2 widgets at the same times.
Do we have to wait for a while after we connected in the app with that user to accept the sharing? I lost access also to the 1st one which worked before.
Basically you don't need one user per car in order to setup multiple widgets as long as your single user has access to all cars.
So there are two options for you (I'd prefer the first):
- leave the script as it is (from github) and set up the parameters only in the widget configuration: username;password;vin (works as long as there is no semicolon in your password)
- set up the script multiple times in Scriptable (with different names) and hard code your user, pass and vin in each script (line 21-23) - in this case, leave the widget params empty in the configuration!