OK I got everything installed (and grafana setup and showing nice dashboard). Now I need data.
So I started the apiscraper on the command line and got two problems. The first is that I could not wake up the car. I kept getting a 408 response code every second the scraper was running, for several minutes until I stopped it. I had too open the Tesla pp on my phone to wake up my car.
Then I ran the apiscraper again and got the following,
2019-06-02 11:24:28 INFO HTTP Server Thread started on port 8023
2019-06-02 11:24:30 INFO Writing Points to Influx: charge_state
2019-06-02 11:24:30 INFO Writing Points to Influx: climate_state
2019-06-02 11:24:30 INFO Writing Points to Influx: drive_state
2019-06-02 11:24:30 INFO Writing Points to Influx: gui_settings
2019-06-02 11:24:30 INFO Writing Points to Influx: vehicle_state
2019-06-02 11:24:30 INFO Asleep since: 0 Sleeping for 1 seconds..
Lockfile detected, skipping
2019-06-02 11:24:33 INFO Asleep since: 0 Sleeping for 2 seconds..
INFO:apiscraper:Asleep since: 0 Sleeping for 2 seconds..
Exception in thread elevator:
Traceback (most recent call last):
File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/usr/lib/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "/home/hroussel/tesla-apiscraper/srtmread.py", line 29, in elevationtoinflux
ifclient.write_points(elev_json_body)
File "/usr/lib/python3/dist-packages/influxdb/client.py", line 456, in write_points
tags=tags, protocol=protocol)
File "/usr/lib/python3/dist-packages/influxdb/client.py", line 506, in _write_points
protocol=protocol
File "/usr/lib/python3/dist-packages/influxdb/client.py", line 302, in write
headers=headers
File "/usr/lib/python3/dist-packages/influxdb/client.py", line 263, in request
raise InfluxDBClientError(response.content, response.status_code)
influxdb.exceptions.InfluxDBClientError: 400: {"error":"unable to parse 'drive_state,display_name=Orion,vin=__mycorrectvin____ 1559489068109000000': invalid field format"}
Anybody else hit that problem?
So I started the apiscraper on the command line and got two problems. The first is that I could not wake up the car. I kept getting a 408 response code every second the scraper was running, for several minutes until I stopped it. I had too open the Tesla pp on my phone to wake up my car.
Then I ran the apiscraper again and got the following,
2019-06-02 11:24:28 INFO HTTP Server Thread started on port 8023
2019-06-02 11:24:30 INFO Writing Points to Influx: charge_state
2019-06-02 11:24:30 INFO Writing Points to Influx: climate_state
2019-06-02 11:24:30 INFO Writing Points to Influx: drive_state
2019-06-02 11:24:30 INFO Writing Points to Influx: gui_settings
2019-06-02 11:24:30 INFO Writing Points to Influx: vehicle_state
2019-06-02 11:24:30 INFO Asleep since: 0 Sleeping for 1 seconds..
Lockfile detected, skipping
2019-06-02 11:24:33 INFO Asleep since: 0 Sleeping for 2 seconds..
INFO:apiscraper:Asleep since: 0 Sleeping for 2 seconds..
Exception in thread elevator:
Traceback (most recent call last):
File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/usr/lib/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "/home/hroussel/tesla-apiscraper/srtmread.py", line 29, in elevationtoinflux
ifclient.write_points(elev_json_body)
File "/usr/lib/python3/dist-packages/influxdb/client.py", line 456, in write_points
tags=tags, protocol=protocol)
File "/usr/lib/python3/dist-packages/influxdb/client.py", line 506, in _write_points
protocol=protocol
File "/usr/lib/python3/dist-packages/influxdb/client.py", line 302, in write
headers=headers
File "/usr/lib/python3/dist-packages/influxdb/client.py", line 263, in request
raise InfluxDBClientError(response.content, response.status_code)
influxdb.exceptions.InfluxDBClientError: 400: {"error":"unable to parse 'drive_state,display_name=Orion,vin=__mycorrectvin____ 1559489068109000000': invalid field format"}
Anybody else hit that problem?