acatwith12
Member
what's a good way to pull up logs to a specific point in time?Can't see the images, but what do the logs say at the time of charging?
Don't know why my images are failing to insert
You can install our site as a web app on your iOS device by utilizing the Add to Home Screen feature in Safari. Please see this thread for more details on this.
Note: This feature may not be available in some browsers.
what's a good way to pull up logs to a specific point in time?Can't see the images, but what do the logs say at the time of charging?
Corresponds to previous post details: TeslaMate [megathread] ]more
or grep for a particular date
teslamate_1 | 2023-06-18 18:57:01.870 [info] Start of drive initiated by: %TeslaApi.Vehicle.State.Drive{gps_as_of: 1687114620, heading: 329, latitude: 34.11597, longitude: -118.23605, native_latitude: 34.11597, native_location_supported: 1, native_longitude: -118.23605, native_type: "wgs", power: 1, shift_state: "D", speed: 0, timestamp: 1687114621750}
teslamate_1 | 2023-06-18 18:57:01.871 car_id=2 [info] Driving / Start
teslamate_1 | 2023-06-18 18:57:59.222 [warning] Too many disconnects from streaming API
teslamate_1 | 2023-06-18 18:57:59.222 car_id=2 [info] Creating new connection …
teslamate_1 | 2023-06-18 18:57:59.223 car_id=2 [info] Disconnecting ...
teslamate_1 | 2023-06-18 18:57:59.245 car_id=2 [info] Connecting ...
teslamate_1 | 2023-06-18 19:04:29.680 [warning] Too many disconnects from streaming API
teslamate_1 | 2023-06-18 19:04:29.680 car_id=2 [info] Creating new connection …
teslamate_1 | 2023-06-18 19:04:29.680 car_id=2 [info] Disconnecting ...
teslamate_1 | 2023-06-18 19:04:29.703 car_id=2 [info] Connecting ...
teslamate_1 | 2023-06-18 23:04:49.706 [info] End of drive initiated by: %TeslaApi.Vehicle.State.Drive{gps_as_of: 1687129487, heading: 122, latitude: XX.XXXX, longitude: -XX.XXXXX, native_latitude: XX.XXXXX, native_location_supported: 1, native_longitude: -XX.XXXXXX, native_type: "wgs", power: 2, shift_state: "P", speed: 0, timestamp: 1687129488668}
teslamate_1 | 2023-06-18 23:04:49.706 car_id=2 [info] Driving / Ended / 59 km – 75 min
teslamate_1 | 2023-06-18 23:04:49.707 car_id=2 [info] Start / nline
teslamate_1 | 2023-06-18 23:05:20.991 [info] GET https://nominatim.openstreetmap.org/reverse -> 200 (194.551 ms)
teslamate_1 | 2023-06-18 23:05:21.019 car_id=2 [info] Charging / SOC: 31%
teslamate_1 | 2023-06-18 23:05:21.020 car_id=2 [info] Disconnecting ...
teslamate_1 | 2023-06-18 23:20:38.687 car_id=2 [info] Derived efficiency factor: 149.14 Wh/km (28x confirmed)
teslamate_1 | 2023-06-18 23:20:38.687 car_id=2 [info] Charging / Disconnected / 27.10 kWh – 15 min
teslamate_1 | 2023-06-18 23:20:38.690 car_id=2 [info] Start / nline
teslamate_1 | 2023-06-18 23:20:38.710 car_id=2 [info] Connecting ...
teslamate_1 | 2023-06-18 23:20:50.824 [info] Start of drive initiated by: %TeslaApi.Stream.Data{time: ~U[2023-06-18 23:20:50.748Z], speed: 0, odometer: 23267.1, soc: 68, elevation: 342, est_heading: 122, est_lat: XX.XXXXXX, est_lng: -XX.XXXXXX, power: 5, shift_state: "R", range: 210, est_range: 181, heading: 122}
teslamate_1 | 2023-06-18 23:20:50.824 car_id=2 [info] Driving / Start
teslamate_1 | 2023-06-18 23:41:02.897 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/1493055996468658/vehicle_data -> 408 (9142.588 ms)
teslamate_1 | 2023-06-18 23:41:02.898 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" => nil}
teslamate_1 | 2023-06-18 23:41:02.899 car_id=2 [error] Error / :unknown
teslamate_1 | 2023-06-18 23:42:00.754 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/XXXXXXXXXXXXXXX/vehicle_data -> 408 (9341.284 ms)
teslamate_1 | 2023-06-18 23:42:00.755 [warning] TeslaApi.Error / %{"error" => "{\"error\": \"timeout\"}", "error_description" => "", "response" =
OK this is super weird. I found all the places I do timeout fix / unclosed drive script. Suddenly my personal comp can't access raspberry pi through shell or grafana browser . I can access through my phone and another computer. Tried starting my personal comp. Tried turning on/off power at the source.. any idea why my comp would suddenly stop being able to connect?Looks like timeout errors in the log. You can change the value of the timeout - if you haven't already. Detail in this thread - but search for timeout .
EDIT: Hunting for a solution... can ping on mac, can't ping on windows. Can't figure out why my windows comp can no longer ping the pi[XXXXX@XXXXX-Laptop ~]$ssh [email protected]
ssh: connect to host 192.168.X.XXXport 22: Connection timed out
Well, can't edit previous post. Been googling for the day and all i can figure out is my windows is blocking access SOMEHOW but i can't figure out how.... if anyone's had to go through this, tips appreciatedOK this is super weird. I found all the places I do timeout fix / unclosed drive script. Suddenly my personal comp can't access raspberry pi through shell or grafana browser . I can access through my phone and another computer. Tried starting my personal comp. Tried turning on/off power at the source.. any idea why my comp would suddenly stop being able to connect?
I just get this trying to ssh in to pi...
EDIT: Hunting for a solution... can ping on mac, can't ping on windows. Can't figure out why my windows comp can no longer ping the pi
This morning it's magically fixed.... did nothing despite trying everything last night wtf. Well, now I am able to get back into pi!Try rebooting your router.
I've tried delete from positions where id =3820; and it returns DELETE 0. Maybe there's something in a different drive as well? I have also tried using this link but I cannot get it to find the correct longitudes. I know the timeframe is between 2023-02-28 16:34:12 and 2023-02-28 16:37:54 but I cannot figure out the correct code to delete everything in between a timeframe.Visited dashboard gets its data from the positions table. You'll have to delete the rows from the positions table where the drive_id is equal to 3820
You need to delete from positions where drive_id = 3820I figured I could run "DELETE FROM drives WHERE id = 3820;" and "DELETE FROM positions WHERE id = 3820;" to just get rid of the whole drive but that still didn't get rid of it.