<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Probably not. The majority of power consumption is from the modems (cellular and wifi).<div class=""><br class=""></div><div class="">Regards, Mark</div><div class=""><br class=""></div><div class="">P.S. If all you need is a 10 second notification, you can pubsub subscribe to the standard event ticker.10.</div><div class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 14 Oct 2019, at 7:22 AM, Jaunius Kapkan <<a href="mailto:jaunius@gmx.com" class="">jaunius@gmx.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class=""><div style="font-family: Verdana;font-size: 12.0px;" class=""><div class="">
<div class="">Delayed events seem to be working fine, thanks for the examples!</div>

<div class="">However, do you think spamming the events API every 10 seconds might substantially increase power consumption?</div>

<div class="">
<div class=""> </div>

<div class="">
<ul id="eventlog" class="">
        <li class=""><code class="">[2:17:04 AM]</code>usr.CCtimer.heartbeat</li>
        <li class=""><code class="">[2:17:04 AM]</code>usr.CCtimer.Night.stopped</li>
        <li class=""><code class="">[2:17:14 AM]</code>usr.CCtimer.heartbeat</li>
</ul>
</div>

<div class="">Regards,</div>

<div class="">Jaunius</div>

<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="margin:0 0 10px 0;" class=""><b class="">Sent:</b> Sunday, October 13, 2019 at 8:54 PM<br class="">
<b class="">From:</b> "Michael Balzer" <<a href="mailto:dexter@expeedo.de" class="">dexter@expeedo.de</a>><br class="">
<b class="">To:</b> <a href="mailto:ovmsdev@lists.openvehicles.com" class="">ovmsdev@lists.openvehicles.com</a><br class="">
<b class="">Subject:</b> Re: [Ovmsdev] WifiConsole V1.0</div>

<div name="quoted-content" class="">Sending notifications is now also supported directly:<br class="">
<br class="">
<a href="https://docs.openvehicles.com/en/latest/userguide/scripting.html#ovmsnotify" target="_blank" class="">https://docs.openvehicles.com/en/latest/userguide/scripting.html#ovmsnotify</a><br class="">
<br class="">
Regards,<br class="">
Michael<br class="">
<br class="">
<br class="">
Am 13.10.19 um 16:09 schrieb Jaunius Kapkan:<br class="">
> Great,<br class="">
><br class="">
> Will try that out!<br class="">
><br class="">
> Regards,<br class="">
> Jaunius<br class="">
><br class="">
>> Sent: Sunday, October 13, 2019 at 11:20 AM<br class="">
>> From: "Michael Balzer" <<a href="mailto:dexter@expeedo.de" class="">dexter@expeedo.de</a>><br class="">
>> To: <a href="mailto:ovmsdev@lists.openvehicles.com" class="">ovmsdev@lists.openvehicles.com</a><br class="">
>> Subject: Re: [Ovmsdev] WifiConsole V1.0<br class="">
>><br class="">
>> Jaunius,<br class="">
>><br class="">
>> I've added scheduled (delayed) events & the native OvmsEvents API:<br class="">
>> <a href="https://docs.openvehicles.com/en/latest/userguide/scripting.html#internal-objects-and-functions-methods" target="_blank" class="">https://docs.openvehicles.com/en/latest/userguide/scripting.html#internal-objects-and-functions-methods</a><br class="">
>><br class="">
>> So you can now also implement millisecond resolution timeouts and intervals in scripts.<br class="">
>><br class="">
>> Regards,<br class="">
>> Michael<br class="">
>><br class="">
>><br class="">
>> Am 11.10.19 um 10:36 schrieb Jaunius Kapkan:<br class="">
>>> Thanks Michael,<br class="">
>>>  <br class="">
>>> 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 class="">
>>> be better.<br class="">
>>>  <br class="">
>>> Regards,<br class="">
>>> Jaunius<br class="">
>>>  <br class="">
>>> *Sent:* Friday, October 11, 2019 at 8:48 AM<br class="">
>>> *From:* "Michael Balzer" <<a href="mailto:dexter@expeedo.de" class="">dexter@expeedo.de</a>><br class="">
>>> *To:* <a href="mailto:ovmsdev@lists.openvehicles.com" class="">ovmsdev@lists.openvehicles.com</a><br class="">
>>> *Subject:* Re: [Ovmsdev] WifiConsole V1.0<br class="">
>>> Jaunius,<br class="">
>>><br class="">
>>> setTimeout() is not a standard Javascript function, it's a method of the browser window object.<br class="">
>>><br class="">
>>> <a href="https://developer.mozilla.org/de/docs/Web/API/WindowTimers/setTimeout" target="_blank" class="">https://developer.mozilla.org/de/docs/Web/API/WindowTimers/setTimeout</a><br class="">
>>><br class="">
>>> As a workaround, subscribe to the "ticker.1" event as shown in the foglight example:<br class="">
>>><br class="">
>>> <a href="http://docs.openvehicles.com/en/latest/components/ovms_script/docs/foglight.html#listen-to-events" target="_blank" class="">http://docs.openvehicles.com/en/latest/components/ovms_script/docs/foglight.html#listen-to-events</a><br class="">
>>><br class="">
>>> 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 class="">
>>> specific delay. That would also offer a clean & simple solution for this. Another option would be a script API for the timer service.<br class="">
>>><br class="">
>>> I'll have a look at scheduled events.<br class="">
>>><br class="">
>>> Regards,<br class="">
>>> Michael<br class="">
>>><br class="">
>>>  <br class="">
>>> Am 11.10.19 um 08:29 schrieb Jaunius Kapkan:<br class="">
>>><br class="">
>>> Thanks Mark,<br class="">
>>>  <br class="">
>>> One other thing I stumbled upon is that standard setTimeout() does not seem to work. Is there any workaround for this? Sample Code:<br class="">
>>><br class="">
>>> |function intervalFunc() { print('Next try in 1.5s') } setInterval(intervalFunc, 1500)|<br class="">
>>><br class="">
>>>  <br class="">
>>> Basically I need the script to check certain conditions each n seconds.<br class="">
>>>  <br class="">
>>> Regards,<br class="">
>>> Jaunius<br class="">
>>> *Sent:* Thursday, October 10, 2019 at 3:35 AM<br class="">
>>> *From:* "Mark Webb-Johnson" <<a href="mailto:mark@webb-johnson.net" class="">mark@webb-johnson.net</a>><br class="">
>>> *To:* "OVMS Developers" <<a href="mailto:ovmsdev@lists.openvehicles.com" class="">ovmsdev@lists.openvehicles.com</a>><br class="">
>>> *Subject:* Re: [Ovmsdev] WifiConsole V1.0<br class="">
>>> 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 class="">
>>> now have these and the vehicle modules should support the standard functions to the best of their abilities.<br class="">
>>><br class="">
>>> 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 class="">
>>><br class="">
>>> Regards, Mark.<br class="">
>>><br class="">
>>> > On 9 Oct 2019, at 2:19 PM, Jaunius Kapkan <<a href="mailto:jaunius@gmx.com" class="">jaunius@gmx.com</a>> wrote:<br class="">
>>> ><br class="">
>>> > 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 class="">
>>> 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 class="">
>>> this? Or is this something that need to be changed on the lower level?<br class="">
>>> ><br class="">
>>> > Greetings,<br class="">
>>> > Jaunius<br class="">
>>> ><br class="">
>>> >> Sent: Tuesday, October 08, 2019 at 9:05 AM<br class="">
>>> >> From: "Michael Balzer" <<a href="mailto:dexter@expeedo.de" class="">dexter@expeedo.de</a>><br class="">
>>> >> To: <a href="mailto:ovmsdev@lists.openvehicles.com" class="">ovmsdev@lists.openvehicles.com</a><br class="">
>>> >> Subject: Re: [Ovmsdev] WifiConsole V1.0<br class="">
>>> >><br class="">
>>> >> Mark,<br class="">
>>> >><br class="">
>>> >> yes, the OLEDs are perfect for these things, bright enough for daylight use with very little energy usage.<br class="">
>>> >><br class="">
>>> >> 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 class="">
>>> >><br class="">
>>> >> Regarding our Javascript support, I already had stunned some users with the foglight plugin, they thought stuff like this would need builtin<br class="">
>>> >> 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 class="">
>>> >><br class="">
>>> >> <a href="http://docs.openvehicles.com/en/latest/components/ovms_script/docs/foglight.html" target="_blank" class="">http://docs.openvehicles.com/en/latest/components/ovms_script/docs/foglight.html</a><br class="">
>>> >><br class="">
>>> >> But we really need something like an OVMS cheat sheet as an overview of what is possible.<br class="">
>>> >><br class="">
>>> >> Regards,<br class="">
>>> >> Michael<br class="">
>>> >><br class="">
>>> >><br class="">
>>> >> Am 08.10.19 um 05:40 schrieb Mark Webb-Johnson:<br class="">
>>> >>> Michael,<br class="">
>>> >>><br class="">
>>> >>> 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 class="">
>>> >>> ESP32, a BME280 pressure/humidity/temperature sensor, waterproof ultrasonic distance sensor, and SSID1306 OLED yellow/blue display):<br class="">
>>> >>><br class="">
>>> >>><br class="">
>>> >>> Adding a display to a project makes it so much more useful and easy to diagnose problems.<br class="">
>>> >>><br class="">
>>> >>> AliExpress has them very cheap:<br class="">
>>> >>><br class="">
>>> >>> * <a href="https://www.aliexpress.com/item/32844104782.html" target="_blank" class="">https://www.aliexpress.com/item/32844104782.html</a><br class="">
>>> >>> US$2 for the 0.96” yellow/blue 128x32<br class="">
>>> >>> US$3 for the 1.3” white 128x64<br class="">
>>> >>><br class="">
>>> >>><br class="">
>>> >>> There is also a 4MB ESP32 with a 0.96” OLED display on-board:<br class="">
>>> >>><br class="">
>>> >>> * <a href="https://www.aliexpress.com/item/32822105291.html" target="_blank" class="">https://www.aliexpress.com/item/32822105291.html</a><br class="">
>>> >>> US$9 plus shipping<br class="">
>>> >>><br class="">
>>> >>><br class="">
>>> >>> Glad that you are finding a use for our JavaScript support. I really think that has so many possibilities.<br class="">
>>> >>><br class="">
>>> >>> Regards, Mark<br class="">
>>> >>><br class="">
>>> >>>> On 6 Oct 2019, at 10:43 PM, Michael Balzer <<a href="mailto:dexter@expeedo.de" class="">dexter@expeedo.de</a> <<a href="mailto:dexter@expeedo.de" class="">mailto:dexter@expeedo.de</a>>> wrote:<br class="">
>>> >>>><br class="">
>>> >>>> FYI: I've just implemented an OVMS v3 style replacement for the SimpleConsole:<br class="">
>>> >>>><br class="">
>>> >>>> <a href="https://github.com/dexterbg/WifiConsole" target="_blank" class="">https://github.com/dexterbg/WifiConsole</a><br class="">
>>> >>>><br class="">
>>> >>>> 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 class="">
>>> >>>><br class="">
>>> >>>> Regards,<br class="">
>>> >>>> Michael<br class="">
>>> >><br class="">
>>> >> --<br class="">
>>> >> Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal<br class="">
>>> >> Fon 02333 / 833 5735 * Handy 0176 / 206 989 26<br class="">
>>> >><br class="">
>>> >> _______________________________________________<br class="">
>>> >> OvmsDev mailing list<br class="">
>>> >> <a href="mailto:OvmsDev@lists.openvehicles.com" class="">OvmsDev@lists.openvehicles.com</a><br class="">
>>> >> <a href="http://lists.openvehicles.com/mailman/listinfo/ovmsdev" target="_blank" class="">http://lists.openvehicles.com/mailman/listinfo/ovmsdev</a><br class="">
>>> >><br class="">
>>> > _______________________________________________<br class="">
>>> > OvmsDev mailing list<br class="">
>>> > <a href="mailto:OvmsDev@lists.openvehicles.com" class="">OvmsDev@lists.openvehicles.com</a><br class="">
>>> > <a href="http://lists.openvehicles.com/mailman/listinfo/ovmsdev" target="_blank" class="">http://lists.openvehicles.com/mailman/listinfo/ovmsdev</a><br class="">
>>><br class="">
>>> _______________________________________________<br class="">
>>> OvmsDev mailing list<br class="">
>>> <a href="mailto:OvmsDev@lists.openvehicles.com" class="">OvmsDev@lists.openvehicles.com</a><br class="">
>>> <a href="http://lists.openvehicles.com/mailman/listinfo/ovmsdev" target="_blank" class="">http://lists.openvehicles.com/mailman/listinfo/ovmsdev</a><br class="">
>>>  <br class="">
>>>  <br class="">
>>><br class="">
>>> _______________________________________________<br class="">
>>> OvmsDev mailing list<br class="">
>>> <a href="mailto:OvmsDev@lists.openvehicles.com" class="">OvmsDev@lists.openvehicles.com</a><br class="">
>>> <a href="http://lists.openvehicles.com/mailman/listinfo/ovmsdev" target="_blank" class="">http://lists.openvehicles.com/mailman/listinfo/ovmsdev</a><br class="">
>>><br class="">
>>>  <br class="">
>>> --<br class="">
>>> Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal<br class="">
>>> Fon 02333 / 833 5735 * Handy 0176 / 206 989 26<br class="">
>>> _______________________________________________ OvmsDev mailing list <a href="mailto:OvmsDev@lists.openvehicles.com" class="">OvmsDev@lists.openvehicles.com</a> <a href="http://lists.openvehicles.com/mailman/listinfo/ovmsdev" target="_blank" class="">http://lists.openvehicles.com/mailman/listinfo/ovmsdev</a><br class="">
>>><br class="">
>>> _______________________________________________<br class="">
>>> OvmsDev mailing list<br class="">
>>> <a href="mailto:OvmsDev@lists.openvehicles.com" class="">OvmsDev@lists.openvehicles.com</a><br class="">
>>> <a href="http://lists.openvehicles.com/mailman/listinfo/ovmsdev" target="_blank" class="">http://lists.openvehicles.com/mailman/listinfo/ovmsdev</a><br class="">
>> --<br class="">
>> Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal<br class="">
>> Fon 02333 / 833 5735 * Handy 0176 / 206 989 26<br class="">
>><br class="">
>> _______________________________________________<br class="">
>> OvmsDev mailing list<br class="">
>> <a href="mailto:OvmsDev@lists.openvehicles.com" class="">OvmsDev@lists.openvehicles.com</a><br class="">
>> <a href="http://lists.openvehicles.com/mailman/listinfo/ovmsdev" target="_blank" class="">http://lists.openvehicles.com/mailman/listinfo/ovmsdev</a><br class="">
>><br class="">
> _______________________________________________<br class="">
> OvmsDev mailing list<br class="">
> <a href="mailto:OvmsDev@lists.openvehicles.com" class="">OvmsDev@lists.openvehicles.com</a><br class="">
> <a href="http://lists.openvehicles.com/mailman/listinfo/ovmsdev" target="_blank" class="">http://lists.openvehicles.com/mailman/listinfo/ovmsdev</a><br class="">
<br class="">
--<br class="">
Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal<br class="">
Fon 02333 / 833 5735 * Handy 0176 / 206 989 26<br class="">
<br class="">
_______________________________________________<br class="">
OvmsDev mailing list<br class="">
<a href="mailto:OvmsDev@lists.openvehicles.com" class="">OvmsDev@lists.openvehicles.com</a><br class="">
<a href="http://lists.openvehicles.com/mailman/listinfo/ovmsdev" target="_blank" class="">http://lists.openvehicles.com/mailman/listinfo/ovmsdev</a></div>
</div>
</div>
</div></div></div>
_______________________________________________<br class="">OvmsDev mailing list<br class=""><a href="mailto:OvmsDev@lists.openvehicles.com" class="">OvmsDev@lists.openvehicles.com</a><br class="">http://lists.openvehicles.com/mailman/listinfo/ovmsdev<br class=""></div></blockquote></div><br class=""></div></body></html>