-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
51 lines (44 loc) · 1.2 KB
/
config.js
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
const config = {
sendEmail: true, // do you want to send e-mails?
uploadFile: true, // do you want to upload files to slack?
raspistill: {
width: 1024,
height: 768,
encoding: 'png',
fileName: '1'
},
// cayenne setup (add new byod on https://cayenne.mydevices.com/cayenne/dashboard/add):
cayenne: {
username: '<EDITED>',
password: '<EDITED>',
clientId: '<EDITED>'
},
// slack setup:
slackToken: '<EDITED>', // slack app bot token
slackWebhook: '<EDITED>', // slack app incoming webhook
slackUploadConfig: {
title: 'Took a new photo:', // slack img title
channels: '#alerts' // slack channel
},
// mail setup
nodemailer: {
host: '<EDITED>',
port: 465,
secure: true, // true for 465, false for other ports
auth: {
user: '<EDITED>',
pass: '<EDITED>'
},
tls: {
rejectUnauthorized: false
}
},
mailOptions: {
from: '"Photos" <someone1@example.cm>', // sender address
to: 'someone2@example.com', // list of receivers
subject: 'New photo', // Subject line
text: 'Here is your new photo:', // plain text body
html: 'Here is your new photo:<br><br>' // html body
}
};
module.exports = config;