Project

General

Profile

NEXTION afficheur » History » Revision 16

Revision 15 (Frédéric Blanc, 2021-04-17 11:52) → Revision 16/17 (Frédéric Blanc, 2021-04-17 11:58)

h1. NEXTION afficheur 

 !clipboard-202104121515-bo7ko.png! 

 https://nextion.tech 

 h2. Nextion Editor 

 https://nextion.tech/nextion-editor/ 

 h2. jeux d'intruction 

 https://nextion.tech/instruction-set/ 


 <code><pre> 
 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 
 </pre></code> 

 h2. BARGRAPH 

 !clipboard-202104171152-htsyx.png! 

 <code><pre> 
 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) de 0 à 100 
   Publish %sysname%/IP,%ip%   
 endon 
 </pre></code> 

 log exemple 
 <code><pre> 
 7413718: ACT : Let,1,194/10+25 
 7413723: ACT : nextion,page1.thermo.val=44 
 </pre></code> 

 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