Actions
NEXTION afficheur » History » Revision 14
« Previous |
Revision 14/17
(diff)
| Next »
Frédéric Blanc, 2021-04-17 11:50
NEXTION afficheur¶
Nextion Editor¶
https://nextion.tech/nextion-editor/
jeux d'intruction¶
https://nextion.tech/instruction-set/
nextion,page 1 //changer de page
Nextion,page0.objname.txt="bonjour" //objet texte
nextion,page0.x0.val=215 //objet float 21.5
NEXTION,page0.j0.val=60 //objet numérique (Number, Progress bar)
NEXTION,page0.j0.bco=RED //couleur de fond
NEXTION,dim=40 //luminosité de l'écran à 40 (de 0 à 100)
NEXTION,sleep=1 //le Nextion passe en veille, l'écran s'éteint
NEXTION,sleep=0 //réveille le Nextion et l'écran se rallume
BARGRAPH¶
On Clock#Time=All,**:** do //toutes les minutes
nextion,page 0 //affichage de la page 0
nextion,page0.heure.txt="%systm_hm%" //affichage de l'heure format 00:00
Let,1,[mqtt#temp]*10 //variable locale
nextion,page0.x0.val=[var#1] //affichage d'un floatant
nextion,page0.g0.txt="Bonjour" //affichage
timerSet,1,30 //timer 30s
endon
On Rules#Timer=1 do
nextion,page 1
nextion,page1.x0.val=[var#1]
Let,1,[var#1]/10+25
nextion,page1.thermo.val=[var#1#F] //affichage BARGRAPH (#F arrondie)
Publish %sysname%/IP,%ip%
endon
log exemple
7413718: ACT : Let,1,194/10+25
7413723: ACT : nextion,page1.thermo.val=44
https://www.letscontrolit.com/wiki/index.php/NEXTIONDisplay
https://www.letscontrolit.com/wiki/index.php?title=Nextion
https://forum.jeedom.com/viewtopic.php?t=26350
https://community.jeedom.com/t/controler-jeedom-avec-un-ecran-nextion/11730
Updated by Frédéric Blanc over 3 years ago · 17 revisions