[Ovmsdev] General trip & grid log proposal

Steve Davies steve at telviva.co.za
Thu Jan 14 23:53:40 HKT 2021

On Thu, 14 Jan 2021 at 09:23, Michael Balzer <dexter at expeedo.de> wrote:

> Both are historical records, i.e. kept on the server until deletion or
> expiry. If you're looking for a GPS log, we've already got that in form of
> the "L" messages. These are kept for 24 hours, and the log frequency adapts
> to user choice and App connection state ("streaming mode", feature #8 /
> config vehicle stream).


Is there documentation that I failed to find?  IE "feature #8" - seems like
from a list somewhere?

I'm working at the moment with the MQTT server.

In the mqtt server code I found "m_streaming" and it looks like I need
"config set vehicle stream 1"

If I understand correctly this will result in metrics being published to
mqtt as soon as they change.

Looking at the code I'm also trying to understand what exactly a "client"
is.  Here's how it looks to me:  a client sends a message with topic
<prefix>/client/<clientid>/active with the payload being non-0 to "connect"
and 0 or empty to disconnect.   Must send that at least once every 120
seconds to stay connected.

With a client "connected" the MQTT server will send metrics at
the updatetime.connected rate rather than the idle rate
(nowithstanding that with "stream 1" they are sent immediately).

Clients can also send commands too: <prefix>/client/<clientid>/command

Am I on the right track?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvehicles.com/pipermail/ovmsdev/attachments/20210114/eb11da9c/attachment-0003.htm>

More information about the OvmsDev mailing list