Drupal authentication is done, and working against mosquitto now on the live api.openvehicles.com site. Plain text MQTT only at the moment (I still need to get mosquitto and OVMS module firmware supporting SSL).

To configure OVMS v3 to use Server V3 protocol:

  1. config set:
  2. server v3 start

  3. Can also 'config set auto server.v3 yes’ to auto-start at boot

If you have an MQTT client, you can connect to the same server to query the metrics, issue commands, etc. The default topic hierarchy is ovms/<username>/<vehicleid>.

I think we are close now. Just need SSL support. And then Apps…

Feedback appreciated.

Regards, Mark.

On 10 Jul 2018, at 2:42 PM, Mark Webb-Johnson <mark@webb-johnson.net> wrote:

I’ve just pushed the support for notifications in OVMS Server v3.

With that, the server v3 is functionally complete (at least on the car side). We can:

  1. Connect/disconnect
  2. Handle lists of apps connecting/disconnecting
  3. Send metrics
  4. Send events
  5. Send notifications (including info, error, alert, and historical data)
  6. Receive commands, run them, and return the results

I’m still struggling against drupal authentication at the server side; once that is done we can open this up to wider testing.

Overall, I’m pretty happy with it. We need SSL/TLS support, but at least functionally now it works and is complete.

Regards, Mark

On 6 Jul 2018, at 4:16 PM, Mark Webb-Johnson <mark@webb-johnson.net> wrote:

I suppose the following topic names:
metrics:       <prefix>/metric/#
events:        <prefix>/event/#
notifications: <prefix>/notify/#
config:        <prefix>/config/#
logs:          <prefix>/log/<tag>
active:        <prefix>/client/<clientid>/active
requests:      <prefix>/client/<clientid>/request/#
commands:      <prefix>/client/<clientid>/command/<command id>
cmd responses: <prefix>/client/<clientid>/response/<command id>

All ok. I am fine with this, and looks clean. I will make the changes today, as I want to get this into some cars asap so we can get a feel for how it behaves.

Ok. Now implemented, and tested:

  • <prefix>/metric/#
  • <prefix>/client/<clientid>/active
  • <prefix>/client/<clientid>/command/<command id>
  • <prefix>/client/<clientid>/response/<command id>

I don’t think config, logs, and requests are critical or urgent. So, I will try to finish events tonight (as that is relatively simple). Notifications over the weekend (more tricky, especially for historical data). It can go in my car with tonight’s nightly ota, for real world testing.

I’m still trying to get the authentication working for drupal vs mosquitto. Once that is done, I can open up api.openvehicles.com MQTT for public use. If I can’t get it done within the next couple of days, I’ll try another broker (lua scripting, anyone?).

P.S. Commands over MQTT are pretty cool:

<PastedGraphic-2.tiff>
<PastedGraphic-3.tiff>

Regards, Mark.
_______________________________________________
OvmsDev mailing list
OvmsDev@lists.openvehicles.com
http://lists.openvehicles.com/mailman/listinfo/ovmsdev

_______________________________________________
OvmsDev mailing list
OvmsDev@lists.openvehicles.com
http://lists.openvehicles.com/mailman/listinfo/ovmsdev