f00d4tehg0dz / MMM-TeslaFi

MagicMirror Module for Tesla using Teslafi.com api
MIT License
1 stars 8 forks source link

Module shows Miles with a 'km' label with Imperial configuration setting #1

Open jpiscaer opened 5 years ago

jpiscaer commented 5 years ago

I have set imperial: false in the config. The modules is still showing values in miles, but instead of the 'miles' label, it shows 'km' label.

f00d4tehg0dz commented 5 years ago

image image

strange its converting just fine for me. Is there a specific value that needs to be converted that isn't?

jpiscaer commented 5 years ago

Strange that you're not seeing it. All values are affected in mine; so let me dive into this on my end and report back.

jpiscaer commented 4 years ago

Screenshot 2019-11-29 at 13 07 22 I often see no data, like in the screenshot. I think it correlates to when my car is in deep sleep mode.. Any idea what I can do to fix?

f00d4tehg0dz commented 4 years ago

yes an easy way to fix this is in your car enable the settings energy saving to Off and always connected to On. Then in teslafi.com there is I believe a setting that polls your car in intervals to wake it from deep sleep. You can change those settings too.

On Fri, Nov 29, 2019 at 7:08 AM Joep Piscaer notifications@github.com wrote:

[image: Screenshot 2019-11-29 at 13 07 22] https://user-images.githubusercontent.com/7115118/69868147-35d2c580-12a9-11ea-8792-da3d0ec976a7.png I often see no data, like in the screenshot. I think it correlates to when my car is in deep sleep mode.. Any idea what I can do to fix?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/f00d4tehg0dz/MMM-TeslaFi/issues/1?email_source=notifications&email_token=AAMPJRTCHFWMCRPHA5A2GXDQWEA3JA5CNFSM4JBQ3NJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFOWQPY#issuecomment-559769663, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAMPJRTDGXKJV5VTLFSEALLQWEA3JANCNFSM4JBQ3NJA .

justynr commented 4 years ago

I ran into this too - it seems that Teslafi is reporting Miles no matter what the interface of Teslafi is set to.

I use KM in my car, Teslafi and on Magic Mirror.

I changed the math in the .js file - I noticed that set to imperial, it was 30,000 something. In KM it was 52,000 something. I actually have 92,000 something.

Changed the divide to multiply, all is working.

f00d4tehg0dz commented 4 years ago

Nice Fix! Thank you

On Mon, Feb 3, 2020 at 12:06 AM justynr notifications@github.com wrote:

I ran into this too - it seems that Teslafi is reporting Miles no matter what the interface of Teslafi is set to.

I use KM in my car, Teslafi and on Magic Mirror.

I changed the math in the .js file - I noticed that set to imperial, it was 30,000 something. In KM it was 52,000 something. I actually have 92,000 something.

Changed the divide to multiply, all is working.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/f00d4tehg0dz/MMM-TeslaFi/issues/1?email_source=notifications&email_token=AAMPJRSZ556NNNHDD3A5GCLRA6Q57A5CNFSM4JBQ3NJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKSQGCQ#issuecomment-581239562, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAMPJRRAS2WIXCAMR2ROZMDRA6Q57ANCNFSM4JBQ3NJA .