forked from emoncms/emoncms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.settings.php
188 lines (148 loc) · 6.89 KB
/
default.settings.php
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
<?php
//1 #### Mysql database settings
$server = "localhost";
$database = "emoncms";
$username = "_DB_USER_";
$password = "_DB_PASSWORD_";
$port = "3306";
// Skip database setup test - set to false once database has been setup.
$dbtest = true;
//2 #### Redis
$redis_enabled = false;
$redis_server = array( 'host' => 'localhost',
'port' => 6379,
'auth' => '',
'dbnum' => '',
'prefix' => 'emoncms');
//3 #### MQTT
// The 'subscriber' topic format is rx/* - where * is the emoncms input node number.
// The 'publisher' topic format is user selectable from the 'Publish to MQTT' input process, for example power/solar
$mqtt_enabled = false; // Activate MQTT by changing to true
$mqtt_server = array( 'host' => 'localhost',
'port' => 1883,
'user' => '',
'password' => '',
'basetopic'=> 'emon',
'client_id' => 'emoncms'
);
//4 #### Engine settings
$feed_settings = array(
// Supported engines. Uncommented engines will not be available for user to create a new feed using it. Existing feeds with a hidden engine still work.
// Place a ',' as the first character on all uncommented engines lines but first.
// If using emoncms in low-write mode, ensure that PHPFIWA is disabled by removing the leading //, from the PHPFIWA entry
'engines_hidden'=>array(
//Engine::MYSQL // 0 Mysql traditional
//Engine::MYSQLMEMORY // 8 Mysql with MEMORY tables on RAM. All data is lost on shutdown
//Engine::PHPTIMESERIES // 2
//,Engine::PHPFINA // 5
//,Engine::PHPFIWA // 6
//,Engine::CASSANDRA // 10 Apache Cassandra
),
// Redis Low-write mode
'redisbuffer'=>array(
'enabled' => false // If enabled is true, requires redis enabled and feedwriter service running
,'sleep' => 600 // Number of seconds to wait before write buffer to disk - user selectable option
),
'csvdownloadlimit_mb' => 25, // Max csv download size in MB
// Engines working folder. Default is /var/lib/phpfiwa,phpfina,phptimeseries
// On windows or shared hosting you will likely need to specify a different data directory--
// Make sure that emoncms has write permission's to the datadirectory folders
'phpfiwa'=>array(
'datadir' => '/var/lib/phpfiwa/'
),
'phpfina'=>array(
'datadir' => '/var/lib/phpfina/'
),
'phptimeseries'=>array(
'datadir' => '/var/lib/phptimeseries/'
),
'cassandra'=>array(
'keyspace' => 'emoncms'
)
);
// For use with emoncms module that require installation in home directory
// $homedir = "/home/username";
// Max number of allowed different inputs per user. For limiting garbage rf data
$max_node_id_limit = 32;
//5 #### User Interface settings
// gettext translations are found under each Module's locale directory
$default_language = 'en_GB';
// Theme location (folder located under Theme/, and must have the same structure as the basic one)
$theme = "basic";
// Theme colour options: "standard", "blue", "sun"
$themecolor = "blue";
// Favicon filenme in Theme/$theme
$favicon = "favicon.png";
// Use full screen width
$fullwidth = true;
// Main menu collapses on lower screen widths
$menucollapses = false;
// Enable multi user emoncms.
// If set to false, emoncms will automatically remove the register form and
// ability to create further users after the first user has been created
$enable_multi_user = false;
// Enable remember me feature
$enable_rememberme = true;
// Allow user to reset his password
$enable_password_reset = false;
// Email address to email proccessed input values
$default_emailto = 'root@localhost';
// (OPTIONAL) Email SMTP, used for password reset or other email functions
$smtp_email_settings = array(
'host'=>"smtp.gmail.com",
'port'=>"465", // 25, 465, 587
'from'=>array('[email protected]' => 'EmonCMS'),
// comment lines below that dont apply
'encryption'=>"ssl", // ssl, tls
'username'=>"[email protected]",
'password'=>"yourpassword"
);
// Default controller and action if none are specified and user is anonymous
$default_controller = "user";
$default_action = "login";
// Default controller and action if none are specified and user is logged in
$default_controller_auth = "feed";
$default_action_auth = "list";
// Public profile functionality
// Allows http://yourdomain.com/[username]/[dash alias] or ?id=[dash id]
// Alternative to http://yourdomain.com/dashboard/view?id=[dash id]
// Add optional '&embed=1' in the end to remove header and footer
$public_profile_enabled = true;
$public_profile_controller = "dashboard";
$public_profile_action = "view";
// Default feed viewer: "vis/auto?feedid=" or "graph/" - requires module https://github.com/emoncms/graph
$feedviewpath = "vis/auto?feedid=";
//6 #### Other settings
// Log file configuration
$log_enabled = true;
// On windows or shared hosting you will likely need to specify a different logfile directory
$log_filename = '/var/log/emoncms.log';
// Log Level: 1=INFO, 2=WARN, 3=ERROR
$log_level = 2;
// If installed on Emonpi, allow admin menu tools
$allow_emonpi_admin = false;
// Show update section in admin
$admin_show_update = true;
//experimental feature for virtual feeds average, default is true, set to false to activate average agregation with all data points, will be slower
$data_sampling = false;
// Show all fatal PHP errors
$display_errors = true;
// CSV export options for the number of decimal_places, decimal_place_separator and field_separator
// The thousands separator is not used (specified as "nothing")
// NOTE: don't make $csv_decimal_place_separator == $csv_field_separator
// Adjust as appropriate for your location
// number of decimal places
$csv_decimal_places = 2;
// decimal place separator
$csv_decimal_place_separator = ".";
// field separator
$csv_field_separator = ",";
// set true on docker installations
$allow_config_env_vars = false;
// Dont change - developer updates this when the config format changes
$config_file_version = "10";
// Set to true to run database update without logging in
// URL Example: http://localhost/emoncms/admin/db
$updatelogin = false;
// Applicaton name
$appname = "emoncms";