api doesn't work on raspberry pi 3 with buster OS

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
david1234
Posts: 96
Joined: Wed Jun 26, 2019 12:24 pm

api doesn't work on raspberry pi 3 with buster OS

Post by david1234 »

Hello ,
I'm running zoneminder V1.34.16 on pi Buster OS.
everything is working with the zoneminder (record 3 cameras all the time ,with sound - work great!)

now I'm trying to use API ,

I have done what it said in the guide

Code: Select all

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
OPT_USE_GOOG_RECAPTCHA is disabled
have try with and without OPT_USE_AUTH (with password and without password)

no metter what I do
I get error

Code: Select all

curl -XPOST -d "user=David&pass=Davidpass" http://10.0.0.105/zm/api/host/login.json
{"name":"Not Found","message":"Not Found","url":"\/api\/zm\/api\/host\/login.json"}
pi@raspberrypi:~$
I have restart the zoneminder service
reboot the pi

still not working

what is missing?

Thanks ,
david1234
Posts: 96
Joined: Wed Jun 26, 2019 12:24 pm

Re: api doesn't work on raspberry pi 3 with buster OS

Post by david1234 »

anything?

cant be the only one....

Thanks,
bbunge
Posts: 2930
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: api doesn't work on raspberry pi 3 with buster OS

Post by bbunge »

What instructions did you use to install Zoneminder?
Or did you use the pre-built image?
david1234
Posts: 96
Joined: Wed Jun 26, 2019 12:24 pm

Re: api doesn't work on raspberry pi 3 with buster OS

Post by david1234 »

pre-build image from here

Code: Select all

https://zmrepo.zoneminder.com/
david1234
Posts: 96
Joined: Wed Jun 26, 2019 12:24 pm

Re: api doesn't work on raspberry pi 3 with buster OS

Post by david1234 »

anyone?
david1234
Posts: 96
Joined: Wed Jun 26, 2019 12:24 pm

Re: api doesn't work on raspberry pi 3 with buster OS

Post by david1234 »

can someone help \guide maybe ?

I really love working with zoneminder and the API option could make this program 100% good for my needed

?
bootybymayo
Posts: 1
Joined: Mon Mar 15, 2021 11:33 pm

Re: api doesn't work on raspberry pi 3 with buster OS

Post by bootybymayo »

I also encountered issues getting the API to work on a raspberry pi running buster.

What fixed it for me was following these steps here:

viewtopic.php?t=28435#p111193

And then changing this file mentioned here:

https://github.com/ZoneMinder/zoneminde ... -532723937

The actual file I changed ended up being usr/share/zoneminder/www/api/app/Config/core.php as opposed to Configure/core.php mentioned in the post.

After a restart my API seems to be working.
Post Reply