Monitors CSV for stuff
- Linux / MacOS / Windows
- docker
Dark sky exporter can be controlled by both ENV or CLI flags as described below.
Environment | CLI (--flag ) |
Default | Description |
---|---|---|---|
CSVLOC |
csv |
<REQUIRED> |
File path of the CSV file |
SLACKHOOK |
slackhook |
<REQUIRED> |
Webhook URL for Slacks |
CSVHOUR |
csvhour |
8 |
Hour at which script will run |
CSVMINUTE |
csvminute |
0 |
Minute of the hour in which script will run |
# Monitor CSV using binary
export LOG=*; ./csvmonitor --csv test.csv --slackhook https://hooks.slack.com/services/JIGJ42V99/BHDTFBH9P/K489FDQyPjlHVjU5492AjTWfQ
# Monitor CSV using docker
docker run -d --restart on-failure --env LOG=* --name=csvmonitor billykwooten/csvmonitor --csv test.csv --slackhook https://hooks.slack.com/services/JIGJ42V99/BHDTFBH9P/K489FDQyPjlHVjU5492AjTWfQ