-
Notifications
You must be signed in to change notification settings - Fork 3
/
manifest.yaml
51 lines (51 loc) · 1.32 KB
/
manifest.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
packages:
# this is the package name
prometeo-package:
actions:
# name of the action
prometeo-mqtt-test:
# source for the action; in this case it is a folder
function: action
runtime: nodejs:12
# publish the action as a web action
web: no
inputs:
IOT_HOST:
type: string
value: $IOT_HOST
IOT_PROTOCOL:
type: string
value: $IOT_PROTOCOL
IOT_USERNAME:
type: string
value: $IOT_USERNAME
IOT_PASSWORD:
type: string
value: $IOT_PASSWORD
IOT_SECURE_PORT:
type: string
value: $IOT_SECURE_PORT
IOT_PORT:
type: string
value: $IOT_PORT
IOT_CLIENTID:
type: string
value: $IOT_CLIENTID
IOT_PEM:
type: string
value: $IOT_PEM
IOT_FIREFIGHTER_ID:
type: string
value: $IOT_FIREFIGHTER_ID
IOT_DEVICE_ID:
type: string
value: $IOT_DEVICE_ID
triggers:
trigger_cron:
feed: /whisk.system/alarms/alarm
inputs:
cron: "*/1 * * * *"
rules:
rule_prometeo_repeat:
trigger: trigger_cron
action: prometeo-mqtt-test