erflux on git hub

"Alberto Perri" <[email protected]>
Newsgroups gmane.comp.lang.erlang.general
Message-ID <[email protected]>
Hello Erlang friends,

i have been trying to run InfluxDB client for Erlang. You will find it at https://github.com/gossiperl/erflux. Could any of you explain to me how to run it. 

In the erflux_sup.erl file there is a line of code after the Dyalizer section which states which erflux_http module must to pass to add_erflux/1 function
-spec add_erflux( Name :: atom() ) -> statup_result().
%% @doc Starts instance of erflux with a given name. If name other than erflux_http, pid() versions of erflux_http functions have to be used.
add_erflux(Name) ->
  add_erflux_internal( Name, #erflux_config{} ).a

Alternatively the README.md file states that it can be run using the following Erlang BIFS

Starting with default settings:

application:ensure_all_started(erflux),
erflux_sup:add_erflux(erflux_http),
erflux_http:get_databases().

in above BIF "application:ensure_all_started(erflux), " erflux is mentioned, but regardless of whether  I use erflux_http or eflux i get the following error

application:ensure_all_started(erflux), erflux_sup:add_erflux(erflux_http), erflux_http:get_databases().
** exception error: undefined function erflux_sup:add_erflux/1

I have compiled the *.erl files using "rebar3 compile" and can see the beam files in the ebin directories from the various applications. Can someone please help

Best regards,

  Alberto Perri
  [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.