Commit Graph

1400 Commits

Author SHA1 Message Date
Mr-DaveDev
c3dff7940e Update code standard (#1405) 2021-09-19 11:57:08 -06:00
Mr-DaveDev
2d116e4005 Fix excess movie files (#1404) 2021-09-19 09:55:47 -06:00
Mr-DaveDev
ce04c1689c Fix counting of failed auth attempts 2021-09-15 20:50:37 -06:00
Mr-DaveDev
d670829161 Add lock out for failed authentications
Add Failed Authentication Lockout
2021-08-18 20:23:04 -06:00
Matt Schatz
25714578f9 Update the IRC link. 2021-08-16 21:50:57 -06:00
Mr-DaveDev
a3804660d0 Check for null strings
Closes #1394
2021-08-15 14:22:58 -06:00
Mr-DaveDev
bd4aae0d4c Updates for configuration processing
* Updates for configuration processing
2021-08-14 16:43:18 -06:00
Mr-DaveDev
70b8d47b33 Allow teardown of network cameras
Co-authored-by: PeterHolik <>
2021-08-14 16:42:16 -06:00
Mr-DaveDev
615a3b690b Additional Parameters
* Add timeout parameters
* Revise to use noise_level as tune parameter
* Update documents

Co-authored-by: flya320 <flya320@users.noreply.github.com>
2021-08-05 20:46:26 -06:00
Mr-DaveDev
a6deb48dd4 Update po files 2021-08-05 18:23:31 -06:00
Mr-DaveDev
50756a3132 Eliminate compiler warnings when no DBMS 2021-08-05 18:16:09 -06:00
Mr-DaveDev
3a81b3cb50 Fix segfaults with ffmpeg / netcam
closes #1386
2021-08-05 18:15:31 -06:00
Mr-DaveDev
82de1e15d5 Remove Motion continuous integration functionality
Travis and Docker were used as the Motion continuous integration tools.  

These services changed their policies and no longer offer viable free products.  As a result, they are being removed and Motion no longer has any continuous integration functionality.
2021-08-02 19:23:30 -06:00
Mr-DaveDev
38e48e363c Update documentation 2021-08-02 19:15:24 -06:00
Mr-DaveDev
9d763a8b73 Update Changelog
* Update changelog
2021-08-01 21:49:54 -06:00
Mr-DaveDev
f16cf57f8b Adjust year for copyright 2021-08-01 21:49:29 -06:00
Mr-DaveDev
da22cb48ed User Specified Webcontrol and Stream Headers
Adjust the parse routines to allow for both quoted names and quoted values.

Transition webcontrol_cors_header to webcontrol_header_params

Transition stream_cors_header to stream_header_parms

Closes #1330
2021-08-01 20:16:24 -06:00
Mr-DaveDev
1b382c8fab Adjust the uri when no port provided for netcam 2021-07-31 11:47:10 -06:00
Mr-DaveDev
976b3d7212 Remove work-around for exif format
Co-authored-by: PeterHolik <>

Closes #906
2021-07-31 11:46:44 -06:00
Mr-DaveDev
42c0c1e0a5 Update docs 2021-07-31 11:46:10 -06:00
Mr-DaveDev
ed7206f9ea Add config parameter for pause (#1374)
Co-authored-by: PeterHolik <>

Closes #1324
Closes #964
2021-07-30 20:22:33 -06:00
Mr-DaveDev
dce76eebac Avoid potential deadlocks (#1373)
Closes #1363
Closes #1364

Thanks @jenny-cheung
2021-07-30 20:19:43 -06:00
Mr-DaveDev
0badad73fa Update directory permissions
Update mode on created directories

Closes #1297
2021-07-30 20:16:54 -06:00
Mr-DaveDev
ea2b2a9ddb Update names in sample config files (#1369) 2021-07-28 20:22:49 -06:00
Mr-DaveDev
1c1d88a03a Remove restrictions on network camera protocols (#1368)
* Revision to allow different camera protocols

* Update documentation
2021-07-28 20:22:30 -06:00
Mr-DaveDev
876c043be5 Revise default for processing http cameras 2021-07-26 19:21:42 -06:00
tosiara
b39061fed3 Added automake dependency install for MacOSX (#1362) 2021-07-25 15:32:49 -06:00
tosiara
586e60eac0 Added a note that mask_file PGM must be 8-bit (#1361) 2021-07-25 15:31:08 -06:00
Mr-DaveDev
11320aabc3 Resolve compiler warnings and excess file 2021-06-13 21:24:11 -06:00
Mr-DaveDev
21e5bf90b5 Revision for ffmpeg const AVCodec 2021-06-13 20:47:11 -06:00
Mr-DaveDev
5b5982c429 Revision for av_init_packet change in ffmpeg
* Resolve av_init_packet deprecated

* Resolve error with older ffmpeg versions
2021-06-13 20:32:06 -06:00
tosiara
262b6b0ac6 Fix for movie_max_time handling (#1339) 2021-06-13 20:28:58 -06:00
mrmessy
b2726fa821 grayscale support for network cameras (#1323)
Co-authored-by: pm <primaeval.dev@gmail.com>
2021-06-13 20:28:38 -06:00
Bill Clay
116c333983 Dbeventid (#1310)
* Implement %{dbeventid} for PostgreSQL and SQLite3.

dbse.c: Add %{dbeventid} support for PostgreSQL and SQLite3.
Make PostgreSQL session recovery asynchronous to avoid blocking
image capture during DBMS session reestablishment. Includes
minor mods to dbse.h, motion.c, motion.h, util.c and util.h.

doc/motion_config.html: Edit sections OptDetail_Database,
database_*, and sql_query* for clarity, consistency, and
coverage of new database support.

man/motion.1: Update descriptions of configuration options
database_* and sql_query*, including Postgresql and SQLite3
%{dbeventid} support.

* issue 1284, dbse.c: clarify confusing DB close message

1. clarify closure message wording: MySQL and/or MariaDB library closure
2. issue closure messages only for DBMSs in use (not simply compiled-in)
3. standardize spelling and case of DBMS names in all messages issued by dbse.c

Includes minor supporting changes in dbse.h and motion.c.

* po/dbeventid.pot furnished for merge into po/motion.pot when opportune

Includes all end-user messages (i.e., no debug messages) from modules
modfied for issues 1306, 1307, and 1284: dbse.c and util.c.

(These modules are not yet covered by po/POTFILES.in or po/motion.pot.)
2021-06-13 20:28:03 -06:00
David Marzal
34091a770c Create LICENSE file (#1300) 2021-01-25 19:27:25 -07:00
Mr-DaveDev
dd4b7a16d0 Format revisions for webu status (#1296) 2020-12-26 09:35:16 -07:00
hansmi
fc23847cf0 Remove superfluous semicolon in JSON content type header (#1292)
Signed-off-by: Michael Hanselmann <public@hansmi.ch>
2020-12-25 08:09:19 -07:00
hansmi
c568a40666 Add HTTP endpoints with camera status information (#1058)
This change introduces new HTTP endpoints in the stream web server returning
status information regarding a particular or all cameras as a JSON object.
These are useful in implementing system monitoring, e.g. via Nagios or Icinga.

"{IP}:{port0}/cameras.json": JSON object with IDs and names of all cameras,
e.g.:

  $ curl -s http://127.0.0.1:8081/cameras.json | jq -rMC .
  {
    "cameras": [
      {
        "id": 1,
        "name": "Lobby"
      },
      {
        "id": 3,
        "name": "Lobby"
      }
    ]
  }

"{IP}:{port0}/{camid}/status.json": JSON object with information about a single
camera, e.g.:

  $ curl -s http://127.0.0.1:8081/3/status.json | jq -rMC .
  {
    "id": 3,
    "name": "Lobby",
    "image_width": 640,
    "image_height": 480,
    "fps": 15,
    "missing_frame_counter": 1561,
    "running": 1,
    "lost_connection": 1,
    "currenttime": 1573400729,
    "currenttime_iso8601": "2019-11-10T15:45:29+0000",
    "lasttime": 0,
    "lasttime_iso8601": null,
    "lasttime_elapsed": null,
    "eventtime": 0,
    "eventtime_iso8601": null,
    "eventtime_elapsed": null,
    "connectionlosttime": 1573400614,
    "connectionlosttime_iso8601": "2019-11-10T15:43:34+0000",
    "connectionlosttime_elapsed": 115
  }

Additional endpoints:

- "{IP}:{port0}/status.json": JSON object with information about all cameras
- "{IP}:{portX}/status.json": JSON object with information about the camera
  running on port {portX}

Signed-off-by: Michael Hanselmann <public@hansmi.ch>

Co-authored-by: Mr-Dave <motionmrdave@gmail.com>
2020-12-24 22:20:17 -07:00
Mr-DaveDev
9d8d01b5a0 Update mhd return codes (#1286) 2020-12-19 22:36:12 -07:00
Mr-DaveDev
fdaa9ded5d Image Ring Process (#1283)
* Revise image ring process
2020-12-15 20:23:44 -07:00
Mr-DaveDev
02fed650b3 Update to travis testing (#1282)
Closes #1268
2020-12-12 14:16:10 -07:00
Mr-DaveDev
5c338a21f2 High resolution snapshot (#1280)
Closes #942
2020-12-12 11:11:23 -07:00
Mr-DaveDev
82b3a9f741 Add picture type grey option (#1281)
* Add picture type grey option
2020-12-12 11:03:22 -07:00
tkor1
ee2341a683 Corrected value for Content-type when getting current static JPG (#1276)
Co-authored-by: Liron Kormas Harpaz <lironkormasharpaz@MacBook-Pro.home>
2020-12-10 20:50:02 -07:00
Mr-DaveDev
a2e7f0dae6 Update documentation (#1275) 2020-12-06 22:48:51 -07:00
Mr-DaveDev
ff856adc69 Update the previous version number (#1274) 2020-12-06 22:48:33 -07:00
Mr-DaveDev
6808b37006 Add update params functionality (#1273)
* Add update params functionality
2020-12-06 17:43:59 -07:00
Mr-DaveDev
84a31f7abc Adjust to use maintainer-check (#1260) 2020-11-19 19:14:18 -07:00
Mr-DaveDev
dc670f5da9 New modules of dbse and util (#1255) 2020-11-14 17:38:24 -07:00
Mr-DaveDev
0e9d2ea139 Depreciate ATTRIBUTE_UNUSED and improve declarations (#1253) 2020-11-08 14:18:26 -07:00