Pliable Pixels
8677e600a4
Reset bootstrap to use config/version variables
2015-06-10 15:53:21 +00:00
Pliable Pixels
1f7cd3111b
Added CRUD plugin
2015-06-10 15:42:48 +00:00
Pliable Pixels
812efdb14c
Removed hasmany relationship from Control - it should not be mapped into any other controller
2015-06-09 12:22:28 +00:00
Pliable Pixels
30aefe1097
Addnew route for new control API. Ref: https://github.com/ZoneMinder/ZoneM ^Cder/issues/799#issuecomment-105233112
2015-06-08 17:51:59 +00:00
Pliable Pixels
f723fc58b2
New Control API to retrieve PTZ controls definitions. Refer https://github.com/ZoneMinder/ZoneMinder/issues/799#issuecomment-105233112
2015-06-08 17:50:36 +00:00
Pliable Pixels
444477d8a5
New Control API to retrieve PTZ controls definitions. Refer https://github.com/ZoneMinder/ZoneMinder/issues/799#issuecomment-105233112
2015-06-08 17:49:51 +00:00
Pliable Pixels
aa8f7da7e2
Fixed daemonStatus API to return string returned by ZMC in addition to true/false so we can handle pending status of a monitor
2015-06-08 14:35:45 +00:00
Kyle Johnson
e7472a126f
Rework the Options / Config page (again)
...
We're now grabbing only the json from the api, passing it through
the Crud plugin so that ints stay as ints, and then assigning the
json to the scope via app.js resolve.
* Saving Config is not tested here.
* This commit may deprecate the ConfigParserComponent
* Options must be saved before changing the tab, lest they are lost.
* That'll be fixed in another commit.
2015-03-05 08:03:15 -05:00
Kyle Johnson
683c4eed4b
API: Config Index action call find('hash')
2015-03-03 09:34:11 -05:00
Kyle Johnson
a395f9a9f7
Add find method for returning hash of Config table
2015-03-03 09:25:02 -05:00
Kyle Johnson
8c8ae6ae6f
Replace configs/keyvalue functionality with CRUD
2015-02-27 11:20:45 -05:00
Kyle Johnson
a228a5077c
Change primaryKey and displayField for Config
2015-02-27 11:17:30 -05:00
Kyle Johnson
8af8ecb6f1
API: Zones use Crud for Index and View actions
2015-02-25 10:33:55 -05:00
Kyle Johnson
80b1a61a12
Add CakePHP Crud plugin to the API
...
I wish I knew about this plugin months ago.
By default PDO and CakePHP cast int as string. This prevents me
from using `<input type="number">`, as the modle that the input
is bound to is actually a string, not an int.
Crud by default casts int back to int via ApiTransformationListener
It also has a bunch of other features which makes the life of a
REST / CRUD developer easier.
2015-02-25 10:28:24 -05:00
Kyle Johnson
21fdd5d453
Add ZonePresets to the API
2015-02-24 14:08:10 -05:00
Kyle Johnson
ad69c02c9f
Add API function: Create a monitor's zone snapshot
2015-02-24 11:13:46 -05:00
Kyle Johnson
d56e0762f4
Add API function: return a monitor's zones
2015-02-24 11:13:10 -05:00
Kyle Johnson
d5b8cd2f78
Surround ng-true-value and ng-false-value with '
2015-02-02 19:16:01 -05:00
Kyle Johnson
7565edfc69
API: Return Filesystem path to event within json payload
2015-01-27 11:12:32 -05:00
Kyle Johnson
c486cd0741
Add API function to find Config by Name
2015-01-27 11:11:40 -05:00
Kyle Johnson
7a5ee71080
Use Monitor's WebColour in Host 'Disk Usage' graph
2015-01-26 17:22:57 -05:00
Kyle Johnson
e4b1f8a64e
Add API function for getting Event's path
2015-01-23 11:57:31 -05:00
Kyle Johnson
5b9a27c5ca
Add API function to archive / unarchive an Event
2015-01-21 17:24:55 -05:00
Kyle Johnson
7af0cadd67
Add API support for starting and stopping ZM
2015-01-17 12:23:58 -05:00
Kyle Johnson
432c3c9d82
Add States MVC to API
2015-01-17 11:18:22 -05:00
Kyle Johnson
8279f71266
Rewrite of Log view to use dir-paginate
2015-01-08 16:06:13 -05:00
Kyle Johnson
c42ad0ba13
Add support for deleting monitor in new ui
...
Deletes via the API. Also attempts to stop any zma or zmc processes
for the given monitor before deleting it from the table.
2015-01-07 16:43:37 -05:00
Kyle Johnson
26c29afb38
Start a monitor after adding it via api
2015-01-07 14:50:57 -05:00
Kyle Johnson
afefef3cc2
Only build filter if named params are set
2015-01-05 14:21:19 -05:00
Kyle Johnson
648252cf50
Allow filtering of events in index view
2015-01-05 14:08:09 -05:00
Kyle Johnson
040094e984
Add initial API Filter component
...
The purpose of this is to turn ZoneMinder filter queries into usable
CakePHP find() conditions.
As example would be turning
api/events/index/MonitorId:7/MonitorId:8/StartTime >=:2015-01-05.json
into an array like this:
'conditions' => array(
'MonitorId' => (7, 8),
'StartTime >=' => '2015-01-05'
)
2015-01-05 14:02:42 -05:00
Kyle Johnson
c945b23dae
Log which event a frame could not be found for
2015-01-01 11:33:12 -05:00
Kyle Johnson
a2cd6e1434
Add pagination support to Events in the API
...
/api/events.json now accepts the ?page querystring, e.g.
/api/events.json?page=2 or /api/events.json
2014-12-29 12:10:05 -05:00
Kyle Johnson
a7d32a2cd7
Default to Low bandwidth in API if not set
2014-12-25 23:47:44 -05:00
Kyle Johnson
930b94be40
Create a thumbnail for each event in index view
2014-12-23 22:11:24 -05:00
Kyle Johnson
1146e42c0f
Add createThumbnail function to the API
2014-12-23 22:10:52 -05:00
Kyle Johnson
6718559be5
Set Frame model to not be recursive by default
2014-12-23 22:05:23 -05:00
Kyle Johnson
5598cce260
Add getImageSrc function to the API via component
2014-12-23 17:42:44 -05:00
Kyle Johnson
ef99e30a33
Add reScale and deScale components to API
2014-12-23 11:22:34 -05:00
Kyle Johnson
f213657c0e
Add cakephp route for logs
2014-12-01 16:14:23 +00:00
Kyle Johnson
dd9188b7cd
Remove Logs views, ouput log json via _serialize
2014-12-01 16:13:08 +00:00
Kyle Johnson
dcde5e16ad
Add API function to check daemon status of monitor
...
This replaces daemonStatus(), zmcStatus() and zmaStatus() from
the original includes/functions.php.
Can be accessed like:
/api/monitors/daemonStatus/id:2/daemon:zma.json
2014-11-26 03:38:41 +00:00
Kyle Johnson
b0aeea262b
Set Monitor model to not be recursive
2014-11-26 03:31:20 +00:00
Kyle Johnson
284b51b73d
Update API to return disk usage for all monitors
...
This allows us to get back an array of monitor => usage key pairs
2014-11-25 16:10:34 +00:00
Kyle Johnson
e7ab18236a
Get load via sys_getloadavg() instead of uptime
2014-11-25 16:07:27 +00:00
Kyle Johnson
d44b89b7fc
Allow API to return per-monitor disk usage
...
* For monitor 1: api/host/getDiskPercent/1.json
* For all: api/host/getDiskPercent.json
2014-11-24 19:56:44 +00:00
Kyle Johnson
40dcca2084
Add API function to get ZM version
2014-11-24 00:52:27 +00:00
Kyle Johnson
055a494fe4
Add getDiskPercent function to the api
...
Returns the amount of space used
2014-11-21 22:15:32 +00:00
Kyle Johnson
ffaa24d108
daemonCheck finds zmdc.pl via Configure::read
2014-11-21 21:42:21 +00:00
Kyle Johnson
0108f43cab
Add function for making vars in zm.conf global in api
...
This loops throgh zm.conf and sets each variable in it
as global in CakePHP via Configure::write. The vars
can then later be read withing CakePHP via Configure::read
2014-11-21 21:40:31 +00:00