<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""><br class=""></div><div class="">I got this feedback today from one of our users, and thought it worthwhile to share. Good to see this facility getting some use.</div><div class=""><br class=""></div><div class="">Regards, Mark.</div><div class=""><br class=""></div><div class="">P.S. I have made the documentation change he pointed out.</div><br class=""><div><blockquote type="cite" class=""><table cellpadding="0" cellspacing="0" border="0" valign="middle" class="bodyStyle" style="padding: 10px; caret-color: rgb(2, 2, 2); font-family: Helvetica; letter-spacing: normal; orphans: auto; text-indent: 0px; text-transform: none; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration: none;"><tbody class=""><tr class=""><td valign="top" class="wrapperStyle" bgcolor="#FEFEFE" style="direction: ltr; background-color: rgb(254, 254, 254); margin: 0px 0px 15px; border-style: solid none none; border-top-width: 2px; border-top-color: rgb(204, 0, 0); border-top-left-radius: 1px; border-top-right-radius: 1px; border-bottom-right-radius: 1px; border-bottom-left-radius: 1px; box-shadow: rgba(0, 0, 0, 0.1) 1px 2px 3px;"><table cellpadding="0" cellspacing="0" border="0" dir="LTR" class="innerWrapperStyle" style="background-image: none; margin: 0px; padding: 0px; border: none; direction: ltr; background-position: initial initial; background-repeat: initial initial;"><tbody class=""><tr class=""><td class="contentStyle" style="padding: 1em; font-size: 14px; font-family: Roboto, sans-serif; line-height: 1.28; color: rgb(2, 2, 2);"><p class="replyNoticeStyle" style="margin-top: 0px;"><a href="http://email.teslamotorsclub.com/c/eJxtTkFuxCAQe01yIwISyHLgsJf-YxgmDW1gVkC23y-9V7Is2bItR48qOPOYkwdtLAVLWsk1BtLmALevdOxgHQBZK8FIGXHaZKd2QebOteF1hwU5z6ffFVpFmwtSGWPsakdVITo80CBomC9_9v5q0_qc9MfAPzN_bsbByOVNtUFPXNrQ_M5NREbRsKZXT-VTHFwFh5iSILwXvSm9P0byLpUgztVnqN_j7A-FIL74LI3LUqj_AobJT-E" class="linkStyle" style="font-family: "Roboto Slab", serif; font-size: 18pt; color: rgb(98, 98, 98); text-decoration: none;">OVMS doc - Scripting for OBDII ECU</a></p><hr class="hrStyle" style="height: 1px; margin: 10px 0px; border: 0px; color: rgb(254, 254, 254); background-color: rgb(254, 254, 254);"><table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin: 10px 0px 20px;" class=""><tbody class=""><tr valign="top" class=""><td class="profileBlockStyle" valign="top" style="font-size: 13px; line-height: 1.231; padding-right: 20px;"><div class="profileWrapperStyle" style="display: block; text-decoration: none; background-color: rgb(254, 254, 254); margin-bottom: 10px;"><br class=""><span class="profileSpacerStyle" style="padding: 3px 5px; display: block;"> </span></div></td><td width="100%" class="messageBlockStyle" style="color: rgb(2, 2, 2); font-family: Georgia, "Times New Roman", Times, serif; font-size: 11pt; line-height: 1.4;">I finally got around to playing a bit with the OBDII ECU scripting facility - it's a great tool.<br class=""><br class="">I came across a minor error in the doc that had me tripped up for a while and I hope you could channel this to the right person to get it updated.<br class=""><br class="">I am referring to the Google doc "OVMS v3 Advanced User Guide"<br class=""><br class="">In the "Metrics scripts" section is the following example:<br class=""><div class="codeWrapperStyle" style="background-color: rgb(242, 242, 242); overflow: auto; margin: 1em auto;"><pre class="codeStyle" title="Code" style="margin: 0px; padding: 0px 15px; font-size: 10pt; font-family: Consolas, "Courier New", Courier, monospace; background-color: rgb(242, 242, 242); word-wrap: normal; overflow: auto; line-height: 26px; direction: ltr; background-position: center top; background-repeat: repeat no-repeat;">ret1=OvmsMetricFloat("v.p.speed");
ret2=OvmsMetricFloat("v.b.power");
out=0.0;
if (ret1 > 0) { out=ret2/ret1; }
out;
</pre></div>This fails since OvmsMetricFloat is undefined - it should say "OvmsMetrics.AsFloat" in the first two rows.<br class=""><br class="">I managed to get my Pioneer NEX radio to show a speedometer on the home screen at last - it turns out it can only show a subset of gauges on the home screen, and the speedometer is not one of them (it offers a tach and MAF). the MAF can be tweaked to show the correct range: by setting it to metric (g/s) the range can be adjusted to 0-120. Somehow I need to multiply v.p.speed by 1.6 to get the correct mph output (which doesn't make sense to me) and then divide it by 2.56 since the OBDII ECU only sends the hibyte of the MAF response, and this is parsed as (256 * A + B)/100.<br class=""><br class="">Thank you again for all the help (and the great work on OVMS!),<br class=""></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></blockquote></div></body></html>