You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"query": "SELECT last(\"value\") FROM \"km\" WHERE (\"entity_id\" = 'ovms_v_b_range_ideal') ",
409
+
"rawQuery": true,
410
+
"rawSql": " SELECT battery_level as \"Initial SOC\" FROM charges \n\twhere charging_process_id=$charging_processes\n\tORDER BY DATE ASC\n\tLIMIT 1",
411
+
"refId": "Inital SOC",
412
+
"resultFormat": "time_series",
413
+
"select": [
414
+
[
415
+
{
416
+
"params": [
417
+
"start_km"
418
+
],
419
+
"type": "column"
420
+
}
421
+
]
422
+
],
423
+
"table": "drives",
424
+
"tags": [
425
+
{
426
+
"key": "entity_id",
427
+
"operator": "=",
428
+
"value": "ovms_v_b_range_ideal"
429
+
}
430
+
],
431
+
"timeColumn": "start_date",
432
+
"timeColumnType": "timestamp",
433
+
"where": [
434
+
{
435
+
"name": "$__timeFilter",
436
+
"params": [],
437
+
"type": "macro"
438
+
}
439
+
]
440
+
}
441
+
],
442
+
"title": "Initial SOC",
443
+
"type": "stat"
444
+
},
334
445
{
335
446
"datasource": "TeslaMate",
336
447
"fieldConfig": {
@@ -368,8 +479,8 @@
368
479
},
369
480
"gridPos": {
370
481
"h": 3,
371
-
"w": 4,
372
-
"x": 10,
482
+
"w": 3,
483
+
"x": 12,
373
484
"y": 1
374
485
},
375
486
"id": 29,
@@ -443,7 +554,7 @@
443
554
]
444
555
}
445
556
],
446
-
"title": "Total charging time",
557
+
"title": "Elapsed time",
447
558
"type": "stat"
448
559
},
449
560
{
@@ -502,8 +613,8 @@
502
613
},
503
614
"gridPos": {
504
615
"h": 3,
505
-
"w": 4,
506
-
"x": 14,
616
+
"w": 3,
617
+
"x": 15,
507
618
"y": 1
508
619
},
509
620
"id": 23,
@@ -675,7 +786,6 @@
675
786
"mode": "line"
676
787
}
677
788
},
678
-
"decimals": 2,
679
789
"links": [],
680
790
"mappings": [],
681
791
"thresholds": {
@@ -706,14 +816,22 @@
706
816
},
707
817
{
708
818
"id": "custom.axisPlacement",
709
-
"value": "right"
819
+
"value": "hidden"
710
820
},
711
821
{
712
822
"id": "color",
713
823
"value": {
714
824
"fixedColor": "#cec1c3",
715
825
"mode": "fixed"
716
826
}
827
+
},
828
+
{
829
+
"id": "custom.hideFrom",
830
+
"value": {
831
+
"legend": true,
832
+
"tooltip": false,
833
+
"viz": false
834
+
}
717
835
}
718
836
]
719
837
},
@@ -736,7 +854,37 @@
736
854
},
737
855
{
738
856
"id": "unit",
739
-
"value": "none"
857
+
"value": "kwatt"
858
+
}
859
+
]
860
+
},
861
+
{
862
+
"matcher": {
863
+
"id": "byName",
864
+
"options": "SOC [%]"
865
+
},
866
+
"properties": [
867
+
{
868
+
"id": "unit",
869
+
"value": "%"
870
+
},
871
+
{
872
+
"id": "color",
873
+
"value": {
874
+
"fixedColor": "#d1f5ef",
875
+
"mode": "fixed",
876
+
"seriesBy": "last"
877
+
}
878
+
},
879
+
{
880
+
"id": "custom.thresholdsStyle",
881
+
"value": {
882
+
"mode": "off"
883
+
}
884
+
},
885
+
{
886
+
"id": "custom.axisPlacement",
887
+
"value": "right"
740
888
}
741
889
]
742
890
}
@@ -757,7 +905,7 @@
757
905
"max",
758
906
"min"
759
907
],
760
-
"displayMode": "list",
908
+
"displayMode": "table",
761
909
"placement": "bottom"
762
910
},
763
911
"tooltip": {
@@ -775,7 +923,7 @@
775
923
"hide": false,
776
924
"metricColumn": "none",
777
925
"rawQuery": true,
778
-
"rawSql": "SELECT\n\tdate AS \"time\",\n\t(case when charger_phases >= 1 then (case when charger_phases = 2 then 3 when charger_phases = 1 then 1 else 0 end) * charger_actual_current * charger_voltage / 1000.0 else charger_power end) as \"Power [kW]\",\n\t(case when battery_heater_on then 10 when battery_heater then 10 else 0 end) as \"Battery heater\"\nFROM\n\tcharges c\n\tJOIN charging_processes cp ON c.charging_process_id = cp.id\nWHERE\n cp.car_id = $car_id AND\n $__timeFilter(date)\nORDER BY date ASC",
926
+
"rawSql": "SELECT\n\tdate AS \"time\",\n\tbattery_level as \"SOC [%]\",\n\t(case when charger_phases >= 1 then (case when charger_phases = 2 then 3 when charger_phases = 1 then 1 else 0 end) * charger_actual_current * charger_voltage / 1000.0 else charger_power end) as \"Power [kW]\",\n\t(case when battery_heater_on then 10 when battery_heater then 10 else 0 end) as \"Battery heater\"\nFROM\n\tcharges c\n\tJOIN charging_processes cp ON c.charging_process_id = cp.id\nWHERE\n cp.car_id = $car_id AND\n $__timeFilter(date)\nORDER BY date ASC",
0 commit comments