[Ovmsdev] OTA Automatic updates (middle of the night)

Mark Webb-Johnson mark at webb-johnson.net
Sun Apr 29 22:39:37 HKT 2018


The last piece of the puzzle falls into place.

OVMS# config set auto ota yes
OVMS# config set ota auto.hour 2

Module will wake up sometime between 2am and 3am, and if wifi is available it will check the available server version (according to OTA tag and server url). If the server has a later version, the module will download and flash that new version then reboot into it.

I’ve also brought in the strverscmp function for GNU library, which is generally useful for comparing versions.

Enjoy.

Regards, Mark.

> Begin forwarded message:
> 
> From: GitHub <noreply at github.com>
> Subject: [openvehicles/Open-Vehicle-Monitoring-System-3] 1a4301: Bring in GNU strverscmp component, and test comman...
> Date: 29 April 2018 at 10:23:54 PM HKT
> To: mark at webb-johnson.net
> Reply-To: GitHub <noreply at github.com>
> 
>  Branch: refs/heads/master
>  Home:   https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3
>  Commit: 1a4301d7ca1c7ed619109dfcb2e832a599af7dda
>      https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3/commit/1a4301d7ca1c7ed619109dfcb2e832a599af7dda
>  Author: Mark Webb-Johnson <mark at webb-johnson.net>
>  Date:   2018-04-29 (Sun, 29 Apr 2018)
> 
>  Changed paths:
>    A vehicle/OVMS.V3/components/strverscmp/component.mk
>    A vehicle/OVMS.V3/components/strverscmp/src/strverscmp.c
>    A vehicle/OVMS.V3/components/strverscmp/src/strverscmp.h
>    M vehicle/OVMS.V3/main/test_framework.cpp
> 
>  Log Message:
>  -----------
>  Bring in GNU strverscmp component, and test command
> 
> 
>  Commit: 58fa1b57448d3491889e3d1d3f487e475d036c92
>      https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3/commit/58fa1b57448d3491889e3d1d3f487e475d036c92
>  Author: Mark Webb-Johnson <mark at webb-johnson.net>
>  Date:   2018-04-29 (Sun, 29 Apr 2018)
> 
>  Changed paths:
>    M vehicle/OVMS.V3/components/ovms_ota/src/ovms_ota.cpp
>    M vehicle/OVMS.V3/components/ovms_ota/src/ovms_ota.h
> 
>  Log Message:
>  -----------
>  AutoFlash implementation:
> Config auto[ota]=yes
> Config ota[auto.hour]=2
> 
> 
> Compare: https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3/compare/87d80c30825b...58fa1b57448d

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvehicles.com/pipermail/ovmsdev/attachments/20180429/a2b3e368/attachment.html>


More information about the OvmsDev mailing list