<div dir="ltr">Now working the button on the web interface. Now i understand how works, i use Kia Soul for basics, a bit easier then Twizzy.<div><br><div><br><br><div class="gmail_quote"><div dir="ltr">Tamás Kovács <<a href="mailto:kommykt@gmail.com">kommykt@gmail.com</a>> ezt írta (időpont: 2018. nov. 3., Szo, 20:44):<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks for the support the cells.<div>Now cell volts and temps are shown on web interface. </div><div>Now my problem is not understand the Reset button working mechanism, i wan't to understand the Renault Twizzy code, but a bit complex, if i load Twizzy , and press the button, next show  a text, but is my loaded it shown: Unrecognised command.</div><div>And i can not get any notification to my phone, use iOs app, and openvehicles v2 server, app working.</div></div><br><div class="gmail_quote"><div dir="ltr">Michael Balzer <<a href="mailto:dexter@expeedo.de" target="_blank">dexter@expeedo.de</a>> ezt írta (időpont: 2018. nov. 1., Cs, 10:58):<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    Tamás,<br>
    <br>
    I've been creating separate metrics for all cell values on the
    Twizy, but that only has 14 cells.<br>
    <br>
    We discussed this before, a better approach is introducing a new
    metric class for arrays. I have just done that for you, please pull.<br>
    <br>
    Usage example:<br>
    <blockquote><tt>OvmsMetricVector<float>* vf = new
        OvmsMetricVector<float>("test.volts", SM_STALE_MIN,
        Volts);</tt><br>
      <tt>vf->SetElemValue(3, 1.23);</tt><br>
      <tt>vf->SetElemValue(17, 2.34);</tt><br>
      <tt>float myvals[3] = { 5.5, 6.6, 7.7 };</tt><br>
      <tt>vf->SetElemValues(10, 3, myvals);</tt><br>
    </blockquote>
    With this data set, you get:<br>
    <blockquote><tt>OVMS# met lis test</tt><br>
      <tt>test.volts                              
        0,0,0,1.23,0,0,0,0,0,0,5.5,6.6,7.7,0,0,0,0,2.34V</tt><br>
    </blockquote>
    …and in the web framework:<br>
    <blockquote><tt>metrics["test.volts"]</tt><br>
      <tt>(18) [0, 0, 0, 1.23, 0, 0, 0, 0, 0, 0, 5.5, 6.6, 7.7, 0, 0, 0,
        0, 2.34]</tt><br>
      <tt>metrics["test.volts"][11]</tt><br>
      <tt>6.6</tt><br>
    </blockquote>
    See template definition in ovms_metrics.h for more.<br>
    <br>
    Regards,<br>
    Michael<br>
    <br>
    <br>
    <div class="m_-4819178210802014362m_-5510655060763143945moz-cite-prefix">Am 31.10.18 um 20:08 schrieb Tamás
      Kovács:<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr">
        <div dir="ltr">I have a Peugeot iOn, and i wan't to create own
          metrics for battery temp (66 piece) and voltage (88 (old) or
          80(new) piece) for all cell (and show on web interface), and i
          don't understand how can i create it. Now my data in array-s
          from can messages 6E1-6E4.<br clear="all">
          <div>My git fork: <a href="https://github.com/KommyKT/Open-Vehicle-Monitoring-System-3/tree/peugeot" target="_blank">https://github.com/KommyKT/Open-Vehicle-Monitoring-System-3/tree/peugeot</a></div>
          <div>vehicle_mitsubishi</div>
          <br>
        </div>
      </div>
    </blockquote>
    <br>
    <pre class="m_-4819178210802014362m_-5510655060763143945moz-signature" cols="160">-- 
Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal
Fon 02333 / 833 5735 * Handy 0176 / 206 989 26
</pre>
  </div>

_______________________________________________<br>
OvmsDev mailing list<br>
<a href="mailto:OvmsDev@lists.openvehicles.com" target="_blank">OvmsDev@lists.openvehicles.com</a><br>
<a href="http://lists.openvehicles.com/mailman/listinfo/ovmsdev" rel="noreferrer" target="_blank">http://lists.openvehicles.com/mailman/listinfo/ovmsdev</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="m_-4819178210802014362gmail_signature" data-smartmail="gmail_signature">Üdvözlettel:<br>Kovács Tamás</div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Üdvözlettel:<br>Kovács Tamás</div></div></div></div>