Read the statement by Michael Teeuw here.
MMM-weconnectid with 2 accounts
-
@sdetweil unfortunately it works just a little.
I can see two modules the first time on my screen but I can’t see the SoC and the loaded pictures shows the same car. That is clear for me when I check the module.js file. But 2 different cars are loaded what can be seen on the run kilometers.
So your approach works in general to show the module twice. Thank you for that. That might be helpful for other modules, too.
But to get the MMM-weconnectid fully working there needs to be some more coding in the module.js to be done. Python grabs the information I think since I see no errors or strange things in the log.
Unfortunately I’m a mechanical engineer who just starts with some very simple coding. I can’t fix that.But again thanks a lot for your support and time you’ve spent!
Chris.
-
@chrisfr1976 each module 1 at a time works ok?
what is soc? state of charge?
-
@chrisfr1976 yes I see the issue. give me a little time.
-
@chrisfr1976 bug, sorry, he accepted code, but its broken
do this
git checkout main git fetch origin pull/7/head:test_multi-2 git checkout test_multi-2
then try again
-
@chrisfr1976 said in MMM-weconnectid with 2 accounts:
So your approach works in general to show the module twice.
not mine. it’s the official way to support multiple instances.
-
-
@chrisfr1976 did you see my note about an update?
-
@sdetweil Hello, yes, sorry for that delay. Yesterday I was out with my company colleagues :clinking_beer_mugs:
I’ve just tested the configuration:
- same module, twice in the config
- my copied module with new name with the original module together
then both versions with “git checkout main” and for doublecheck your “git checkout test_multi-2”.
And unfortunately without success. For Option 1 it stops with “loading…”. For Option 2 I get 1 car shown without any information from VW and the other stops also with “loading…” on the screen.
In the logs I just get this:
0|mm | [22.02.2024 19:12.02.704] [LOG] Got data from weconnectid for VIN WVWZZZE1ZNP0339xx 0|mm | [22.02.2024 19:12.07.203] [LOG] Got data from weconnectid for VIN WV2ZZZEB5PH0306xx
No Errors.
So same issue as last time. :crying_face:
-
@chrisfr1976 ok.
if you are willing to share your config via private message so i can run the module here.
maybe there is a syntax error
open the developers window, ctrl-shift-i,
select the console tab, and put we in the filter field -
@chrisfr1976 thanks for your trust
do this
git checkout main git fetch origin pull/8/head:test_multi-3 git checkout test_multi-3
and try again 1 instance and then both