farmbot v6.4.1 Farmbot.System.Updates View Source

Handles over the air updates.

Link to this section Summary

Functions

Apply an OS (fwup) firmware

Force check for updates. Does NOT download or apply update

Returns a specification to start this module under a supervisor

Downloads and applies an update file

HTTP request to fetch a Release

Overwrite os update server field

Finds a asset url if it exists, nil if not

Link to this section Functions

Link to this function apply_firmware(is_beta?, file_path, reboot) View Source

Apply an OS (fwup) firmware.

Link to this function check_updates(release \\ nil, current_stuff \\ nil) View Source

Force check for updates. Does NOT download or apply update.

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function download_and_apply_update(arg) View Source

Downloads and applies an update file.

Link to this function get_release_from_url(url) View Source

HTTP request to fetch a Release.

Link to this function override_update_server(url) View Source

Overwrite os update server field

Link to this function try_find_dl_url_in_asset(assets, version, current_stuff) View Source
try_find_dl_url_in_asset(
  [
    %Farmbot.System.Updates.Release.Asset{
      browser_download_url: term(),
      name: term()
    }
  ],
  Version.t(),
  %Farmbot.System.Updates.CurrentStuff{
    beta_opt_in: term(),
    commit: term(),
    currently_on_beta: term(),
    env: term(),
    os_update_server_overwrite: term(),
    target: term(),
    token: term(),
    version: term()
  }
) :: {Version.t(), String.t()}

Finds a asset url if it exists, nil if not.