Machine Learning Hooks config

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
RonRN18
Posts: 52
Joined: Tue Aug 13, 2019 1:00 am

Machine Learning Hooks config

Post by RonRN18 »

I'm setting up the Machine Learning Hooks for zmeventnotification and have some probably stupid questions. I'm needing to modify the "objectconfig.ini" file and wondering if under "portal" and "api_portal". I'm guessing this is asking for the URL for ZoneMinder for "portal", but is this the IP address I use within my LAN or do I use the FQDN I use to access from outside? For "api_portal", is this essentially the portal with "/api" added to the end?
User avatar
asker
Posts: 1553
Joined: Sun Mar 01, 2015 12:12 pm

Re: Machine Learning Hooks config

Post by asker »

Yes. The exact URLs will depend on your ZM install, but take a look at secrets.ini that provides sample values

Typically:

portal=https://yourhostname/zm
api_portal=https://yourhostname/zm/api

With respect to LAN or WAN, it could be either. If however you want pictures included in your push notifications on your mobile device, it needs to be WAN
I no longer work on zmNinja, zmeventnotification, pyzm or mlapi. I may respond on occasion based on my available time/interest.

Please read before posting:
How to set up logging properly
How to troubleshoot and report - ES
How to troubleshoot and report - zmNinja
ES docs
zmNinja docs
Post Reply