-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.example.php
More file actions
97 lines (82 loc) · 2.63 KB
/
config.example.php
File metadata and controls
97 lines (82 loc) · 2.63 KB
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
<?php
/**
* Configuration Example for Smoobu to The Keys Webhook
* Copy this file to config.php and fill in your credentials
*/
return [
// Database configuration
'database' => [
'host' => 'localhost',
'database' => 'thekeys',
'username' => 'your_db_username',
'password' => 'your_db_password',
'charset' => 'utf8mb4'
],
// The Keys API credentials
'thekeys' => [
'username' => 'your_thekeys_username',
'password' => 'your_thekeys_password'
],
// Smoobu API credentials
'smoobu' => [
'api_key' => 'your_smoobu_api_key'
],
// SMS provider to use: 'serwersms' or 'budgetsms'
'sms_provider' => 'serwersms',
// SerwerSMS API configuration (optional - used when sms_provider = 'serwersms')
'serwersms' => [
'api_token' => 'your_serwersms_api_token',
],
// BudgetSMS API configuration (optional - used when sms_provider = 'budgetsms')
'budgetsms' => [
'username' => 'your_budgetsms_username',
'userid' => 'your_budgetsms_userid',
'handle' => 'your_budgetsms_handle',
'sender' => 'KOLNA',
],
// Mapping: Smoobu Apartment ID -> The Keys Lock ID
'apartment_locks' => [
'123456' => 3733, // Replace with your apartment ID -> Lock ID
'123457' => 3723
],
// Mapping: The Keys Lock ID -> Accessoire ID (STRING)
'lock_accessoires' => [
3733 => 'OXe37UIa', // Replace with your Lock ID -> Accessoire ID
3723 => 'SLORUV6s'
],
// PIN code prefixes for each lock (2 digits)
'digicode_prefixes' => [
3733 => '28', // Replace with your prefixes
3723 => '18'
],
// Default check-in/check-out times
'default_times' => [
'check_in_hour' => '15',
'check_in_minute' => '0',
'check_out_hour' => '12',
'check_out_minute' => '0'
],
// PIN code settings
'code_settings' => [
'length' => 4 // 4-digit PIN codes
],
// Webhook security (optional)
'webhook' => [
'secret' => '', // Optional: Smoobu webhook secret for signature validation
'ip_whitelist' => [] // Optional: ['1.2.3.4', '5.6.7.8']
],
// Logging
'logging' => [
'enabled' => true,
'file' => __DIR__ . '/logs/webhook.log'
],
// ElevenLabs configuration
'elevenlabs' => [
'webhook_secret' => 'your_elevenlabs_webhook_secret',
],
// Pushover configuration
'pushover' => [
'user_key' => 'your_pushover_user_key',
'api_token' => 'your_pushover_api_token',
]
];