NEXTION afficheur » History » Version 16
Frédéric Blanc, 2021-04-17 11:58
1 | 1 | Frédéric Blanc | h1. NEXTION afficheur |
---|---|---|---|
2 | |||
3 | !clipboard-202104121515-bo7ko.png! |
||
4 | |||
5 | 11 | Frédéric Blanc | https://nextion.tech |
6 | |||
7 | 12 | Frédéric Blanc | h2. Nextion Editor |
8 | |||
9 | https://nextion.tech/nextion-editor/ |
||
10 | |||
11 | 5 | Frédéric Blanc | h2. jeux d'intruction |
12 | |||
13 | https://nextion.tech/instruction-set/ |
||
14 | |||
15 | 8 | Frédéric Blanc | |
16 | <code><pre> |
||
17 | 13 | Frédéric Blanc | nextion,page 1 //changer de page |
18 | 6 | Frédéric Blanc | Nextion,page0.objname.txt="bonjour" //objet texte |
19 | 10 | Frédéric Blanc | nextion,page0.x0.val=215 //objet float 21.5 |
20 | 6 | Frédéric Blanc | NEXTION,page0.j0.val=60 //objet numérique (Number, Progress bar) |
21 | 1 | Frédéric Blanc | NEXTION,page0.j0.bco=RED //couleur de fond |
22 | 13 | Frédéric Blanc | NEXTION,dim=40 //luminosité de l'écran à 40 (de 0 à 100) |
23 | 7 | Frédéric Blanc | NEXTION,sleep=1 //le Nextion passe en veille, l'écran s'éteint |
24 | 6 | Frédéric Blanc | NEXTION,sleep=0 //réveille le Nextion et l'écran se rallume |
25 | 8 | Frédéric Blanc | </pre></code> |
26 | 3 | Frédéric Blanc | |
27 | 14 | Frédéric Blanc | h2. BARGRAPH |
28 | |||
29 | 15 | Frédéric Blanc | !clipboard-202104171152-htsyx.png! |
30 | |||
31 | 14 | Frédéric Blanc | <code><pre> |
32 | On Clock#Time=All,**:** do //toutes les minutes |
||
33 | nextion,page 0 //affichage de la page 0 |
||
34 | nextion,page0.heure.txt="%systm_hm%" //affichage de l'heure format 00:00 |
||
35 | Let,1,[mqtt#temp]*10 //variable locale |
||
36 | nextion,page0.x0.val=[var#1] //affichage d'un floatant |
||
37 | nextion,page0.g0.txt="Bonjour" //affichage |
||
38 | timerSet,1,30 //timer 30s |
||
39 | endon |
||
40 | |||
41 | On Rules#Timer=1 do |
||
42 | nextion,page 1 |
||
43 | nextion,page1.x0.val=[var#1] |
||
44 | Let,1,[var#1]/10+25 |
||
45 | 16 | Frédéric Blanc | nextion,page1.thermo.val=[var#1#F] //affichage BARGRAPH (#F arrondie) de 0 à 100 |
46 | 14 | Frédéric Blanc | Publish %sysname%/IP,%ip% |
47 | endon |
||
48 | </pre></code> |
||
49 | |||
50 | log exemple |
||
51 | <code><pre> |
||
52 | 7413718: ACT : Let,1,194/10+25 |
||
53 | 7413723: ACT : nextion,page1.thermo.val=44 |
||
54 | </pre></code> |
||
55 | |||
56 | 1 | Frédéric Blanc | https://www.letscontrolit.com/wiki/index.php/NEXTIONDisplay |
57 | |||
58 | https://www.letscontrolit.com/wiki/index.php?title=Nextion |
||
59 | 3 | Frédéric Blanc | |
60 | https://forum.jeedom.com/viewtopic.php?t=26350 |
||
61 | 4 | Frédéric Blanc | |
62 | https://community.jeedom.com/t/controler-jeedom-avec-un-ecran-nextion/11730 |