anchor.diff:  
   -behaviour(gen_event).
   -export([init/1, handle_event/2, terminate/2, handle_call/2, handle_info/2, code_change/3]).
  --export([status_loop/2, get_status/0, influx_request/2]).
  +-export([status_loop/3, get_status/0, influx_request/2]).
   
   
   -define(MAXBODY, 10000).
   
   init(_Args) ->
  -    spawn_link(?MODULE, status_loop, [undefined, "0"]),
  +    spawn_link(?MODULE, status_loop, [undefined, "0", fun status_notice/1]),
       {ok, ok}.
   
   
  
positive.code:       {error, <<"http:", ErrMsg/binary>>}
    end.
  
  
  status_loop(LastStatus, LastModified) ->
      Url = <<"https://hacklab.ie.mk/sub?id=status">>,
      Options = [ {recv_timeout, 120000}, {follow_redirect, true} ],
      Headers = [ {if_modified_since, LastModified} ],
  
negative.code:             hackney:close(Ref),
              case Body of
                  LastStatus ->
                      status_loop(LastStatus, NewLastModified, Callback);
                  _ ->
                      %% status changed
                      Callback(Body),
                      status_loop(Body, NewLastModified, Callback)
              end;
          {_, _, _, Ref} ->
              hackney:close(Ref),
              status_loop(LastStatus, LastModified, Callback);
          {error, _} ->
              timer:sleep(1000),
              status_loop(LastStatus, LastModified, Callback)
      end.
  
  
  