mirror of
https://github.com/gethomepage/homepage.git
synced 2025-07-09 03:04:18 -04:00
Updated Information Widgets (markdown)
parent
c1e4b0f74e
commit
6f0a369a6e
@ -11,8 +11,6 @@ As an example, we'll place two resource widgets, one that reports all stats, and
|
|||||||
disk: /mnt/storage
|
disk: /mnt/storage
|
||||||
|
|
||||||
- resources:
|
- resources:
|
||||||
cpu: false
|
|
||||||
memory: false
|
|
||||||
disk: /mnt/backups
|
disk: /mnt/backups
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -34,6 +32,24 @@ The disk path is the path reported by `df` (Mounted On), or the mount point of t
|
|||||||
disk: /disk/mount/path
|
disk: /disk/mount/path
|
||||||
```
|
```
|
||||||
|
|
||||||
|
You can also pass a `label` option, which allows you to group resources under named sections,
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
- resources:
|
||||||
|
label: System
|
||||||
|
cpu: true
|
||||||
|
memory: true
|
||||||
|
|
||||||
|
- resources:
|
||||||
|
label: Storage
|
||||||
|
disk: /mnt/storage
|
||||||
|
```
|
||||||
|
|
||||||
|
Which produces something like this,
|
||||||
|
|
||||||
|
<img width="413" alt="Screenshot 2022-08-27 at 2 52 20 AM" src="https://user-images.githubusercontent.com/82196/187005111-57a29f5c-96d5-4dab-bedc-eaecf3de5c57.png">
|
||||||
|
|
||||||
|
|
||||||
## Weather
|
## Weather
|
||||||
|
|
||||||
The weather widget uses the weatherapi.com API, so you will need to [register](https://www.weatherapi.com/signup.aspx) and grab your API key (free tier is more than enough).
|
The weather widget uses the weatherapi.com API, so you will need to [register](https://www.weatherapi.com/signup.aspx) and grab your API key (free tier is more than enough).
|
||||||
|
Loading…
x
Reference in New Issue
Block a user