<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="">Drupal authentication is done, and working against mosquitto now on the live <a href="http://api.openvehicles.com" class="">api.openvehicles.com</a> site. Plain text MQTT only at the moment (I still need to get mosquitto and OVMS module firmware supporting SSL).<div class=""><br class=""></div><div class="">To configure OVMS v3 to use Server V3 protocol:</div><div class=""><br class=""></div><div class=""><ol class="MailOutline"><li class="">config set:<br class=""></li><ul class=""><li class="">vehicle id <vehicleid></li><li class="">server.v3 server <a href="http://api.openvehicles.com" class="">api.openvehicles.com</a></li><li class="">server.v3 port 1883</li><li class="">server.v3 user <<a href="http://openvehicles.com" class="">openvehicles.com</a> username></li><li class="">password server.v3 <<a href="http://openvehicles.com" class="">openvehicles.com</a> password><br class=""><br class=""></li></ul><li class="">server v3 start<br class=""><br class=""></li><li class="">Can also 'config set auto server.v3 yes’ to auto-start at boot</li></ol></div><div class=""><br class=""></div><div class="">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>.</div><div class=""><br class=""></div><div class="">I think we are close now. Just need SSL support. And then Apps…</div><div class=""><br class=""></div><div class="">Feedback appreciated.</div><div class=""><br class=""></div><div class="">Regards, Mark.<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 10 Jul 2018, at 2:42 PM, Mark Webb-Johnson <<a href="mailto:mark@webb-johnson.net" class="">mark@webb-johnson.net</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">I’ve just pushed the support for notifications in OVMS Server v3.<div class=""><br class=""></div><div class="">With that, the server v3 is functionally complete (at least on the car side). We can:</div><div class=""><br class=""></div><div class=""><ol class="MailOutline"><li class="">Connect/disconnect</li><li class="">Handle lists of apps connecting/disconnecting</li><li class="">Send metrics</li><li class="">Send events</li><li class="">Send notifications (including info, error, alert, and historical data)</li><li class="">Receive commands, run them, and return the results</li></ol></div><div class=""><br class=""></div><div class="">I’m still struggling against drupal authentication at the server side; once that is done we can open this up to wider testing.</div><div class=""><br class=""></div><div class="">Overall, I’m pretty happy with it. We need SSL/TLS support, but at least functionally now it works and is complete.</div><div class=""><br class=""></div><div class="">Regards, Mark<br class=""><div class=""><br class=""><blockquote type="cite" class=""><div class="">On 6 Jul 2018, at 4:16 PM, Mark Webb-Johnson <<a href="mailto:mark@webb-johnson.net" class="">mark@webb-johnson.net</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""><blockquote type="cite" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""><div class=""><blockquote type="cite" class=""><div class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""><blockquote type="cite" class="">I suppose the following topic names:<br class="">metrics:       <prefix>/metric/#<br class="">events:        <prefix>/event/#<br class="">notifications: <prefix>/notify/#<br class="">config:        <prefix>/config/#<br class="">logs:          <prefix>/log/<tag><br class="">active:        <prefix>/client/<clientid>/active<br class="">requests:      <prefix>/client/<clientid>/request/#<br class="">commands:      <prefix>/client/<clientid>/command/<command id><br class="">cmd responses: <prefix>/client/<clientid>/response/<command id></blockquote><br class=""></div><div class="">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.</div></div></div></blockquote></div></div></div></blockquote><div class=""><br class=""></div></div>Ok. Now implemented, and tested:<div class=""><br class=""></div><div class=""><ul class="MailOutline"><li class=""><prefix>/metric/#</li><li class=""><prefix>/client/<clientid>/active</li><li class=""><prefix>/client/<clientid>/command/<command id></li><li class=""><prefix>/client/<clientid>/response/<command id><br class=""></li></ul></div><div class=""><br class=""></div><div class="">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.</div><div class=""><br class=""></div><div class="">I’m still trying to get the authentication working for drupal vs mosquitto. Once that is done, I can open up <a href="http://api.openvehicles.com/" class="">api.openvehicles.com</a> 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?).</div><div class=""><br class=""></div><div class="">P.S. Commands over MQTT are pretty cool:</div><div class=""><br class=""></div><div class=""><span id="cid:CA3D58EE-C261-4309-962C-C02E4CE321F9" class=""><PastedGraphic-2.tiff></span></div><div class=""><span id="cid:22C730C2-2361-486F-9047-9B0D583F09AA" class=""><PastedGraphic-3.tiff></span></div><div class=""><br class=""></div><div class="">Regards, Mark.</div></div>_______________________________________________<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" class="">http://lists.openvehicles.com/mailman/listinfo/ovmsdev</a><br class=""></div></blockquote></div><br class=""></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>