<div dir="ltr">Mark,<div><br></div><div>The code is implemented as your example, so the temperatures will be indicated as stale by the code.</div><div><br></div><div>Is there a visual indication in the app to show that the temperature are updated or stale? Now the app show the last temperature before the car was parked/stop charging.</div>
<div><br></div><div>Regards, Thomas<br><div class="gmail_extra"><br><br><div class="gmail_quote">2013/10/24 Mark Webb-Johnson <span dir="ltr"><<a href="mailto:mark@webb-johnson.net" target="_blank">mark@webb-johnson.net</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Matt,<div class="im"><div><br></div><div><blockquote type="cite"><div dir="ltr">In the iMiev, the CAN bus stops when the car is parked and not charging, which means that the temperatures go stale.<br>
</div></blockquote></div><div><blockquote type="cite"><div dir="ltr">I want to flag this to the app, but I'm not sure how to do that. I assumed that setting them back to their "default" state would return the app to displaying "-"<br>
</div></blockquote></div><div><br></div></div><div>Use:</div><div><br></div><div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div>ovms.{h,c}:</div><div>  signed char car_stale_ambient; // 0 = Ambient temperature is stale</div>
<div>  signed char car_stale_temps; // 0 = Powertrain temperatures are stale</div></div></blockquote></div><div><br></div><div>Most common method is that every time you receive a CAN bus message with the temps (motor, pem, battery), set car_stale_temps=60 (or car_stale_ambient=60 for ambient).</div>
<div><br></div><div>Then, in your one-second-ticker function, just:</div><div><br></div><div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>if (car_stale_ambient>0) car_stale_ambient--;</div><div>if (car_stale_temps>0) car_stale_temps--;</div>
</blockquote></div><div><br></div><div>That will automatically signal them as stale after 60 seconds of no update.</div><div class="im"><div><br></div><div><blockquote type="cite"><div dir="ltr">P.S. Now we have iMiev support (although a bit beta) and are about to get Leaf support - when do we get these car picture in the app? ;-) </div>
</blockquote><br></div></div><div>Can you hold a few weeks for this? I am working on the Apps to re-work how we do the vehicle images. They are just too large (13MB+ already!), so I am working on a better way of handling the multiple colours and making it easier to add them to the Apps. Once I have this working, I'll let you know what format we need the images in.</div>
<div><br></div><div>Regards, Mark.</div><div><br><div><div><div class="h5"><div>On 23 Oct, 2013, at 11:48 pm, Matt Beard <<a href="mailto:matt@beard.tv" target="_blank">matt@beard.tv</a>> wrote:</div><br></div></div>
<blockquote type="cite"><div><div class="h5"><div dir="ltr"><div><div><div><div>In the iMiev, the CAN bus stops when the car is parked and not charging, which means that the temperatures go stale.<br><br></div>I want to flag this to the app, but I'm not sure how to do that. I assumed that setting them back to their "default" state would return the app to displaying "-"<br>


<br></div>This doesn't seem to work. Should it?<br><br></div>Matt Beard<br><br><br></div>P.S. Now we have iMiev support (although a bit beta) and are about to get Leaf support - when do we get these car picture in the app? ;-) <br>


<br></div></div></div>
_______________________________________________<br>OvmsDev mailing list<br><a href="mailto:OvmsDev@lists.teslaclub.hk" target="_blank">OvmsDev@lists.teslaclub.hk</a><br><a href="http://lists.teslaclub.hk/mailman/listinfo/ovmsdev" target="_blank">http://lists.teslaclub.hk/mailman/listinfo/ovmsdev</a><br>
</blockquote></div><br></div></div><br>_______________________________________________<br>
OvmsDev mailing list<br>
<a href="mailto:OvmsDev@lists.teslaclub.hk">OvmsDev@lists.teslaclub.hk</a><br>
<a href="http://lists.teslaclub.hk/mailman/listinfo/ovmsdev" target="_blank">http://lists.teslaclub.hk/mailman/listinfo/ovmsdev</a><br>
<br></blockquote></div><br></div></div></div>