diff options
author | luixal <luixal@gmail.com> | 2021-01-04 09:43:58 +0100 |
---|---|---|
committer | luixal <luixal@gmail.com> | 2021-01-04 09:43:58 +0100 |
commit | 6d29bc27e78bc549479cbbc203c683137ace9d48 (patch) | |
tree | 29e7de508e38c4f01706e81e8176390e70e3ba0d /docs/configuration.md | |
parent | 3786f80dae2df7780d19ba8ffd9374ef3c2fc30f (diff) | |
download | homer-6d29bc27e78bc549479cbbc203c683137ace9d48.tar.gz homer-6d29bc27e78bc549479cbbc203c683137ace9d48.tar.zst homer-6d29bc27e78bc549479cbbc203c683137ace9d48.zip |
Adds mapping remote field to Homer expected ones when loading message from url
Diffstat (limited to 'docs/configuration.md')
-rw-r--r-- | docs/configuration.md | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/configuration.md b/docs/configuration.md index a43d7f1..93fa898 100644 --- a/docs/configuration.md +++ b/docs/configuration.md | |||
@@ -66,6 +66,15 @@ colors: | |||
66 | # Optional message | 66 | # Optional message |
67 | message: | 67 | message: |
68 | # url: "https://<my-api-endpoint>" # Can fetch information from an endpoint to override value below. | 68 | # url: "https://<my-api-endpoint>" # Can fetch information from an endpoint to override value below. |
69 | # mapping: # allows to map fields from the remote format to the one expected by Homer | ||
70 | # title: 'id' # use value from field 'id' as title | ||
71 | # content: 'value' # value from field 'value' as content | ||
72 | # | ||
73 | # Real example using chucknorris.io for showing Chuck Norris facts as messages: | ||
74 | # url: https://api.chucknorris.io/jokes/random | ||
75 | # mapping: | ||
76 | # title: 'id' | ||
77 | # content: 'value' | ||
69 | style: "is-warning" | 78 | style: "is-warning" |
70 | title: "Optional message!" | 79 | title: "Optional message!" |
71 | icon: "fa fa-exclamation-triangle" | 80 | icon: "fa fa-exclamation-triangle" |