2023-06-06 14:41:34 +00:00
|
|
|
defmodule WeewxProxy.Application do
|
|
|
|
@moduledoc false
|
|
|
|
|
|
|
|
use Application
|
|
|
|
|
|
|
|
@impl true
|
|
|
|
def start(_type, _args) do
|
|
|
|
children = [
|
|
|
|
WeewxProxy.Mqtt,
|
|
|
|
WeewxProxy.Publisher,
|
2023-06-06 19:12:49 +00:00
|
|
|
WeewxProxy.Http,
|
|
|
|
:systemd.ready()
|
2023-06-06 14:41:34 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
opts = [strategy: :one_for_one, name: WeewxProxy.Supervisor]
|
|
|
|
Supervisor.start_link(children, opts)
|
|
|
|
end
|
|
|
|
end
|