-
-
Notifications
You must be signed in to change notification settings - Fork 66
/
config.sample.ini
196 lines (174 loc) · 6.36 KB
/
config.sample.ini
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
## TGTG Scanner Configuration
## --------------------------
## This is the configuration file for the TGTG Scanner.
## You can find more information about the configuration on the project page:
## https://github.com/Der-Henning/tgtg/wiki/Configuration
[MAIN]
## true for debug log messages
; Debug = true
## Time to wait till next scan in seconds - default 60 seconds
## The Scanner will randomize the wait time by +/- 10%
SleepTime = 60
## Optional Scheduler in cron schedule expression
## Example of cron schedule expression:
## ScheduleCron=* 12-14 * * 1-5 ## = allowed to run from 12:00 to 14:59 on monday to friday
## more help with formatting at https://crontab.guru/#*/1_12-14_*_*_1-5
## The Scanner will not make any requests to the TGTG API in the excluded periods
## Multiple cron example:
## ScheduleCron = * 18-21 * * 1-5; * 7-21 * * 6
ScheduleCron = * * * * *
## optional comma seperated list of item ids that should be scanned
; ItemIDs =
## Enable to export Metrics for prometheus
Metrics = false
MetricsPort = 8000
## Disable Test Notifications
; DisableTests = true
## Disable all console outputs. only displays errors or Console notifier messages
; Quiet = true
## Set localization for ${{pickupdate}}
Locale = en_US
## Disable to not show activity spinner in console
Activity = True
[TGTG]
## TGTG Username / Login EMail - mandatory
Username =
## Optionaly set tokens.
## They will be set automaticaly by the scanner after the login process
; AccessToken =
; RefreshToken =
; UserId =
; Datadome =
## Optional location settings for travel distance and time calculation using the Google Maps API.
## Calculations are made for driving, walking, biking and public transport.
## API Key and Address are mandatory for this feature
## Generate an API Key: https://developers.google.com/maps/documentation/javascript/get-api-key
## Address can be any address that can be found by Google Maps e.g. Strobelallee 50, 44139 Dortmund, Germany
## Calculations are made only with cached values once the cache is filled.
## Distance and time to the item location is cached when the avaiable item amount rises from 0 to something else.
## API requests are only made when the feature is Enabled and the cache is empty.
## Requests are only made for the modes of transportation used by the notifiers.
## Distance and time do not consider traffic and use the 'best' route according to Google Maps.
## Attributes to use in notifiers: walking_dt, driving_dt, biking_dt, transit_dt
[LOCATION]
Enabled = False
GoogleMapsAPIKey =
OriginAddress =
#### Notifiers
## To enable notifier fill in the needed settings
## and set Enabled to true
## Apprise allows you to send a notification to almost all of the most popular notification services
## Apprise URL example: twilio://AccountSid:AuthToken@FromPhoneNo/ToPhoneNo
## See the list of supported services: https://github.com/caronc/apprise/wiki
## Default Title (optional):
## 'New Magic Bags'
## Default Body:
## '${{display_name}} - new amount: ${{items_available}} - https://share.toogoodtogo.com/item/${{item_id}}'
[Apprise]
Enabled = false
URL =
; Cron =
; Title =
; Body =
[CONSOLE]
## Simple notifier for the console output
## Message can be modified with the body property
## The body can use variables as described below
Enabled = false
; Body =
; Cron =
[SMTP]
## SMTP Settings / Example for gmail
## Subject and Body options are optional.
## Subject and Body options can use variables as described below
## The Body option is interpreted as HTML
## If "RecipientsPerItem" is included, multiple different recipients may be defined for notification. Notifications for items not listed in the JSON are sent to "Recipients".
Enabled = false
Host = smtp.gmail.com
Port = 587
Username = [email protected]
Password =
TLS = true
SSL = false
Sender = [email protected]
Recipients = [email protected]
; RecipientsPerItem = {"123" : ["[email protected]", "[email protected]"], "456" : ["[email protected]"], "789": "[email protected]"}
; Cron =
; Subject =
; Body =
[PUSHSAFER]
Enabled = false
Key =
DeviceID =
; Cron =
## The IFTTT Body contains a json string which can use the variables described below for the webhook
## Default Body:
## {"value1": "${{display_name}}", "value2": ${{items_available}}, "value3": "https://share.toogoodtogo.com/item/${{item_id}}"}
[IFTTT]
Enabled = false
Event =
Key =
; Body =
; cron =
## To use ntfy you have to create a topic on your favorite server.
## Default Body:
## ${{display_name}} - New Amount: ${{items_available}} - https://share.toogoodtogo.com/item/${{item_id}}
## You can use variables on body, title, tags and click
[NTFY]
Enabled = false
Server = https://ntfy.sh
Topic =
; Title = tgtg
; Body =
; Priority = default
; Tags = tgtg
; Click = https://share.toogoodtogo.com/item/${{item_id}}
; Username =
; Password =
; Token =
; Timeout = 60
; Cron =
## To use Telegram notifications you have to create a bot using the @botfather
## If you only provide the token of the bot will use the last chat it received a message on
## You can add multiple chat ids as a comma seperated list
## The message body is optional and is interpreted as markdown text
## You can use the same variables as described for the Webhook notifier below
## Example:
## *${{display_name}}*\n*Available*: ${{items_available}}\n*Rating*: ${{rating}}\n*Price*: ${{price}} ${{currency}}\n*Pickup*: ${{pickupdate}}\n*Link*: https://share.toogoodtogo.com/item/${{item_id}}
[TELEGRAM]
Enabled = false
Token =
ChatIDs =
; Timeout = 60
; Cron =
; Body =
## WebHook URL and body can contain variables in the form of ${{variable}}
## Available variables: item_id, items_available, display_name, price, currency, pickupdate, description, favorite, rating, scanned_on
## json body example: {"value1": "${{display_name}}", "value2": ${{items_available}}}
## You have to provide "" for strings if needed
[WEBHOOK]
Enabled = false
URL =
; Method = POST
; Body =
; Type = text/plain
; Headers =
; Username =
; Password =
; Timeout = 60
; Cron =
[SCRIPT]
## To run a script file
## Please make sure script file has execute rights
## Command example: /home/user/tgtg/script.sh -n ${{display_name}} -a ${{items_available}}
Enabled = false
Command =
; Cron =
[DISCORD]
## Register an application and associated bot user for use with TGTG scanner at https://discord.com/developers/applications
## See wiki for more information
Enabled = false
Prefix = !
Token =
Body =
; Cron =