Thanks Mark 🙂 Now I need to install Mosquito or similar. Just wish I had more time…

Geir

20. jan. 2018 kl. 08:56 skrev Mark Webb-Johnson <mark@webb-johnson.net>:

Sure. Done.

Please note that we also want to limit the impact on the server these updates make. But, that can presumably be handled at the server side (which should never trust the clients anyway).

I’ve also implemented the periodic updates for v3 server connections. Seems much better now.

Regards, Mark.

On 19 Jan 2018, at 6:58 PM, Geir Øyvind Vælidalo <geir@validalo.net> wrote:

Nice, Mark!

I look forward to test this :-)

Regarding the sending frequency, for both V2 and V3, could we have it user
definable? I have quite a large amount of data on my subscription, and
would like OVMS to send data to the server as often as possible.
I was think once every N seconds. Default could of course be once every N
minutes, but I'd like the possibility to send updates more often

Best regards,
Geir

I’ve committed a proof-of-concept for the server v3. Trying to keep this
to just simple pure MQTT, so it can operate with any standard MQTT server.

Of course, we’ll need our own api conventions on top of MQTT, but the
basic metrics should work with any standard client/server. Screenshot
below is from MQTTInspector on iPad, and I’m using a mosquito server.

Don’t try this over cellular, as it currently sends metrics in real time
as they change. For the final implementation, we’ll poll them in a
similar way to v2 and only send changed ones once every N minutes.

Regards, Mark


_______________________________________________
OvmsDev mailing list
OvmsDev@lists.teslaclub.hk
http://lists.teslaclub.hk/mailman/listinfo/ovmsdev



_______________________________________________
OvmsDev mailing list
OvmsDev@lists.teslaclub.hk
http://lists.teslaclub.hk/mailman/listinfo/ovmsdev

_______________________________________________
OvmsDev mailing list
OvmsDev@lists.teslaclub.hk
http://lists.teslaclub.hk/mailman/listinfo/ovmsdev