awtrix3 icon indicating copy to clipboard operation
awtrix3 copied to clipboard

Broker Mosquitto / awtrix + OpenDtu

Open steflp opened this issue 2 years ago • 4 comments

Hi ,
Ive openDTU with solar panel. I want to send data topic from DTU to topic awtrix . I Dont use Home Assistant so I must find a solution homemade , i suppose.

My topics in Mqtt : image

Can someone help / explain ?

Many Thanks

steflp avatar May 01 '24 22:05 steflp

use node-red as middle man

Bildschirmfoto vom 2024-05-02 18-12-11

my function node:

var value = Math.round( msg.payload );
var unit = "Wh";


msg.payload = {  
    "text": value + '' + unit,
    "icon": "power_gen", 
    "repeat": 2, 
    "pushIcon": 0 
};

node.status({ fill: 'green', shape: 'ring', text: value + ' ' + unit});

return msg;

the other two purple nodes are mqtt in and mqtt out

PowerWiesel avatar May 02 '24 16:05 PowerWiesel

Hello, I install node red : it 's OK ( I dont know really how it s work )
I create Mqtt In with my solar/ac/yieldday I use your function (???) I create Mqtt out

But after i dont know realy how and what to do .... to see something in awtrix image

steflp avatar May 02 '24 18:05 steflp

You should join my discord for such questions. There are many users who might help you. I think GitHub issue is not the right place for that.

Blueforcer avatar May 02 '24 18:05 Blueforcer

ok ;) sorry ...

steflp avatar May 02 '24 18:05 steflp