22 lines
838 B
C++
22 lines
838 B
C++
#include <app.hpp>
|
|
|
|
int main() {
|
|
Application::Config config;
|
|
|
|
config.lcd.port = "/dev/serial/by-id/usb-Raspberry_Pi_Pico_E6616407E37AA12F-if00"; // tis a symlink, can also be just /dev/ttyACM0)
|
|
config.lcd.refresh_interval_ms = 500;
|
|
config.lcd.contrast = 215;
|
|
config.cpu_pciaddr = "0000:00:18.3";
|
|
config.gpu_pciaddr = "0000:0b:00.0";
|
|
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);
|
|
App.Run();
|
|
return 0;
|
|
}
|