turns out we can read motherboard sensors

This commit is contained in:
Drath
2025-10-07 18:25:40 +02:00
parent 6f09d9a9eb
commit 9ec37e2f14
2 changed files with 18 additions and 0 deletions

View File

@@ -13,6 +13,12 @@ namespace sys {
const char months[][4] = {"sty", "lut", "mar", "kwi", "maj", "cze", "lip", "sie", "wrz", "paz", "lis", "gru"};
const char wdays[][4] = {"Nie", "Pon", "Wto", "Sro", "Czw", "Pia", "Sob"};
struct sysSensors {
std::string hwmon = "";
uint16_t fan_speed[2] = {0}; // left and right cpu fans
uint8_t t_sensor = 0; // ntc temp sensor
};
struct Memory {
uint64_t free = 0;
uint64_t used = 0;
@@ -27,6 +33,8 @@ struct TimeDate {
void getTimeDate(TimeDate* td);
void getDisk(Memory* disk, std::string mount);
void getRam(Memory* mem);
void detectHwmon(sysSensors* s);
void updateSensors(sysSensors* s);
} // namespace sys