-
Notifications
You must be signed in to change notification settings - Fork 0
/
dag.yaml
33 lines (32 loc) · 1.06 KB
/
dag.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
name: "env-bot"
env:
DSN: "/home/pi/github.com/ddddddO/sensor-pi/env-bot/environment.sqlite3"
AWS_SHARED_CREDENTIALS_FILE: "/home/pi/.aws/credentials"
AWS_CONFIG_FILE: "/home/pi/.aws/config"
steps:
- name: "sensor_bme280"
description: "get and store data from bme280"
command: "/home/pi/github.com/ddddddO/sensor-pi/env-bot/bme280.py"
- name: "sensor_mhz19"
description: "get and store data from mh_z19"
command: "sudo -E /home/pi/github.com/ddddddO/sensor-pi/env-bot/mh_z19_.py"
- name: "publisher_to_sns"
description: "environment data to AmazonSNS"
command: "/home/pi/github.com/ddddddO/sensor-pi/env-bot/publisher_to_sns/publisher_to_sns"
depends:
- "sensor_bme280"
- "sensor_mhz19"
- name: "wait"
description: "wait"
command: "sleep 3"
depends:
- "publisher_to_sns"
- name: "tweet"
description: "tweet env data and graph file"
command: "/home/pi/github.com/ddddddO/sensor-pi/env-bot/tweet.py"
depends:
- "wait"
- name: "finish"
command: "echo finish"
depends:
- "tweet"