How can I put the web tracar so that I paint in green those that are active, in yellow those that take a while without sending information and in red those that are stopped?
That's the way Traccar works by default. You don't need to configure anything special.
I'm assuming by active/stopped you mean network connection. If you are talking about device movement, then you would have to change code to do that.
How can I put the web tracar so that I paint in green those that are active, in yellow those that take a while without sending information and in red those that are stopped?