SystemAgent/misc/agent_config.cfg.rpi4

102 lines
2.3 KiB
Plaintext
Raw Normal View History

version = "1.0";
agent: {
common: {
log_level = 1;
};
2021-07-06 17:40:58 +00:00
devices: {
dht: {
i2c: {
path = "/dev/i2c-1";
addr = 0x76;
};
2021-07-25 15:22:04 +00:00
};
2021-07-14 15:23:06 +00:00
tvoc: {
i2c: {
path = "/dev/i2c-1";
2021-07-17 15:13:54 +00:00
addr = 0x5a;
2021-07-14 15:23:06 +00:00
};
nwake_pin: {
2021-07-17 15:13:54 +00:00
path = "/dev/gpiochip0";
line = 6;
2021-07-14 15:23:06 +00:00
};
};
lcd: {
spi: {
path = "/dev/spidev0.1";
clock_speed = 24000000;
};
dc_pin: {
path = "/dev/gpiochip0";
line = 24;
};
reset_pin: {
path = "/dev/gpiochip0";
line = 23;
};
backlight_pin: {
path = "/dev/gpiochip0";
line = 12;
};
};
2021-07-06 17:40:58 +00:00
2021-06-29 18:28:58 +00:00
stick: {
up: {
path = "/dev/gpiochip2";
line = 1;
};
down: {
path = "/dev/gpiochip2";
line = 3;
};
left: {
path = "/dev/gpiochip2";
line = 2;
};
right: {
path = "/dev/gpiochip2";
line = 4;
};
push: {
path = "/dev/gpiochip2";
line = 0;
};
};
};
libraries: {
lvgl: {
fs_base = "lvgl_fs";
2021-07-27 13:47:38 +00:00
logging_enabled = false;
};
2021-10-22 20:19:46 +00:00
mqtt: {
server: {
host = "127.0.0.1";
port = 1883;
keepalive = 30;
topic = "test_topic";
};
client: {
id_prefix = "SA_";
username = "test_account";
password = "test_password";
};
tls: {
enabled = true;
psk = "";
ca_file = ""; # Either ca_file or ca_path must not be null.
ca_path = "/etc/ca-certificates";
client_cert_file = "";
client_key_file = "";
};
};
};
theme: {
2021-07-25 15:22:04 +00:00
background = "A:images/background.bin";
};
};