You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/configuration.md
+129-19
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,7 @@
14
14
-[Weather](#weather)
15
15
-[Monitor](#monitor)
16
16
-[Releases](#releases)
17
+
-[Repository](#repository)
17
18
-[Bookmarks](#bookmarks)
18
19
-[Calendar](#calendar)
19
20
-[Stocks](#stocks)
@@ -250,18 +251,26 @@ pages:
250
251
```
251
252
252
253
### Properties
253
-
| Name | Type | Required |
254
-
| ---- | ---- | -------- |
255
-
| title | string | yes |
256
-
| slug | string | no |
257
-
| columns | array | yes |
254
+
| Name | Type | Required | Default |
255
+
| ---- | ---- | -------- | ------- |
256
+
| title | string | yes | |
257
+
| slug | string | no | |
258
+
| show-mobile-header | boolean | no | false |
259
+
| columns | array | yes | |
258
260
259
261
#### `title`
260
262
The name of the page which gets shown in the navigation bar.
261
263
262
264
#### `slug`
263
265
The URL friendly version of the title which is used to access the page. For example if the title of the page is "RSS Feeds" you can make the page accessible via `localhost:8080/feeds` by setting the slug to `feeds`. If not defined, it will automatically be generated from the title.
264
266
267
+
#### `show-mobile-header`
268
+
Whether to show a header displaying the name of the page on mobile. The header purposefully has a lot of vertical whitespace in order to push the content down and make it easier to reach on tall devices.
269
+
270
+
Preview:
271
+
272
+

273
+
265
274
### Columns
266
275
Columns are defined for each page using a `columns` property. There are two types of columns - `full` and `small`, which refers to their width. A small column takes up a fixed amount of width (300px) and a full column takes up the all of the remaining width. You can have up to 3 columns per page and you must have either 1 or 2 full columns. Example:
267
276
@@ -384,6 +393,8 @@ Example:
384
393
| ---- | ---- | -------- | ------- |
385
394
| style | string | no | vertical-list |
386
395
| feeds | array | yes |
396
+
| thumbnail-height | float | no | 10 |
397
+
| card-height | float | no | 27 |
387
398
| limit | integer | no | 25 |
388
399
| collapse-after | integer | no | 5 |
389
400
@@ -398,6 +409,16 @@ Used to change the appearance of the widget. Possible values are `vertical-list`
398
409
399
410

400
411
412
+
`horizontal-cards-2`
413
+
414
+

415
+
416
+
##### `thumbnail-height`
417
+
Used to modify the height of the thumbnails. Works only when the style is set to `horizontal-cards`. The default value is `10` and the units are `rem`, if you want to for example double the height of the thumbnails you can set it to `20`.
418
+
419
+
##### `card-height`
420
+
Used to modify the height of cards when using the `horizontal-cards-2` style. The default value is `27` and the units are `rem`.
421
+
401
422
##### `feeds`
402
423
An array of RSS/atom feeds. The title can optionally be changed.
403
424
@@ -434,6 +455,7 @@ Preview:
434
455
| ---- | ---- | -------- | ------- |
435
456
| channels | array | yes | |
436
457
| limit | integer | no | 25 |
458
+
| style | string | no | horizontal-cards |
437
459
| video-url-template | string | no | https://www.youtube.com/watch?v={VIDEO-ID} |
438
460
439
461
##### `channels`
@@ -448,6 +470,13 @@ Then scroll down and click on "Share channel", then "Copy channel ID":
448
470
##### `limit`
449
471
The maximum number of videos to show.
450
472
473
+
##### `style`
474
+
Used to change the appearance of the widget. Possible values are `horizontal-cards` and `grid-cards`.
475
+
476
+
Preview of `grid-cards`:
477
+
478
+

479
+
451
480
##### `video-url-template`
452
481
Used to replace the default link for videos. Useful when you're running your own YouTube front-end. Example:
453
482
@@ -479,6 +508,8 @@ Preview:
479
508
| limit | integer | no | 15 |
480
509
| collapse-after | integer | no | 5 |
481
510
| comments-url-template | string | no | https://news.ycombinator.com/item?id={POST-ID} |
511
+
| sort-by | string | no | top |
512
+
| extra-sort-by | string | no | |
482
513
483
514
##### `comments-url-template`
484
515
Used to replace the default link for post comments. Useful if you want to use an alternative front-end. Example:
@@ -491,12 +522,20 @@ Placeholders:
491
522
492
523
`{POST-ID}`- the ID of the post
493
524
525
+
##### `sort-by`
526
+
Used to specify the order in which the posts should get returned. Possible values are `top`, `new`, and `best`.
527
+
528
+
##### `extra-sort-by`
529
+
Can be used to specify an additional sort which will be applied on top of the already sorted posts. By default does not apply any extra sorting and the only available option is `engagement`.
530
+
531
+
The `engagement` sort tries to place the posts with the most points and comments on top, also prioritizing recent over old posts.
532
+
494
533
### Reddit
495
534
Display a list of posts from a specific subreddit.
496
535
497
536
> [!WARNING]
498
537
>
499
-
> Reddit does not allow unauthorized API access from VPS IPs, if you're hosting Glance on a VPS you will get a 403 response. As a workaround you can route the traffic from Glance through a VPN.
538
+
> Reddit does not allow unauthorized API access from VPS IPs, if you're hosting Glance on a VPS you will get a 403 response. As a workaround you can route the traffic from Glance through a VPN or your own HTTP proxy using the `request-url-template` property.
500
539
501
540
Example:
502
541
@@ -515,6 +554,10 @@ Example:
515
554
| collapse-after | integer | no | 5 |
516
555
| comments-url-template | string | no | https://www.reddit.com/{POST-PATH} |
517
556
| request-url-template | string | no | |
557
+
| sort-by | string | no | hot |
558
+
| top-period | string | no | day |
559
+
| search | string | no | |
560
+
| extra-sort-by | string | no | |
518
561
519
562
##### `subreddit`
520
563
The subreddit for which to fetch the posts from.
@@ -580,6 +623,22 @@ https://proxy/{REQUEST-URL}
580
623
https://your.proxy/?url={REQUEST-URL}
581
624
```
582
625
626
+
##### `sort-by`
627
+
Can be used to specify the order in which the posts should get returned. Possible values are `hot`, `new`, `top` and `rising`.
628
+
629
+
##### `top-perid`
630
+
Available only when `sort-by` is set to `top`. Possible values are `hour`, `day`, `week`, `month`, `year` and `all`.
631
+
632
+
##### `search`
633
+
Keywords to search for. Searching within specific fields is also possible, **though keep in mind that Reddit may remove the ability to use any of these at any time**:
634
+
635
+

636
+
637
+
##### `extra-sort-by`
638
+
Can be used to specify an additional sort which will be applied on top of the already sorted posts. By default does not apply any extra sorting and the only available option is `engagement`.
639
+
640
+
The `engagement` sort tries to place the posts with the most points and comments on top, also prioritizing recent over old posts.
641
+
583
642
### Weather
584
643
Display weather information for a specific location. The data is provided by https://open-meteo.com/.
585
644
@@ -593,7 +652,7 @@ Example:
593
652
594
653
> [!NOTE]
595
654
>
596
-
> US cities which have common names can have their state specified as the second parameter like such:
655
+
> US cities which have common names can have their state specified as the second parameter as such:
597
656
>
598
657
> * Greenville, North Carolina, United States
599
658
> * Greenville, South Carolina, United States
@@ -675,7 +734,11 @@ You can hover over the "ERROR" text to view more information.
675
734
676
735
| Name | Type | Required |
677
736
| ---- | ---- | -------- |
678
-
| sites | array | yes | |
737
+
| sites | array | yes |
738
+
| style | string | no |
739
+
740
+
##### `style`
741
+
To make the widget scale appropriately in a `full` size column, set the style to the experimental `dynamic-columns-experimental` option.
679
742
680
743
##### `sites`
681
744
@@ -694,7 +757,7 @@ The title used to indicate the site.
694
757
695
758
`url`
696
759
697
-
The URL which will be requested and its response will determine the status of the site.
760
+
The URL which will be requested and its response will determine the status of the site. Optionally, you can specify this using an environment variable with the syntax `${VARIABLE_NAME}`.
698
761
699
762
`icon`
700
763
@@ -763,6 +826,43 @@ The maximum number of releases to show.
763
826
#### `collapse-after`
764
827
How many releases are visible before the "SHOW MORE" button appears. Set to `-1` to never collapse.
765
828
829
+
### Repository
830
+
Display general information about a repository as well as a list of the latest open pull requests and issues.
831
+
832
+
Example:
833
+
834
+
```yaml
835
+
- type: repository
836
+
repository: glanceapp/glance
837
+
pull-requests-limit: 5
838
+
issues-limit: 3
839
+
```
840
+
841
+
Preview:
842
+
843
+

844
+
845
+
#### Properties
846
+
847
+
| Name | Type | Required | Default |
848
+
| ---- | ---- | -------- | ------- |
849
+
| repository | string | yes | |
850
+
| token | string | no | |
851
+
| pull-requests-limit | integer | no | 3 |
852
+
| issues-limit | integer | no | 3 |
853
+
854
+
##### `repository`
855
+
The owner and repository name that will have their information displayed.
856
+
857
+
##### `token`
858
+
Without authentication Github allows for up to 60 requests per hour. You can easily exceed this limit and start seeing errors if your cache time is low or you have many instances of this widget. To circumvent this you can [create a read only token from your Github account](https://github.com/settings/personal-access-tokens/new) and provide it here.
859
+
860
+
##### `pull-requests-limit`
861
+
The maximum number of latest open pull requests to show. Set to `-1` to not show any.
862
+
863
+
##### `issues-limit`
864
+
The maximum number of latest open issues to show. Set to `-1` to not show any.
865
+
766
866
### Bookmarks
767
867
Display a list of links which can be grouped.
768
868
@@ -812,10 +912,14 @@ Preview:
812
912
| Name | Type | Required |
813
913
| ---- | ---- | -------- |
814
914
| groups | array | yes |
915
+
| style | string | no |
815
916
816
917
##### `groups`
817
918
An array of groups which can optionally have a title and a custom color.
818
919
920
+
##### `style`
921
+
To make the widget scale appropriately in a `full` size column, set the style to the experimental `dynamic-columns-experimental` option.
An array of stocks for which to display information about.
913
1012
1013
+
##### `sort-by`
1014
+
By default the stocks are displayed in the order they were defined. You can customize their ordering by setting the `sort-by` property to `absolute-change` for descending order based on the stock's absolute price change.
1015
+
1016
+
##### `style`
1017
+
To make the widget scale appropriately in a `full` size column, set the style to the experimental `dynamic-columns-experimental` option.
1018
+
914
1019
###### Properties for each stock
915
1020
| Name | Type | Required |
916
1021
| ---- | ---- | -------- |
917
1022
| symbol | string | yes |
918
1023
| name | string | no |
1024
+
| symbol-link | string | no |
1025
+
| chart-link | string | no |
919
1026
920
1027
`symbol`
921
1028
@@ -925,8 +1032,11 @@ The symbol, as seen in Yahoo Finance.
925
1032
926
1033
The name that will be displayed under the symbol.
927
1034
928
-
##### `sort-by`
929
-
By default the stocks are displayed in the order they were defined. You can customize their ordering by setting the `sort-by` property to `absolute-change` for descending order based on the stock's absolute price change.
0 commit comments