anchor.diff:  doit(IrcBot, Channel) ->
     spawn(fun() ->
       Job1 = rpc:async_call(node(), ?MODULE, get_status, []),
  -    Job2 = rpc:async_call(node(), ?MODULE, get_temps, []),
  +    Job2 = rpc:async_call(node(), ?MODULE, influx_request, [<<"outside,hardware_room,random_room,lounge_area">>, <<"temperatures">>]),
  +    Job3 = rpc:async_call(node(), ?MODULE, influx_request, [<<"value">>, <<"landevices">>]),
   
       % TODO handle timeouts of yield and hackney errors
       Status = case rpc:yield(Job1) of
  
positive.code:       {Json} = couchbeam_ejson:decode(Body),
        [{Result0}|_] = proplists:get_value(<<"results">>, Json),
        [{Serie0}|_] = proplists:get_value(<<"series">>, Result0),
        [[_Timestamp|Temps]] = proplists:get_value(<<"values">>, Serie0),
        Temps;
      _ ->
        ErrMsg = list_to_binary(integer_to_list(StatusCode)),
        {error, <<"http:", ErrMsg/binary>>}
  
negative.code:     Temperature = case rpc:yield(Job2) of
        {error, ErrMsg2} ->
          <<"Температури: непознато ("/utf8, ErrMsg2/binary, ")"/utf8>>;
        {ok, Temps} ->
          Temps1 = [float_to_binary(float(T), [{decimals,2}]) || T <- Temps],
          Temps2 = hackney_bstr:join(Temps1, ", "),
          <<"Температури: "/utf8, Temps2/binary>>
      end,
  
      Devices = case rpc:yield(Job3) of
        {error, ErrMsg3} ->
          <<"Непознато уреди во мрежа ("/utf8, ErrMsg3/binary,")"/utf8>>;
        {ok, [N]} ->
          Num = hackney_bstr:to_binary(N),
          <<"Уреди во мрежа: "/utf8, Num/binary>>
      end,
  
      Response = hackney_bstr:join([Status, Temperature, Devices, <<"http://status.spodeli.org/"/utf8>>], <<" • "/utf8>>),
      IrcBot:privmsg(Channel, Response)
    end).
  
  