From a6175fcb14d9efdc2303d5772b4911d48de2a3d8 Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Tue, 31 Mar 2020 12:28:52 -0400 Subject: doc cleanup --- docs/guides/validating-api.rst | 29 +++++++++++++++++++---------- 1 file changed, 19 insertions(+), 10 deletions(-) (limited to 'docs') diff --git a/docs/guides/validating-api.rst b/docs/guides/validating-api.rst index a2ca59c3..f75431d0 100644 --- a/docs/guides/validating-api.rst +++ b/docs/guides/validating-api.rst @@ -7,6 +7,18 @@ Please make sure you go through this before you wonder why zmNinja is not workin Assumption: Your ZM server is accessible at ``http://server/zm`` -> replace this with your actual path + +.. important:: + Make sure you have the following settings in ZM: + + - ``AUTH_RELAY`` is set to hashed + - A valid ``AUTH_HASH_SECRET`` is provided (not empty) + - ``AUTH_HASH_IPS`` is disabled + - ``OPT_USE_APIS`` is enabled + - If you are using any version lower than ZM 1.34, ``OPT_USE_GOOG_RECAPTCHA`` is disabled + - If you are NOT using authentication at all in ZM, that is ``OPT_USE_AUTH`` is disabled, then make sure you also disable authentication in zmNinja, otherwise it will keep waiting for auth keys. + + Make sure ZM APIs are working: '''''''''''''''''''''''''''''' @@ -74,16 +86,13 @@ empty, your APIs have a problem. Please post in the ZM forums (please {"events":[{"Event":{ /* many more details */ }}]} -*Top reasons why monitors and events API returns blank while getVersion -works:* \* You don't have monitor/event view permissions allocated to -the user \* You have an invalid camera definition (happens sometimes -when you remove and re-add cameras) \* If you are using non UTF8 -characters in your monitor names/zone names this can cause issues. Edit -``/usr/share/zoneminder/www/api/app/Config/database.php`` (assuming ZM -is in /usr/share) and make sure ``'encoding' => 'utf8'`` is -*uncommented* (remove ``//``) around line 74. I've submitted a -`patch `__ -but till its merged, you might have to do it manually. +Top reasons why monitors and events API returns blank while getVersion +works: + +* You don't have monitor/event view permissions allocated +* You don't have system view permissions (zmNinja needs this to access ``/servers.json`` API) +* You have an invalid camera definition (happens sometimes when you remove and re-add cameras) + zmNinja API notes: ^^^^^^^^^^^^^^^^^^ -- cgit v1.2.3