-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathtelegram_config.sh
45 lines (44 loc) · 1.31 KB
/
telegram_config.sh
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
#!/bin/bash
# Edit only the variables between the ""
# Port from moonraker
port="7125"
. /home/pi/klipper_config/telegram_token.sh
# Your telegram bot tocken
#token=""
# Your chat ID
#chatid=""
#
# messages for the states
### Variables for messeges
### $print_filename = Filname
### $print_progress = Progress in %
### $print_current = Current Time in H M S
### $print_remaining = Remaining Time in H M S
#
# Start message
msg_start="Started printing $print_filename"
# error/failed message
msg_error="printing of $print_filename Failed"
# Pause message
msg_pause="printing of $print_filename Paused"
# Complete message
msg_end="Finished printing $print_filename"
# Time message
msg_state="Printing $print_filename at $print_progress. Current Time $print_current. Remaining Time $print_remaining"
#
# time in seconds to get an State update. to disable set it to 0
time="600"
# with picture = 1, without picture = 0
picture="1"
# your webcam snapshot link
webcam="http://127.0.0.1:8080/?action=snapshot"
#rotate the pic bevor sending, use degrease 0-360
rotate="180"
#flip the pic horizontally bevor sending, 1 = yes, 0 = No
horizontally="0"
#flip the pic vertically bevor sending, 1 = yes, 0 = No
vertically="0"
# Make all commands Disable with 1
bot_disable="0"
# moonraker config path
config_dir=/home/pi/klipper_config