<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    Everyone,<br>
    <br>
    the trip & grid logs are now implemented as proposed.<br>
      <br>
    I've made a small change to the trip log to include min/max values
    of the tyre temperatures, pressures and health levels.<br>
    <br>
    Documentation:<br>
    <ul>
      <li><a class="moz-txt-link-freetext" href="https://docs.openvehicles.com/en/latest/userguide/notifications.html#grid-history-log">https://docs.openvehicles.com/en/latest/userguide/notifications.html#grid-history-log</a></li>
      <li><a class="moz-txt-link-freetext" href="https://docs.openvehicles.com/en/latest/userguide/notifications.html#trip-history-log">https://docs.openvehicles.com/en/latest/userguide/notifications.html#trip-history-log</a><br>
      </li>
    </ul>
    Note: both logs are disabled by default.<br>
    <br>
    Regards,<br>
    Michael<br>
    <br>
    <br>
    <div class="moz-cite-prefix">Am 12.01.21 um 19:49 schrieb Michael
      Balzer:<br>
    </div>
    <blockquote type="cite"
      cite="mid:3585d9bd-c3e4-a43f-1cdd-f5342d2c056f@expeedo.de">Everyone,
      <br>
      <br>
      followup to my previous mail, these are the record structures for
      the general trip & grid logs I would like to add.
      <br>
      <br>
      I'm going to implement this with configurable server hold times,
      with 0 = no server storage at all.
      <br>
      <br>
      As this has more potential for data privacy impact as the standard
      24 hour storage of telemetry records, I wouldn't enable the logs
      by default, but leave this decision to the user.
      <br>
      <br>
      Please check & provide feedback.
      <br>
      <br>
      Regards,
      <br>
      Michael
      <br>
      <br>
      <br>
====================================================================================================
      <br>
      History type "*-LOG-Trip"
      <br>
      Notification type "data", subtype "log.trip"
      <br>
      <br>
          OvmsMetricBool*   ms_v_pos_gpslock;
      <br>
          OvmsMetricFloat*  ms_v_pos_latitude;
      <br>
          OvmsMetricFloat*  ms_v_pos_longitude;
      <br>
          OvmsMetricFloat*  ms_v_pos_altitude;
      <br>
          OvmsMetricString* ms_v_pos_location;              // Name of
      current location if defined
      <br>
      <br>
          OvmsMetricFloat*  ms_v_pos_odometer;
      <br>
      <br>
          OvmsMetricFloat*  ms_v_pos_trip;                  // Trip
      distance
      <br>
          OvmsMetricInt*    ms_v_env_drivetime;             // Trip
      duration
      <br>
          OvmsMetricInt*    ms_v_env_drivemode;             // Active
      drive profile number [1]
      <br>
      <br>
          OvmsMetricFloat*  ms_v_bat_soc;                   // State of
      charge [%]
      <br>
          OvmsMetricFloat*  ms_v_bat_range_est;             // Estimated
      range [km]
      <br>
          OvmsMetricFloat*  ms_v_bat_range_ideal;           // Ideal
      range [km]
      <br>
          OvmsMetricFloat*  ms_v_bat_range_full;            // Ideal
      range at 100% SOC & current conditions [km]
      <br>
      <br>
          OvmsMetricFloat*  ms_v_bat_energy_used;           // Main
      battery energy used on trip [kWh]
      <br>
          OvmsMetricFloat*  ms_v_bat_energy_recd;           // Main
      battery energy recovered on trip [kWh]
      <br>
          OvmsMetricFloat*  ms_v_bat_coulomb_used;
      <br>
          OvmsMetricFloat*  ms_v_bat_coulomb_recd;
      <br>
      <br>
          OvmsMetricFloat*  ms_v_bat_soh;                   // State of
      health [%]
      <br>
          OvmsMetricString* ms_v_bat_health;                // General
      textual description of battery health
      <br>
          OvmsMetricFloat*  ms_v_bat_cac;                   //
      Calculated capacity [Ah]
      <br>
      <br>
          OvmsMetricFloat*  ms_v_bat_energy_used_total;     // Battery
      energy used total (life time) [kWh]
      <br>
          OvmsMetricFloat*  ms_v_bat_energy_recd_total;     // Battery
      energy recovered total (life time) [kWh]
      <br>
          OvmsMetricFloat*  ms_v_bat_coulomb_used_total;    // Battery
      coulomb used total (life time) [Ah]
      <br>
          OvmsMetricFloat*  ms_v_bat_coulomb_recd_total;    // Battery
      coulomb recovered total (life time) [Ah]
      <br>
      <br>
          OvmsMetricFloat*  ms_v_env_temp;                  // Ambient
      temperature [°C]
      <br>
          OvmsMetricFloat*  ms_v_env_cabintemp;             // Cabin
      temperature [°C]
      <br>
          OvmsMetricFloat*  ms_v_bat_temp;                  // Battery
      temperature [°C]
      <br>
          OvmsMetricFloat*  ms_v_inv_temp;                  // Inverter
      temperature [°C]
      <br>
          OvmsMetricFloat*  ms_v_mot_temp;                  // Motor
      temperature [°C]
      <br>
          OvmsMetricFloat*  ms_v_charge_12v_temp;           //
      Temperature of DC/DC-converter [°C]
      <br>
      <br>
          OvmsMetricFloat*  MAX(ms_v_tpms_temp);            // Maximum
      tyre temperature
      <br>
          OvmsMetricFloat*  MIN(ms_v_tpms_pressure);        // Minimum
      tyre pressure
      <br>
          OvmsMetricFloat*  MIN(ms_v_tpms_health);          // Minimum
      tyre health
      <br>
      <br>
      <br>
====================================================================================================
      <br>
      History type "*-LOG-Grid"
      <br>
      Notification type "data", subtype "log.grid"
      <br>
      <br>
          OvmsMetricBool*   ms_v_pos_gpslock;
      <br>
          OvmsMetricFloat*  ms_v_pos_latitude;
      <br>
          OvmsMetricFloat*  ms_v_pos_longitude;
      <br>
          OvmsMetricFloat*  ms_v_pos_altitude;
      <br>
          OvmsMetricString* ms_v_pos_location;            // Name of
      current location if defined
      <br>
      <br>
          OvmsMetricFloat*  ms_v_pos_odometer;
      <br>
      <br>
          OvmsMetricString* ms_v_charge_type;               // Grid
      connection type
      <br>
          OvmsMetricString* ms_v_charge_state;              // charging,
      topoff, done, prepare, …
      <br>
          OvmsMetricString* ms_v_charge_substate;           //
      scheduledstop, scheduledstart, …
      <br>
          OvmsMetricString* ms_v_charge_mode;               // standard,
      range, performance, storage
      <br>
          OvmsMetricFloat*  ms_v_charge_climit;             // Maximum
      charger output current [A]
      <br>
          OvmsMetricFloat*  ms_v_charge_limit_range;        //
      Sufficient range limit for current charge [km]
      <br>
          OvmsMetricFloat*  ms_v_charge_limit_soc;          //
      Sufficient SOC limit for current charge [%]
      <br>
      <br>
          OvmsMetricString* ms_v_gen_type;                  // Grid
      connection type
      <br>
          OvmsMetricString* ms_v_gen_state;                 // TBD
      <br>
          OvmsMetricString* ms_v_gen_substate;              // TBD
      <br>
          OvmsMetricString* ms_v_gen_mode;                  // TBD
      <br>
          OvmsMetricFloat*  ms_v_gen_climit;                // Maximum
      battery output current [A]
      <br>
          OvmsMetricFloat*  ms_v_gen_limit_range;           // Min range
      [km]
      <br>
          OvmsMetricFloat*  ms_v_gen_limit_soc;             // Min SOC
      [%]
      <br>
      <br>
          OvmsMetricInt*    ms_v_charge_time;               // Duration
      of running charge session [sec]
      <br>
          OvmsMetricFloat*  ms_v_charge_kwh;                // Energy
      charged into battery for running session [kWh]
      <br>
          OvmsMetricFloat*  ms_v_charge_kwh_grid;           // Energy
      drawn from grid during running session [kWh]
      <br>
          OvmsMetricFloat*  ms_v_charge_kwh_grid_total;     // Energy
      drawn from grid total (life time) [kWh]
      <br>
      <br>
          OvmsMetricInt*    ms_v_gen_time;                  // Duration
      of running generator session [sec]
      <br>
          OvmsMetricFloat*  ms_v_gen_kwh;                   // Energy
      taken from battery for running session [kWh]
      <br>
          OvmsMetricFloat*  ms_v_gen_kwh_grid;              // Energy
      sent to grid during running session [kWh]
      <br>
          OvmsMetricFloat*  ms_v_gen_kwh_grid_total;        // Energy
      sent to grid total (life time) [kWh]
      <br>
      <br>
          OvmsMetricFloat*  ms_v_bat_soc;                   // State of
      charge [%]
      <br>
          OvmsMetricFloat*  ms_v_bat_range_est;             // Estimated
      range [km]
      <br>
          OvmsMetricFloat*  ms_v_bat_range_ideal;           // Ideal
      range [km]
      <br>
          OvmsMetricFloat*  ms_v_bat_range_full;            // Ideal
      range at 100% SOC & current conditions [km]
      <br>
      <br>
          OvmsMetricFloat*  ms_v_bat_voltage;               // Main
      battery momentary voltage [V]
      <br>
          OvmsMetricFloat*  ms_v_bat_temp;                  // Battery
      temperature [°C]
      <br>
      <br>
          OvmsMetricFloat*  ms_v_charge_temp;               // Charger
      temperature [°C]
      <br>
          OvmsMetricFloat*  ms_v_charge_12v_temp;           //
      Temperature of DC/DC-converter [°C]
      <br>
          OvmsMetricFloat*  ms_v_env_temp;                  // Ambient
      temperature [°C]
      <br>
          OvmsMetricFloat*  ms_v_env_cabintemp;             // Cabin
      temperature [°C]
      <br>
      <br>
          OvmsMetricFloat*  ms_v_bat_soh;                   // State of
      health [%]
      <br>
          OvmsMetricString* ms_v_bat_health;                // General
      textual description of battery health
      <br>
          OvmsMetricFloat*  ms_v_bat_cac;                   //
      Calculated capacity [Ah]
      <br>
      <br>
          OvmsMetricFloat*  ms_v_bat_energy_used_total;     // Battery
      energy used total (life time) [kWh]
      <br>
          OvmsMetricFloat*  ms_v_bat_energy_recd_total;     // Battery
      energy recovered total (life time) [kWh]
      <br>
          OvmsMetricFloat*  ms_v_bat_coulomb_used_total;    // Battery
      coulomb used total (life time) [Ah]
      <br>
          OvmsMetricFloat*  ms_v_bat_coulomb_recd_total;    // Battery
      coulomb recovered total (life time) [Ah]
      <br>
      <br>
      <br>
      <br>
      <br>
      <br>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
OvmsDev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:OvmsDev@lists.openvehicles.com">OvmsDev@lists.openvehicles.com</a>
<a class="moz-txt-link-freetext" href="http://lists.openvehicles.com/mailman/listinfo/ovmsdev">http://lists.openvehicles.com/mailman/listinfo/ovmsdev</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal
Fon 02333 / 833 5735 * Handy 0176 / 206 989 26</pre>
  </body>
</html>