47 lines
3.3 KiB
JSON
47 lines
3.3 KiB
JSON
{"page":0,"comment":"---------- Upper stat line ----------"}
|
|
|
|
{"id":11,"obj":"label","x":0,"y":0,"w":320,"pad_right":90,"h":22,"bg_color":"#D00000","bg_opa":255,"radius":0,"border_side":0,"text":"Zwembad","text_font":"montserrat-20"}
|
|
|
|
{"id":15,"obj":"lv_wifi_arcs","x":291,"y":0,"w":29,"h":22,"radius":0,"border_side":0,"bg_color":"#000000","line_color":"#FFFFFF"}
|
|
{"id":16,"obj":"lv_clock","x":232,"y":3,"w":55,"h":16,"radius":0,"border_side":0}
|
|
|
|
{"comment":"---------- Bottom buttons - prev/home/next ----------"}
|
|
{"id":101,"obj":"btn","x":20,"y":210,"w":80,"h":25,"action":"prev","bg_color":"#1fa3ec","radius":10,"border_side":1,"text":"\uF053","text_font":"montserrat-20"}
|
|
{"id":102,"obj":"btn","x":120,"y":210,"w":80,"h":25,"action":"back","bg_color":"#1fa3ec","radius":10,"border_side":1,"text":"\uF015","text_font":"montserrat-20"}
|
|
{"id":103,"obj":"btn","x":220,"y":210,"w":80,"h":25,"action":"next","bg_color":"#1fa3ec","radius":10,"border_side":1,"text":"\uF054","text_font":"montserrat-20"}
|
|
|
|
{"page":1,"comment":"---------- Page 1 ----------"}
|
|
{"id":0,"bg_color":"#0000A0","bg_grad_color":"#000000","bg_grad_dir":1,"text_color":"#FFFFFF"}
|
|
|
|
{"id":2,"obj":"arc","x":20,"y":65,"w":80,"h":100,"border_side":0,"type":0,"rotation":0,"start_angle":180,"end_angle":0,"start_angle1":180,"value_font":12,"value_ofs_x":0,"value_ofs_y":-14,"bg_opa":0,"text":"--.-°C","min":-10,"max":100,"val":0,"val_rule":"DS18B20-1#Temperature","val_rule_formula":"val","text_rule":"DS18B20-1#Temperature","text_rule_format":"%2.1f °C"}
|
|
{"id":3,"obj":"arc","x":120,"y":65,"w":80,"h":100,"border_side":0,"type":0,"rotation":0,"start_angle":180,"end_angle":0,"start_angle1":180,"value_font":12,"value_ofs_x":0,"value_ofs_y":-14,"bg_opa":0,"text":"--.-°C","min":-10,"max":100,"val":0,"val_rule":"DS18B20-2#Temperature","val_rule_formula":"val","text_rule":"DS18B20-2#Temperature","text_rule_format":"%2.1f °C"}
|
|
{"id":4,"obj":"arc","x":220,"y":65,"w":80,"h":100,"border_side":0,"type":0,"rotation":0,"start_angle":180,"end_angle":0,"start_angle1":180,"value_font":12,"value_ofs_x":0,"value_ofs_y":-14,"bg_opa":0,"text":"--.-°C","min":40,"max":200,"val":0,"val_rule":"ESP32#Temperature","val_rule_formula":"val * 10","text_rule":"ESP32#Temperature","text_rule_format":"%2.1f °C"}
|
|
|
|
{"id":5,"obj":"label","x":2,"y":35,"w":120,"text":"Temperature","align":2}
|
|
{"id":6,"obj":"label","x":20,"y":115,"w":60,"text":"Dak","align":1}
|
|
{"id":7,"obj":"label","x":120,"y":115,"w":50,"text":"in","align":1}
|
|
{"id":8,"obj":"label","x":220,"y":115,"w":50,"text":"uit","align":1}
|
|
|
|
|
|
{"page":2,"comment":"---------- Page 2 ----------"}
|
|
{"id":0,"bg_color":"#0000A0","bg_grad_color":"#000000","bg_grad_dir":1,"text_color":"#FFFFFF"}
|
|
|
|
{"comment":"---------- Wifi status ----------"}
|
|
{"id":20,"obj":"lv_wifi_graph","x":257,"y":25,"w":60,"h":40,"radius":0}
|
|
{"id":21,"obj":"lv_tasmota_info","x":3,"y":25,"w":251,"h":40,"radius":0}
|
|
{"id":22,"obj":"lv_tasmota_log","x":3,"y":68,"w":314,"h":90,"radius":0,"text_font":12}
|
|
|
|
|
|
lv_obj_t * qr = lv_qrcode_create(lv_scr_act());
|
|
lv_qrcode_set_size(qr, 150);
|
|
lv_qrcode_set_dark_color(qr, fg_color);
|
|
lv_qrcode_set_light_color(qr, bg_color);
|
|
|
|
/*Set data*/
|
|
const char * data = "https://lvgl.io";
|
|
lv_qrcode_update(qr, data, strlen(data));
|
|
lv_obj_center(qr);
|
|
|
|
/*Add a border with bg_color*/
|
|
lv_obj_set_style_border_color(qr, bg_color, 0);
|
|
lv_obj_set_style_border_width(qr, 5, 0); |