ZoneMinder 1.36.7
While trying to set up the Machine Learning Hooks using EventServer, I've gotten so close to actually get it to work after several hours of working it. But I've been getting this error on the logs:
Code: Select all
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://localhost/zm/api-token-here
Code: Select all
sudo -u www-data /var/lib/zmeventnotification/bin/zm_detect.py --config /etc/zm/objectconfig.ini --eventid <eid> --monitorid <mid> --debug
I tried finding anywhere to re-new/re-create a new API token, but whenever I run the:
Code: Select all
curl -XPOST -d "user=yourusername&pass=yourpassword" https://yourserver/zm/api/host/login.json
Code: Select all
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
<p>The document has moved <a href="https://localhost/zmzm/api/host/login.json">here</a>.</p>
<hr>
<address>Apache/2.4.38 (Debian) Server at localhost Port 80</address>
</body></html>
As you can see in "The document has moved" there is two "zmzm" in the url.
So I thought possibly this could be the issue of the above 404 error. Not entirely sure, but all the documentation I could ever find doesn't have anything on this. Can I somehow delete
Code: Select all
"https://localhost/zmzm/api/host/login.json"
Could be wrong and it's something completely different with the 404 error. So let me know. Any other info, let me know.