Skip to content

Commit 38f9d44

Browse files
committed
Align configuration defaults across files
1 parent b78c31b commit 38f9d44

3 files changed

Lines changed: 22 additions & 25 deletions

File tree

data/motion-dist.conf.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,21 +76,21 @@ picture_filename %v-%Y%m%d%H%M%S-%q
7676
;*************************************************
7777
movie_output on
7878
movie_max_time 120
79-
movie_quality 45
79+
movie_quality 60
8080
movie_container mkv
8181
movie_filename %v-%Y%m%d%H%M%S
8282

8383
;*************************************************
8484
;***** Web Control
8585
;*************************************************
8686
webcontrol_port 8080
87-
webcontrol_localhost off
87+
webcontrol_localhost on
8888
webcontrol_parms 2
8989

9090
;*************************************************
9191
;***** Web Stream
9292
;*************************************************
93-
stream_preview_scale 25
93+
stream_preview_scale 100
9494
stream_preview_method combined
9595

9696
;*************************************************

doc/motion_config.html

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1918,10 +1918,10 @@ <h3><a name="noise_tune"></a> noise_tune </h3>
19181918

19191919
<h3><a name="despeckle_filter"></a> despeckle_filter </h3>
19201920
<ul>
1921-
<li> Values: Combinations of E,e,D,d and l | Default: Not defined </li>
1921+
<li> Values: Combinations of E,e,D,d and l | Default: EedDl </li>
19221922
Despeckle the image using combinations of (E/e)rode or (D/d)ilate. And ending with optional (l)abeling.
19231923
This reduces noise in the motion image. Adding a trailing l enables labeling in which only the largest
1924-
section section is used to calculate the threshold. Typical value is EedDl
1924+
section section is used to calculate the threshold.
19251925
</ul>
19261926
<p></p>
19271927

@@ -1999,14 +1999,14 @@ <h3><a name="event_gap"></a> event_gap </h3>
19991999

20002000
<h3><a name="pre_capture"></a> pre_capture </h3>
20012001
<ul>
2002-
<li> Values: Integer | Default: 0</li>
2002+
<li> Values: Integer | Default: 3</li>
20032003
The number of pre-captured (buffered) frames to be captured before an event.
20042004
</ul>
20052005
<p></p>
20062006

20072007
<h3><a name="post_capture"></a> post_capture </h3>
20082008
<ul>
2009-
<li> Values: Integer | Default: 0</li>
2009+
<li> Values: Integer | Default: 10</li>
20102010
The number of frames to be captured after an event has ended.
20112011
</ul>
20122012
<p></p>
@@ -2340,15 +2340,15 @@ <h3><a name="OptDetail_Webcontrol"></a>Web Control</a> </h3>
23402340
<ul>
23412341
<h3><a name="webcontrol_port"></a> webcontrol_port </h3>
23422342
<ul>
2343-
<li>Values: 0 to 65535 | Default: 0 (disabled)</li>
2344-
The port number for the web based control of Motion.
2343+
<li>Values: 0 to 65535 | Default: 8080</li>
2344+
The port number for the web based interface of Motion.
23452345
</ul>
23462346
<p></p>
23472347

2348-
<h3><a name="webcontrol_port2"></a> webcontrol_port </h3>
2348+
<h3><a name="webcontrol_port2"></a> webcontrol_port2 </h3>
23492349
<ul>
23502350
<li>Values: 0 to 65535 | Default: 0 (disabled)</li>
2351-
Second port for the web control that does not use TLS. This allows for specifying one port that
2351+
Second port for the web interface that does not use TLS. This allows for specifying one port that
23522352
provides a TLS connection (to be used externally) while this port serves the local lan without getting
23532353
certificate domain warnings.
23542354
</ul>
@@ -2377,7 +2377,7 @@ <h3><a name="webcontrol_base_path"></a> webcontrol_base_path </h3>
23772377

23782378
<h3><a name="webcontrol_parms"></a> webcontrol_parms </h3>
23792379
<ul>
2380-
<li> Values: 0 - 3 | Default: 0 </li>
2380+
<li> Values: 0 - 3 | Default: 2 </li>
23812381
Set the type of parameters that can be accessed via the webcontrol page.
23822382
<ul>
23832383
<li> 0: None - No configuration parameters or actions will be available.</li>
@@ -2386,12 +2386,9 @@ <h3><a name="webcontrol_parms"></a> webcontrol_parms </h3>
23862386
typically require Motion to be restarted to become effective.</li>
23872387
<li> 3: Restricted - User IDs, passwords and "on_" commands.</li>
23882388
</ul>
2389-
The default for this parameter is 0 (none) to enhance the security of the web interface. The
2390-
setting of the webcontrol_parms is not included on the web interface and this parameter
2391-
can only be specified via the configuration file.
2392-
<p></p>
2393-
Once Motion has been configured, it is advised to complete the setup by setting
2394-
this value to zero.
2389+
webcontrol_parms is not shown or allowed to be revised from the web interface. This
2390+
allows users to lock out any changes to parameters. This may be desired if the
2391+
webcontrol port is opened to the internet.
23952392
</ul>
23962393
<p></p>
23972394

@@ -2519,7 +2516,7 @@ <h3><a name="OptDetail_Stream"></a> Live Stream</a> </h3>
25192516
<ul>
25202517
<h3><a name="stream_preview_scale"></a> stream_preview_scale </h3>
25212518
<ul>
2522-
<li> Values: Integer | Default: 25</li>
2519+
<li> Values: Integer | Default: 100</li>
25232520
The percentage to scale the stream image when it is placed on the webcontrol
25242521
page or into the combined image when the stream_preview_method is set to combined.
25252522
<br>Numbers greater than 100 are permitted.

src/conf.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1422,7 +1422,7 @@ void cls_config::edit_noise_tune(std::string &parm, enum PARM_ACT pact)
14221422
void cls_config::edit_despeckle_filter(std::string &parm, enum PARM_ACT pact)
14231423
{
14241424
if (pact == PARM_ACT_DFLT) {
1425-
despeckle_filter = "";
1425+
despeckle_filter = "EedDl";
14261426
} else if (pact == PARM_ACT_SET) {
14271427
despeckle_filter = parm;
14281428
} else if (pact == PARM_ACT_GET) {
@@ -1594,7 +1594,7 @@ void cls_config::edit_pre_capture(std::string &parm, enum PARM_ACT pact)
15941594
{
15951595
int parm_in;
15961596
if (pact == PARM_ACT_DFLT) {
1597-
pre_capture = 0;
1597+
pre_capture = 3;
15981598
} else if (pact == PARM_ACT_SET) {
15991599
parm_in = atoi(parm.c_str());
16001600
if ((parm_in < 0) || (parm_in > 1000)) {
@@ -1613,7 +1613,7 @@ void cls_config::edit_post_capture(std::string &parm, enum PARM_ACT pact)
16131613
{
16141614
int parm_in;
16151615
if (pact == PARM_ACT_DFLT) {
1616-
post_capture = 0;
1616+
post_capture = 10;
16171617
} else if (pact == PARM_ACT_SET) {
16181618
parm_in = atoi(parm.c_str());
16191619
if ((parm_in < 0) || (parm_in > 2147483647)) {
@@ -2287,7 +2287,7 @@ void cls_config::edit_webcontrol_port(std::string &parm, enum PARM_ACT pact)
22872287
{
22882288
int parm_in;
22892289
if (pact == PARM_ACT_DFLT) {
2290-
webcontrol_port = 0;
2290+
webcontrol_port = 8080;
22912291
} else if (pact == PARM_ACT_SET) {
22922292
parm_in = atoi(parm.c_str());
22932293
if ((parm_in < 0) || (parm_in > 65535)) {
@@ -2378,7 +2378,7 @@ void cls_config::edit_webcontrol_parms(std::string &parm, enum PARM_ACT pact)
23782378
{
23792379
int parm_in;
23802380
if (pact == PARM_ACT_DFLT) {
2381-
webcontrol_parms = 0;
2381+
webcontrol_parms = 2;
23822382
} else if (pact == PARM_ACT_SET) {
23832383
parm_in = atoi(parm.c_str());
23842384
if ((parm_in < 0) || (parm_in > 3)) {
@@ -2589,7 +2589,7 @@ void cls_config::edit_stream_preview_scale(std::string &parm, enum PARM_ACT pact
25892589
{
25902590
int parm_in;
25912591
if (pact == PARM_ACT_DFLT) {
2592-
stream_preview_scale = 25;
2592+
stream_preview_scale = 100;
25932593
} else if (pact == PARM_ACT_SET) {
25942594
parm_in = atoi(parm.c_str());
25952595
if ((parm_in < 1) || (parm_in > 1000)) {

0 commit comments

Comments
 (0)