Updated Information Widgets (markdown)

Ben Phelps 2022-08-27 02:55:41 +03:00
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
- resources:
cpu: false
memory: false
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
```
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
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).