Thanks for your feedback. I realized in your screnshot that the current position of your car seems to be unavailable. As far as I know, this happens if the user didn't accept the terms and conditions checkboxes - or when the car forgot about it and logged you out.
Could you please double check if you can see the position of your car in the official Hello Smart App when logging in with the same user you used for the script?
I will add a more pleasing output in case this happens (instead of undefined).
do you mean you can generally see the position of your cars in Germany?
It's a big complain in France, we rarely can see the location of our smart #1. It worked well in July, the first month, then stopped one day for everyone. We see it from time to time, particularly if we are driving it.
Next time we can see the location of the car for a few minutes I will let you know if the widget is not showing it.
Would you be able to point me at the line to change in order to target my 2nd and 3rd car? I will try to have 2 widgets showing at the same time. one for each car.
I'm not seeing any obvious place in your Javascript with a position.
Edit: was obvious, I just had to use a different VIN