diff --git a/glance-system/glance-kisfenyo.yaml b/glance-system/glance-kisfenyo.yaml index 4763575..868d715 100644 --- a/glance-system/glance-kisfenyo.yaml +++ b/glance-system/glance-kisfenyo.yaml @@ -842,6 +842,61 @@ data: + - type: custom-api + title: RomM + cache: 1d + url: http://${ROMM_URL}/api/stats + headers: + Accept: application/json + template: | + {{ $bytes := .JSON.Int "TOTAL_FILESIZE_BYTES" | toFloat }} + {{ $tb := div $bytes 1099511627776 }} + {{ $gb := div $bytes 1073741824 | toInt }} + +