Homepage Integration (Optional)
Homepage ek anukoolit dashboard application hai. Homepage ke saath duplistatus ko integrate karne ke liye, services.yaml file mein Custom API widget type ka upyog karke ek widget joden.
Summary Widget
Yah widget aapke Homepage dashboard par samagra backup aankade pradarshit karta hai.
- Dashboard:
icon: mdi-cloud-upload
href: http://your-server:9666/
widget:
type: customapi
url: http://your-server:9666/api/summary
display: list
refreshInterval: 60000
mappings:
- field: totalServers
label: Servers
- field: totalBackups
label: Backups received
- field: secondsSinceLastBackup
label: Last backup
format: duration
- field: totalBackupSize
label: Backed up size
format: number
scale: 0.000000001
suffix: GB
- field: totalStorageUsed
label: Storage used
format: number
scale: 0.000000001
suffix: GB
- field: totalUploadedSize
label: Uploaded size
format: number
scale: 0.000000001
suffix: GB
Widget Display:

Last Backup Information Widget
Yah widget ek vishisht machine ke liye antim backup jaankaaree pradarshit karta hai.
- Test Machine 1:
icon: mdi-test-tube
widget:
type: customapi
url: http://your-server:9666/api/lastbackup/Test%20Machine%201
display: list
refreshInterval: 60000
mappings:
- field: latest_backup.name
label: Backup name
- field: latest_backup.status
label: Result
- field: latest_backup.date
label: Date
format: relativeDate
- field: latest_backup.duration
label: Duration
- field: latest_backup.uploadedSize
label: Bytes Uploaded
format: number
scale: 0.000001
suffix: MB
- field: latest_backup.backup_list_count
label: Versions
Widget Display:

Configuration Notes
your-serverko apne server ke IP pata ya hostname se badalen.refreshIntervalko avashyakta anusar adjust karen (milliseconds mein).- URL mein machine naamon mein space ko
%20se badalen (udaharan ke liye,Test Machine 1Test%20Machine%201ban jaata hai). scalemaanon bytes ko adhik padhne yogya ikaiyon (GB, MB) mein parivartit karte hain.