move hass config to main

This commit is contained in:
2026-01-03 17:37:08 +01:00
parent b8589181a7
commit 42d3d4359b
5 changed files with 47 additions and 36 deletions

View File

@@ -3,7 +3,7 @@
int main() {
Application::Config config;
config.lcd_port = "/dev/serial/by-id/usb-Raspberry_Pi_Pico_E6616407E37AA12F-if00";
config.lcd_port = "/dev/serial/by-id/usb-Raspberry_Pi_Pico_E6616407E37AA12F-if00"; // tis a symlink, can also be just /dev/ttyACM0)
config.lcd_interval_ms = 500;
config.lcd_contrast = 215;
config.cpu_pciaddr = "0000:00:18.3";
@@ -11,8 +11,11 @@ int main() {
config.sys_sensor = "nct6775.656";
config.sys_ifname = "enp4s0f0";
config.home_dir = "/home/drath";
config.hass_url = "home.drath.win";
config.hass_entity = "sensor.gniazdko_komputer_moc";
config.hass_token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiI0MzUxMTZiY2VjNTg0MTI3OGI4YmU0NTY4ZGQ5MzIyYiIsImlhdCI6MTc1NzQzMDI0MCwiZXhwIjoyMDcyNzkwMjQwfQ.6wKTlxEA0FLWfv-qW35vewUSvTxdVrZWqFwHT5Khu6E";
Application app(config); // tis a symlink, can also be just /dev/ttyACM0)
app.Run();
Application App(config);
App.Run();
return 0;
}