glynhudson / leaf-python-mqtt

Extract data from Nissan Leaf API and post to mqtt
Apache License 2.0
24 stars 7 forks source link

Region hard-code in leaf-python-mqtt.py #5

Closed YanPelletier closed 6 years ago

YanPelletier commented 6 years ago

Hello,

I'm in Canada and your solution was not working for me... After checking you code, I realize that the region was hard-coded to "NE" at two lines in the "leaf-python-mqtt.py" :

After replacing "NE" with variable "nissan_region_code", everything started to work for me.

Thank you for the code, great job!

glynhudson commented 6 years ago

Thanks, good spot 👍

It's been fixed. I've obviously not tested with cars outside Northern Europe!