fix(kiosk): report os_version in heartbeat (was never sent)

This commit is contained in:
Mitchell R 2026-05-22 20:25:29 +02:00
parent 1f0bcd1084
commit aff76b41f9
No known key found for this signature in database
2 changed files with 3 additions and 0 deletions

View file

@ -49,6 +49,8 @@ fn compatibility() -> String {
std::env::var("BF_RAUC_COMPATIBILITY").unwrap_or_else(|_| DEFAULT_COMPATIBILITY.to_string())
}
pub fn current_os_version_public() -> String { current_os_version() }
fn current_os_version() -> String {
if let Ok(s) = fs::read_to_string("/etc/betterframe/os-version") {
let trimmed = s.trim();

View file

@ -400,6 +400,7 @@ pub fn heartbeat(
.header("Authorization", format!("Bearer {key}"))
.json(&serde_json::json!({
"kiosk_app_version": kiosk_app_version(),
"os_version": crate::os_update::current_os_version_public(),
"displays": display_info,
"cpu_temp_c": hw.cpu_temp_c,
"cpu_load_percent": hw.cpu_load_percent,