mirror of
https://github.com/BetterCorp/BetterFrame.git
synced 2026-05-26 16:56:33 +00:00
fix(kiosk): report os_version in heartbeat (was never sent)
This commit is contained in:
parent
1f0bcd1084
commit
aff76b41f9
2 changed files with 3 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue