Hi i've a max display and the hardware is working, but no i want differtent variables displayed on one display device,
I have 4 MQTT value's that i want to display every 5 seconds, this must be done by rules ?
How can i create a rule to display these 4 value for 5 seconds.
Divetens Value one one MAX7219 Display
Moderators: grovkillen, Stuntteam, TD-er
Re: Divetens Value one one MAX7219 Display
Something like this:
You can adjust the prefixes accordingly, of course and apply value formatting if desired.
Code: Select all
on system#boot do
LoopTimerSet,1,5 // Perpetual repeating timer
endon
on rules#timer=1 do
let,1,%v1%+1
if %v1% > 4
let,1,1
endif
if %v1%=1
DotMatrix,txt,1,"Value1: [MQTT#Value1]"
elseif %v1%=2
DotMatrix,txt,1,"Out 2: [MQTT#Value2]"
elseif %v1%=3
DotMatrix,txt,1,"Shed left: [MQTT#Value3]"
elseif %v1%=4
DotMatrix,txt,1,"Terras: [MQTT#Value4#D.1]" // 1 decimal
endif
endon
/Ton (PayPal.me)
Re: Divetens Value one one MAX7219 Display
Hey Thank you very much it solved my problem thankz
Who is online
Users browsing this forum: No registered users and 0 guests