glynhudson / leaf-python-mqtt

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

Making sure the script doesn't crash if no response from the service #1

Closed steintore closed 7 years ago

steintore commented 7 years ago

Sometimes when starting the service it sends two requests to the Leaf-service at the same time. This causes the whole thing to crash hard when trying to log not-existing values. This is to make it a but more robust.

glynhudson commented 7 years ago

Nice, thanks a lot 👍