Skip to content

Commit

Permalink
(add) yaml example file
Browse files Browse the repository at this point in the history
  • Loading branch information
sn123 committed Dec 7, 2023
1 parent 84939c4 commit dfe7f20
Showing 1 changed file with 76 additions and 0 deletions.
76 changes: 76 additions & 0 deletions config/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
---
dashboards:
- id: ""
widgets:
- component: TextWidget
class:
- x1 y2
props:
eventId: bsGenerator
background: "#ffdb58"
state:
bsGenerator:
title: Y
subtitle: X
- component: TextWidget
class:
- x2 y4
props:
eventId: jotd
state:
jotd:
title: Y
subtitle: X
- component: Clock
class:
- x1 y2
props:
eventId: clockWidget
clockOneTz: America/Los_Angeles
clockThreeTz: America/New_York
state:
clockWidget: {}
jobs:
- name: jotd
schedule: "@every 1h"
api:
url: https://v2.jokeapi.dev/joke/Programming?blacklistFlags=nsfw,religious,political,racist,sexist,explicit&type=single
method: GET
transform: >
[
{
"operation": "shift",
"spec": {
"data.title": "joke",
"data.subtitle": "category"
}
},
{
"operation": "default",
"spec": {
"event": "jotd",
"data.background": "#ccc"
}
}
]
- name: bsgenerator
schedule: "@every 1h"
api:
url: https://corporatebs-generator.sameerkumar.website/
method: GET
transform: >
[
{
"operation": "shift",
"spec": {
"data.title": "phrase"
}
},
{
"operation": "default",
"spec": {
"event": "bsGenerator"
}
}
]
authorization: "${MyKey}"

0 comments on commit dfe7f20

Please sign in to comment.