<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><br>Thanks for the feedback Anko,<div><br></div><div>Will adjust the code according to your comments and get back here.</div><div><br></div><div>Regards,<br><div dir="ltr"><p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt;"><br></p><p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt;"><b><span lang="EN-US" style="background-color: rgba(255, 255, 255, 0);">Jaunius Kapkan </span></b><i style="background-color: rgba(255, 255, 255, 0);">[Sent from cellphone]</i></p><p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt;"><span lang="EN-US" style="background-color: rgba(255, 255, 255, 0);">Global Market Operations</span></p><p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt;"><span style="background-color: rgba(255, 255, 255, 0);"><span lang="EN-US">Cell:    </span><span lang="EN-US"> </span><span lang="EN-US"> <a href="tel:+370%C2%A0650%2011%C2%A0752" dir="ltr" x-apple-data-detectors="true" x-apple-data-detectors-type="telephone" x-apple-data-detectors-result="26">+370 650 11 752</a></span></span></p></div><div dir="ltr"><br><blockquote type="cite">On 2019-11-04, at 22:11, Anko Hanse <anko_hanse@hotmail.com> wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr">

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
code
        {mso-style-priority:99;
        font-family:"Courier New";}
kbd
        {mso-style-priority:99;
        font-family:"Courier New";}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:36.0pt;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;}
span.EmailStyle24
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.pl-c1
        {mso-style-name:pl-c1;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:230165307;
        mso-list-type:hybrid;
        mso-list-template-ids:1394776224 1834805298 336134147 336134149 336134145 336134147 336134149 336134145 336134147 336134149;}
@list l0:level1
        {mso-level-start-at:0;
        mso-level-number-format:bullet;
        mso-level-text:-;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-font-family:Calibri;}
@list l0:level2
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:"Courier New";}
@list l0:level3
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Wingdings;}
@list l0:level4
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Symbol;}
@list l0:level5
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:"Courier New";}
@list l0:level6
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Wingdings;}
@list l0:level7
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Symbol;}
@list l0:level8
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:"Courier New";}
@list l0:level9
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Wingdings;}
@list l1
        {mso-list-id:1451051540;
        mso-list-template-ids:1248625082;}
@list l1:level1
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:36.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:Symbol;}
@list l1:level2
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:72.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:"Courier New";
        mso-bidi-font-family:"Times New Roman";}
@list l1:level3
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:108.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l1:level4
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:144.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l1:level5
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:180.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l1:level6
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:216.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l1:level7
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:252.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l1:level8
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:288.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l1:level9
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:324.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->


<div class="WordSection1">
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Hi Jaunius,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Awesome work. Browsed through most of your changes and only have some small comments:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<ul style="margin-top:0cm" type="disc">
<li class="MsoListParagraph" style="margin-left:0cm;mso-list:l0 level1 lfo2"><span style="mso-fareast-language:EN-US">Naming conventions and code style all look fine<o:p></o:p></span></li></ul>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<ul style="margin-top:0cm" type="disc">
<li class="MsoListParagraph" style="margin-left:0cm;mso-list:l0 level1 lfo2"><span style="mso-fareast-language:EN-US">I do not quite understand why there is both an m_climate_on and an m_climate_off.  Is it not sufficient to have just a m_climate_on with value
 true/false ?<o:p></o:p></span></li></ul>
<p class="MsoListParagraph"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<ul style="margin-top:0cm" type="disc">
<li class="MsoListParagraph" style="margin-left:0cm;mso-list:l0 level1 lfo2"><span style="mso-fareast-language:EN-US">Similar for the m_climate_vent_off / face / facefeet, etc. Maybe better to change into one variable which is a string or enum with values off
 / face / facefeet / feet, etc<br>
And the same comment for m_climate_air_recirc / fresh / def.<br>
<br>
Look into how it was done for m_battery_type which uses an enumeration of values (</span><span style="font-size:9.5pt;font-family:Consolas;color:blue">enum</span><span style="font-size:9.5pt;font-family:Consolas;color:black"> battery_type)</span><span style="mso-fareast-language:EN-US">.<br>
Or otherwise StandardMetrics.ms_v_charge_state which uses strings ‘stopped’, ‘charging’, ‘done’<b><o:p></o:p></b></span></li></ul>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">I will try and test your code on my 2016 30kwh Leaf.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Kind regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Anko Hanse<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> Jaunius Kapkan <jaunius@gmx.com>
<br>
<b>Sent:</b> Tuesday, 5 November 2019 12:09 am<br>
<b>To:</b> OVMS Developers <ovmsdev@lists.openvehicles.com><br>
<b>Subject:</b> [Ovmsdev] Nissan LEAF: HVAC Metrics<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">Hi,<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">I have enhanced Nissan LEAF HVAC metrics as well as added additional ones under xnl.cc<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">I have built and tested the changes and so far all works as intended.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">I have also updated documentation.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">So I think it is time to merge this in to current edge build, but I just wanted to check with you if all the code style and naming conventios are according to standards.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Would appreciate if someone could review and advise if something needs to be corrected.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Here is the link to the repo and main file I worked on: <a href="https://github.com/mjkapkan/Open-Vehicle-Monitoring-System-3/commits/master/vehicle/OVMS.V3/components/vehicle_nissanleaf/src/vehicle_nissanleaf.cpp">https://github.com/mjkapkan/Open-Vehicle-Monitoring-System-3/commits/master/vehicle/OVMS.V3/components/vehicle_nissanleaf/src/vehicle_nissanleaf.cpp</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><br>
Kindly,<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><b><span lang="EN-US">Jaunius Kapkan </span></b><i>[Sent from cellphone]</i><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">Global Market Operations</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">Cell:      <a href="tel:+370%C2%A0650%2011%C2%A0752">+370 650 11 752</a></span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><br>
<br>
<o:p></o:p></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal" style="margin-bottom:12.0pt">On 2019-10-17, at 15:14, Jaunius Kapkan <<a href="mailto:jaunius@gmx.com">jaunius@gmx.com</a>> wrote:<o:p></o:p></p>
</blockquote>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal"><o:p></o:p></p>
<div>
<div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Verdana",sans-serif">Thanks Mark,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Verdana",sans-serif"> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Verdana",sans-serif">[renaming subject]<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Verdana",sans-serif"> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Verdana",sans-serif">In regards to config store. Where would you recommend placing the timers? I was thinking about putting them under vehicle conf:<o:p></o:p></span></p>
</div>
<div>
<pre id="output"><strong><span style="font-family:"Courier New"">OVMS#</span></strong> <kbd>config list vehicle</kbd><o:p></o:p></pre>
<pre>vehicle (readable writeable)<o:p></o:p></pre>
<pre>  bms.alerts.enabled: yes<o:p></o:p></pre>
<pre>  bms.dev.temp.alert:<o:p></o:p></pre>
<pre>  bms.dev.temp.warn:<o:p></o:p></pre>
<pre>  bms.dev.voltage.alert:<o:p></o:p></pre>
<pre>  bms.dev.voltage.warn:<o:p></o:p></pre>
<pre>  cctimer.evening: 1715-1730<o:p></o:p></pre>
<pre>  cctimer.morning: 0800-0815<o:p></o:p></pre>
<pre>  id: ******<o:p></o:p></pre>
<pre>  minsoc: 20<o:p></o:p></pre>
<pre>  name:<o:p></o:p></pre>
<pre>  timezone: EET-2EEST,M3.5.0/3,M10.5.0/4<o:p></o:p></pre>
<pre>  timezone_region: Europe/Helsinki<o:p></o:p></pre>
<pre>  units.distance: K<o:p></o:p></pre>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Verdana",sans-serif">Any other suggestions?<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Verdana",sans-serif"> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Verdana",sans-serif">Regards,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Verdana",sans-serif">Jaunius<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Verdana",sans-serif"> 
<o:p></o:p></span></p>
<div style="border:none;border-left:solid #C3D9E5 1.5pt;padding:0cm 0cm 0cm 8.0pt;margin-left:7.5pt;margin-top:7.5pt;margin-right:3.75pt;margin-bottom:3.75pt;word-wrap: break-word;-webkit-nbsp-mode: space;-webkit-line-break: after-white-space" name="quote">
<div style="margin-bottom:7.5pt">
<p class="MsoNormal"><b><span style="font-size:9.0pt;font-family:"Verdana",sans-serif">Sent:</span></b><span style="font-size:9.0pt;font-family:"Verdana",sans-serif"> Monday, October 14, 2019 at 4:01 AM<br>
<b>From:</b> "Mark Webb-Johnson" <<a href="mailto:mark@webb-johnson.net">mark@webb-johnson.net</a>><br>
<b>To:</b> "OVMS Developers" <<a href="mailto:ovmsdev@lists.openvehicles.com">ovmsdev@lists.openvehicles.com</a>><br>
<b>Subject:</b> Re: [Ovmsdev] WifiConsole V1.0<o:p></o:p></span></p>
</div>
<div name="quoted-content">
<div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Verdana",sans-serif">Probably not. The majority of power consumption is from the modems (cellular and wifi).
<o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Verdana",sans-serif"> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Verdana",sans-serif">Regards, Mark<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Verdana",sans-serif"> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Verdana",sans-serif">P.S. If all you need is a 10 second notification, you can pubsub subscribe to the standard event ticker.10.<o:p></o:p></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Verdana",sans-serif"> 
<o:p></o:p></span></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Verdana",sans-serif">On 14 Oct 2019, at 7:22 AM, Jaunius Kapkan <<a href="mailto:jaunius@gmx.com" target="_blank">jaunius@gmx.com</a>> wrote:<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Verdana",sans-serif"> 
<o:p></o:p></span></p>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Verdana",sans-serif">Delayed events seem to be working fine, thanks for the examples!<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Verdana",sans-serif">However, do you think spamming the events API every 10 seconds might substantially increase power consumption?<o:p></o:p></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Verdana",sans-serif"> <o:p></o:p></span></p>
</div>
<div>
<ul type="disc" id="eventlog">
<li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l1 level1 lfo1">
<code><span style="font-size:10.0pt">[2:17:04 AM]</span></code><span style="font-size:9.0pt;font-family:"Verdana",sans-serif">usr.CCtimer.heartbeat<o:p></o:p></span></li><li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l1 level1 lfo1">
<code><span style="font-size:10.0pt">[2:17:04 AM]</span></code><span style="font-size:9.0pt;font-family:"Verdana",sans-serif">usr.CCtimer.Night.stopped<o:p></o:p></span></li><li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l1 level1 lfo1">
<code><span style="font-size:10.0pt">[2:17:14 AM]</span></code><span style="font-size:9.0pt;font-family:"Verdana",sans-serif">usr.CCtimer.heartbeat<o:p></o:p></span></li></ul>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Verdana",sans-serif">Regards,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Verdana",sans-serif">Jaunius<o:p></o:p></span></p>
</div>
<div style="border:none;border-left:solid #C3D9E5 1.5pt;padding:0cm 0cm 0cm 8.0pt;margin-left:7.5pt;margin-top:7.5pt;margin-right:3.75pt;margin-bottom:3.75pt">
<div style="margin-bottom:7.5pt">
<p class="MsoNormal"><b><span style="font-size:9.0pt;font-family:"Verdana",sans-serif">Sent:</span></b><span style="font-size:9.0pt;font-family:"Verdana",sans-serif"> Sunday, October 13, 2019 at 8:54 PM<br>
<b>From:</b> "Michael Balzer" <<a href="mailto:dexter@expeedo.de" target="_blank">dexter@expeedo.de</a>><br>
<b>To:</b> <a href="mailto:ovmsdev@lists.openvehicles.com" target="_blank">ovmsdev@lists.openvehicles.com</a><br>
<b>Subject:</b> Re: [Ovmsdev] WifiConsole V1.0<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Verdana",sans-serif">Sending notifications is now also supported directly:<br>
<br>
<a href="https://docs.openvehicles.com/en/latest/userguide/scripting.html#ovmsnotify" target="_blank">https://docs.openvehicles.com/en/latest/userguide/scripting.html#ovmsnotify</a><br>
<br>
Regards,<br>
Michael<br>
<br>
<br>
Am 13.10.19 um 16:09 schrieb Jaunius Kapkan:<br>
> Great,<br>
><br>
> Will try that out!<br>
><br>
> Regards,<br>
> Jaunius<br>
><br>
>> Sent: Sunday, October 13, 2019 at 11:20 AM<br>
>> From: "Michael Balzer" <<a href="mailto:dexter@expeedo.de" target="_blank">dexter@expeedo.de</a>><br>
>> To: <a href="mailto:ovmsdev@lists.openvehicles.com" target="_blank">ovmsdev@lists.openvehicles.com</a><br>
>> Subject: Re: [Ovmsdev] WifiConsole V1.0<br>
>><br>
>> Jaunius,<br>
>><br>
>> I've added scheduled (delayed) events & the native OvmsEvents API:<br>
>> <a href="https://docs.openvehicles.com/en/latest/userguide/scripting.html#internal-objects-and-functions-methods" target="_blank">
https://docs.openvehicles.com/en/latest/userguide/scripting.html#internal-objects-and-functions-methods</a><br>
>><br>
>> So you can now also implement millisecond resolution timeouts and intervals in scripts.<br>
>><br>
>> Regards,<br>
>> Michael<br>
>><br>
>><br>
>> Am 11.10.19 um 10:36 schrieb Jaunius Kapkan:<br>
>>> Thanks Michael,<br>
>>>  <br>
>>> 1 second will do just fine as this is for climate control timer plugin I'm doing. Will try to use that event listener. Of course some standartized way would<br>
>>> be better.<br>
>>>  <br>
>>> Regards,<br>
>>> Jaunius<br>
>>>  <br>
>>> *Sent:* Friday, October 11, 2019 at 8:48 AM<br>
>>> *From:* "Michael Balzer" <<a href="mailto:dexter@expeedo.de" target="_blank">dexter@expeedo.de</a>><br>
>>> *To:* <a href="mailto:ovmsdev@lists.openvehicles.com" target="_blank">ovmsdev@lists.openvehicles.com</a><br>
>>> *Subject:* Re: [Ovmsdev] WifiConsole V1.0<br>
>>> Jaunius,<br>
>>><br>
>>> setTimeout() is not a standard Javascript function, it's a method of the browser window object.<br>
>>><br>
>>> <a href="https://developer.mozilla.org/de/docs/Web/API/WindowTimers/setTimeout" target="_blank">
https://developer.mozilla.org/de/docs/Web/API/WindowTimers/setTimeout</a><br>
>>><br>
>>> As a workaround, subscribe to the "ticker.1" event as shown in the foglight example:<br>
>>><br>
>>> <a href="http://docs.openvehicles.com/en/latest/components/ovms_script/docs/foglight.html#listen-to-events" target="_blank">
http://docs.openvehicles.com/en/latest/components/ovms_script/docs/foglight.html#listen-to-events</a><br>
>>><br>
>>> Resolution is limited to 1 second though. I thought about scheduled events some time ago, i.e. being able to tell the event system to trigger an event after a<br>
>>> specific delay. That would also offer a clean & simple solution for this. Another option would be a script API for the timer service.<br>
>>><br>
>>> I'll have a look at scheduled events.<br>
>>><br>
>>> Regards,<br>
>>> Michael<br>
>>><br>
>>>  <br>
>>> Am 11.10.19 um 08:29 schrieb Jaunius Kapkan:<br>
>>><br>
>>> Thanks Mark,<br>
>>>  <br>
>>> One other thing I stumbled upon is that standard setTimeout() does not seem to work. Is there any workaround for this? Sample Code:<br>
>>><br>
>>> |function intervalFunc() { print('Next try in 1.5s') } setInterval(intervalFunc, 1500)|<br>
>>><br>
>>>  <br>
>>> Basically I need the script to check certain conditions each n seconds.<br>
>>>  <br>
>>> Regards,<br>
>>> Jaunius<br>
>>> *Sent:* Thursday, October 10, 2019 at 3:35 AM<br>
>>> *From:* "Mark Webb-Johnson" <<a href="mailto:mark@webb-johnson.net" target="_blank">mark@webb-johnson.net</a>><br>
>>> *To:* "OVMS Developers" <<a href="mailto:ovmsdev@lists.openvehicles.com" target="_blank">ovmsdev@lists.openvehicles.com</a>><br>
>>> *Subject:* Re: [Ovmsdev] WifiConsole V1.0<br>
>>> I think in v2 that could have been the case (as we didn’t have any standardised functions for things like climate control). But in the v3 architecture we<br>
>>> now have these and the vehicle modules should support the standard functions to the best of their abilities.<br>
>>><br>
>>> If we still need mappings like Homelink 1 -> Climate On, then that should be done either by scripts or by some centralised mapping framework.<br>
>>><br>
>>> Regards, Mark.<br>
>>><br>
>>> > On 9 Oct 2019, at 2:19 PM, Jaunius Kapkan <<a href="mailto:jaunius@gmx.com" target="_blank">jaunius@gmx.com</a>> wrote:<br>
>>> ><br>
>>> > I am making a couple of plugins (initially for leaf) and the JS functions are great for that. However I assume the functions are not unifed accross<br>
>>> different vehicles. For example for leaf to turn on pre-heat you need to issue Homelink 1 instead of ClimateControl. What would be the best way to change<br>
>>> this? Or is this something that need to be changed on the lower level?<br>
>>> ><br>
>>> > Greetings,<br>
>>> > Jaunius<br>
>>> ><br>
>>> >> Sent: Tuesday, October 08, 2019 at 9:05 AM<br>
>>> >> From: "Michael Balzer" <<a href="mailto:dexter@expeedo.de" target="_blank">dexter@expeedo.de</a>><br>
>>> >> To: <a href="mailto:ovmsdev@lists.openvehicles.com" target="_blank">ovmsdev@lists.openvehicles.com</a><br>
>>> >> Subject: Re: [Ovmsdev] WifiConsole V1.0<br>
>>> >><br>
>>> >> Mark,<br>
>>> >><br>
>>> >> yes, the OLEDs are perfect for these things, bright enough for daylight use with very little energy usage.<br>
>>> >><br>
>>> >> Thanks for the link to that combined ESP32 module, that's a real beauty, even includes a LiPo supply / charger. I need to check that one out.<br>
>>> >><br>
>>> >> Regarding our Javascript support, I already had stunned some users with the foglight plugin, they thought stuff like this would need builtin<br>
>>> >> support. That brought me back to my point about how little users know about our capabilities, so I added an explanation to our docs:<br>
>>> >><br>
>>> >> <a href="http://docs.openvehicles.com/en/latest/components/ovms_script/docs/foglight.html" target="_blank">
http://docs.openvehicles.com/en/latest/components/ovms_script/docs/foglight.html</a><br>
>>> >><br>
>>> >> But we really need something like an OVMS cheat sheet as an overview of what is possible.<br>
>>> >><br>
>>> >> Regards,<br>
>>> >> Michael<br>
>>> >><br>
>>> >><br>
>>> >> Am 08.10.19 um 05:40 schrieb Mark Webb-Johnson:<br>
>>> >>> Michael,<br>
>>> >>><br>
>>> >>> I really like those little OLED SSD1306 based displays. I use them on my esphome+hassio projects like this little water tank level (using an<br>
>>> >>> ESP32, a BME280 pressure/humidity/temperature sensor, waterproof ultrasonic distance sensor, and SSID1306 OLED yellow/blue display):<br>
>>> >>><br>
>>> >>><br>
>>> >>> Adding a display to a project makes it so much more useful and easy to diagnose problems.<br>
>>> >>><br>
>>> >>> AliExpress has them very cheap:<br>
>>> >>><br>
>>> >>> * <a href="https://www.aliexpress.com/item/32844104782.html" target="_blank">
https://www.aliexpress.com/item/32844104782.html</a><br>
>>> >>> US$2 for the 0.96” yellow/blue 128x32<br>
>>> >>> US$3 for the 1.3” white 128x64<br>
>>> >>><br>
>>> >>><br>
>>> >>> There is also a 4MB ESP32 with a 0.96” OLED display on-board:<br>
>>> >>><br>
>>> >>> * <a href="https://www.aliexpress.com/item/32822105291.html" target="_blank">
https://www.aliexpress.com/item/32822105291.html</a><br>
>>> >>> US$9 plus shipping<br>
>>> >>><br>
>>> >>><br>
>>> >>> Glad that you are finding a use for our JavaScript support. I really think that has so many possibilities.<br>
>>> >>><br>
>>> >>> Regards, Mark<br>
>>> >>><br>
>>> >>>> On 6 Oct 2019, at 10:43 PM, Michael Balzer <<a href="mailto:dexter@expeedo.de" target="_blank">dexter@expeedo.de</a> <<a href="mailto:dexter@expeedo.de" target="_blank">mailto:dexter@expeedo.de</a>>> wrote:<br>
>>> >>>><br>
>>> >>>> FYI: I've just implemented an OVMS v3 style replacement for the SimpleConsole:<br>
>>> >>>><br>
>>> >>>> <a href="https://github.com/dexterbg/WifiConsole" target="_blank">https://github.com/dexterbg/WifiConsole</a><br>
>>> >>>><br>
>>> >>>> V3 makes it pretty easy now to add stuff like this. It's using a script plugin to provide custom functions via the web API.<br>
>>> >>>><br>
>>> >>>> Regards,<br>
>>> >>>> Michael<br>
>>> >><br>
>>> >> --<br>
>>> >> Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal<br>
>>> >> Fon 02333 / 833 5735 * Handy 0176 / 206 989 26<br>
>>> >><br>
>>> >> _______________________________________________<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" target="_blank">
http://lists.openvehicles.com/mailman/listinfo/ovmsdev</a><br>
>>> >><br>
>>> > _______________________________________________<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" target="_blank">
http://lists.openvehicles.com/mailman/listinfo/ovmsdev</a><br>
>>><br>
>>> _______________________________________________<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" target="_blank">
http://lists.openvehicles.com/mailman/listinfo/ovmsdev</a><br>
>>>  <br>
>>>  <br>
>>><br>
>>> _______________________________________________<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" target="_blank">
http://lists.openvehicles.com/mailman/listinfo/ovmsdev</a><br>
>>><br>
>>>  <br>
>>> --<br>
>>> Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal<br>
>>> Fon 02333 / 833 5735 * Handy 0176 / 206 989 26<br>
>>> _______________________________________________ OvmsDev mailing list <a href="mailto:OvmsDev@lists.openvehicles.com" target="_blank">
OvmsDev@lists.openvehicles.com</a> <a href="http://lists.openvehicles.com/mailman/listinfo/ovmsdev" target="_blank">
http://lists.openvehicles.com/mailman/listinfo/ovmsdev</a><br>
>>><br>
>>> _______________________________________________<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" target="_blank">
http://lists.openvehicles.com/mailman/listinfo/ovmsdev</a><br>
>> --<br>
>> Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal<br>
>> Fon 02333 / 833 5735 * Handy 0176 / 206 989 26<br>
>><br>
>> _______________________________________________<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" target="_blank">
http://lists.openvehicles.com/mailman/listinfo/ovmsdev</a><br>
>><br>
> _______________________________________________<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" target="_blank">
http://lists.openvehicles.com/mailman/listinfo/ovmsdev</a><br>
<br>
--<br>
Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal<br>
Fon 02333 / 833 5735 * Handy 0176 / 206 989 26<br>
<br>
_______________________________________________<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" target="_blank">http://lists.openvehicles.com/mailman/listinfo/ovmsdev</a><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Verdana",sans-serif">_______________________________________________<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" target="_blank">http://lists.openvehicles.com/mailman/listinfo/ovmsdev</a><o:p></o:p></span></p>
</div>
</blockquote>
</div>
</div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Verdana",sans-serif">_______________________________________________ OvmsDev mailing list
<a href="mailto:OvmsDev@lists.openvehicles.com">OvmsDev@lists.openvehicles.com</a>
<a href="http://lists.openvehicles.com/mailman/listinfo/ovmsdev" target="_blank">
http://lists.openvehicles.com/mailman/listinfo/ovmsdev</a><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal">_______________________________________________<br>
OvmsDev mailing list<br>
<a href="mailto:OvmsDev@lists.openvehicles.com">OvmsDev@lists.openvehicles.com</a><br>
<a href="http://lists.openvehicles.com/mailman/listinfo/ovmsdev">http://lists.openvehicles.com/mailman/listinfo/ovmsdev</a><o:p></o:p></p>
</div>
</blockquote>
</div>
</div>
</div>
</div>


</div></blockquote></div></body></html>