aboutsummaryrefslogtreecommitdiffhomepage
path: root/docs/configuration.md
diff options
context:
space:
mode:
authorluixal <luixal@gmail.com>2021-01-07 21:23:13 +0100
committerluixal <luixal@gmail.com>2021-01-07 21:23:13 +0100
commit1ddf394176ffe7e1c4118ead46b9fa76c6f3c614 (patch)
tree2d6b2dc6126a66b8a7d3f906e64c02ac2b940efe /docs/configuration.md
parent6d29bc27e78bc549479cbbc203c683137ace9d48 (diff)
downloadhomer-1ddf394176ffe7e1c4118ead46b9fa76c6f3c614.tar.gz
homer-1ddf394176ffe7e1c4118ead46b9fa76c6f3c614.tar.zst
homer-1ddf394176ffe7e1c4118ead46b9fa76c6f3c614.zip
Refactors created function (splits logic for getting message) and adds timeout according to refreshInterval field
Diffstat (limited to 'docs/configuration.md')
-rw-r--r--docs/configuration.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/configuration.md b/docs/configuration.md
index 93fa898..8bff54f 100644
--- a/docs/configuration.md
+++ b/docs/configuration.md
@@ -69,12 +69,14 @@ message:
69 # mapping: # allows to map fields from the remote format to the one expected by Homer 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 70 # title: 'id' # use value from field 'id' as title
71 # content: 'value' # value from field 'value' as content 71 # content: 'value' # value from field 'value' as content
72 # refreshInterval: 10000 # time interval to refresh message
72 # 73 #
73 # Real example using chucknorris.io for showing Chuck Norris facts as messages: 74 # Real example using chucknorris.io for showing Chuck Norris facts as messages:
74 # url: https://api.chucknorris.io/jokes/random 75 # url: https://api.chucknorris.io/jokes/random
75 # mapping: 76 # mapping:
76 # title: 'id' 77 # title: 'id'
77 # content: 'value' 78 # content: 'value'
79 # refreshInterval: 10000
78 style: "is-warning" 80 style: "is-warning"
79 title: "Optional message!" 81 title: "Optional message!"
80 icon: "fa fa-exclamation-triangle" 82 icon: "fa fa-exclamation-triangle"