lephisto / tesla-apiscraper

API Scraper for pulling Vehicle Statistics from the Tesla Owner API into an InfluxDB + Grafana Dashboards
GNU Lesser General Public License v3.0
365 stars 104 forks source link

Vehicle is getting polled every 1 second #57

Open eliluong opened 5 years ago

eliluong commented 5 years ago

I recently set up a fresh copy of the apiscraper to use for my vehicle. When the vehicle is asleep, it will poll every 64 seconds, but when it is awake, it is polled every 1 second. After parking the vehicle, it still gets polled that frequently. My vehicle is parked outside at the moment, and cabin overheat is on, so it won't go to sleep. The messages I see in the console is:

2019-07-01 09:01:53 INFO Writing Points to Influx: charge_state INFO:apiscraper:Asleep since: 0 Sleeping for 1 seconds..

It does this over and over, which I don't think it necessary and am worried about hammering the API service. Is this normal behavior? Here is full log, starting at the very end of a drive, and then getting stuck about charger voltage: https://pastebin.com/vz53cTAv

I think it is similar to #46 and #48. Thanks.

ruffneck- commented 5 years ago

I have the same issue

eliluong commented 5 years ago

Put this (https://github.com/lephisto/tesla-apiscraper/pull/48/commits/91616525eff3b597927a3fe467b80ebc16fc3e0c) into the code. I thought it was merged into the current release but it did not.

07stuntar1 commented 5 years ago

how do I pull release? using docker-compose.