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.
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
* 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.)
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>