diff --git a/motion_build.html b/motion_build.html index 55cb716..7d45310 100644 --- a/motion_build.html +++ b/motion_build.html @@ -68,7 +68,6 @@
sudo zypper install autoconf automake autopoint libtool git
-
- sudo zypper install --type pattern devel_basis
-
- sudo zypper install libjpeg8-devel gettext libmicrohttpd
-
- sudo zypper install -t pattern devel_C_C++
-
- sudo zypper ar -f -n packman-essentials http://packman.inode.at/suse/openSUSE_13.1/Essentials/ packman-essentials
-
- sudo zypper ar -f -n packman-multimedia http://packman.inode.at/suse/openSUSE_13.1/Multimedia/ packman-multimedia
-
- sudo zypper install libffmpeg-devel
-
- Not known by author
-
- Not known by author
-
- Not known by author
-
- Not known by author
-
- sudo zypper install libwebp-devel
-
-
+
+ sudo apt install postgresql postgresql-contrib
+
sudo -u postgres psql
+
+ CREATE ROLE 'your_username_here' LOGIN PASSWORD 'YourPasswordHere';
+
CREATE DATABASE motionplus WITH OWNER = your_username_here;
+
GRANT ALL PRIVILEGES ON DATABASE motionplus TO your_username_here;
+
\quit
+
+
+
+
+ Once the database is set up, check the status via systemctl.
+
+ sudo systemctl status postgresql
+
+
+ psql -h localhost -d motionplus -U your_username_here -p 5432
+
+
+ Specify the following in the MotionPlus configuration parameters.
+
+ database_type postgresql
+
database_dbname motionplus
+
database_host localhost
+
database_port 5432
+
database_user your_username_here
+
database_password YourPasswordHere
+
+ {IP}:{port0}/0/status.json
JSON object with information about status of all cameras{IP}:{port0}/0/movies.json
JSON object with information about all movies{IP}:{port0}/{camid}/mjpg
Primary stream for the camera updated as a mjpg{IP}:{port0}/{camid}/mjpg/substream
Substream for the camera updated as a mjpg{IP}:{port0}/{camid}/mjpg/motion
Stream of motion images for the camera as a mjpg{IP}:{port0}/{camid}/mjpg/source
Source image stream of the camera as a mjpg{IP}:{port0}/{camid}/mjpg/secondary
Image from secondary detection stream (if active) as a mjpg{IP}:{port0}/{camid}/mpegts
Primary stream for the camera updated as a mpeg transport stream{IP}:{port0}/{camid}/mpegts/substream
Substream for the camera updated as a mpeg transport stream{IP}:{port0}/{camid}/mpegts/motion
Stream of motion images for the camera as a mpeg transport stream{IP}:{port0}/{camid}/mpegts/source
Source image stream of the camera as a mpeg transport stream{IP}:{port0}/{camid}/mpegts/secondary
Image from secondary detection stream (if active) as a mpeg transport stream{IP}:{port0}/{camid}/static
Primary image for the camera{IP}:{port0}/{camid}/static/substream
Substream image for the camera{IP}:{port0}/{camid}/static/motion
Motion image for the camera{IP}:{port0}/{camid}/static/source
Source image of the camera{IP}:{port0}/{camid}/static/secondary
Image from secondary detection stream (if active)eventstart
Start an eventeventend
End an eventsnapshot
Invoke a snapshotpause
Pause motion detectionunpause
Unpause motion detectionrestart
Restart camerastop
Stop cameraconfig_write
Write out the configuration to file. User account running Motionplus must have write access to directorycamera_add
Add a cameracamera_delete
Delete cameraconfig
Set configuration itemaction_user
Execute the on_action_user command. Provide as needed the additional parameter of action_userpan_left
Execute the ptz_pan_left commandpan_right
Execute the ptz_pan_left commandtilt_up
Execute the ptz_tilt_uptilt_down
Execute the ptz_tilt_downzoom_in
Execute ptz_zoom_in commandzoom_out
Execute the ptz_zoom_out commandcurl -s -o -X POST {IP}:{port0} --data "camid={camid}" --data "command=eventstart" 1>/dev/null
curl -s -o -X POST {IP}:{port0} --data "camid={camid}" --data "command=config" --data "framerate=12" 1>/dev/null