Search found 80 matches

by david1234
Tue Apr 27, 2021 12:51 pm
Forum: ZoneMinder 1.34.x
Topic: change the zmNinja port?
Replies: 0
Views: 883

change the zmNinja port?

Hello , I have a wroking pi with zoneminder also working is the zmNinja (with API) I can change the state using python to the zoneminder server everything is working right now I'm entering the server using NAT to port 80 just want to know how can I change the port of the zmNinja? right now it's work...
by david1234
Tue Dec 01, 2020 3:07 pm
Forum: ZoneMinder 1.34.x
Topic: pyzm: a python wrapper (leverages 1.34 features)
Replies: 10
Views: 22111

Re: pyzm: a python wrapper (leverages 1.34 features)

I have start to work with pyzm - just great for my needes

one question :
how can I tell the state of the server ?
is it running on Record\ Stop \ Default mode ?

I have found how to change using

Code: Select all

zmapi.stop()
zmapi.start()
zmapi.set_state("Record")
Thanks ,
by david1234
Mon Nov 30, 2020 3:45 pm
Forum: ZoneMinder 1.34.x
Topic: first time api python code - need newbie help
Replies: 0
Views: 415

first time api python code - need newbie help

Hello I want to connect to my server using Python API I have download "pyzm package" , and run an simple code to get the version just to see if it's working this is what I have done: import pyzm.api as zmapi api_options = { 'apiurl': 'http://10.0.0.105/zm/api', 'portalurl': 'http:/10.0.0.105/zm', 'u...
by david1234
Mon Nov 30, 2020 2:54 pm
Forum: ZoneMinder 1.34.x
Topic: unable to connect to API V1.34.22
Replies: 28
Views: 2830

Re: unable to connect to API V1.34.22

as I post at the beggining I use a well known image to install it - didn't change anything . but never mind - I thought maybe this is a "well- knonwn" problem that mught help otehr PI users . I was 99% happy with zoneminder (for what I need , all the time record ) , just wanted to add remote control...
by david1234
Mon Nov 30, 2020 11:57 am
Forum: ZoneMinder 1.34.x
Topic: unable to connect to API V1.34.22
Replies: 28
Views: 2830

Re: unable to connect to API V1.34.22

:shock: :shock: :shock: now it's working Thank you so much!!!!! I have enable the password on the gui and I get this replay pi@raspberrypi:~$ curl -XPOST -d "user=David&pass=Davidpass" http://10.0.0.105/zm/api/host/login.json {"access_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJab25lTWlu...
by david1234
Mon Nov 30, 2020 9:39 am
Forum: ZoneMinder 1.34.x
Topic: unable to connect to API V1.34.22
Replies: 28
Views: 2830

Re: unable to connect to API V1.34.22

I remove the file now this is all I have in the site-enabled: ls -lsta /etc/apache2/sites-enabled/ total 12 4 drwxr-xr-x 2 root root 4096 Nov 30 11:35 . 4 drwxr-xr-x 8 root root 4096 Nov 25 10:26 .. 0 lrwxrwxrwx 1 root root 34 Apr 29 2020 zoneminder.conf -> ../sites-available/zoneminder.conf I have ...
by david1234
Mon Nov 30, 2020 8:48 am
Forum: ZoneMinder 1.34.x
Topic: unable to connect to API V1.34.22
Replies: 28
Views: 2830

Re: unable to connect to API V1.34.22

1.both files are the same as I was told to put 2. sudo apache2ctl -S AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message VirtualHost configuration: *:80 zm (/etc/apache2/sites-enabl...
by david1234
Mon Nov 30, 2020 7:05 am
Forum: ZoneMinder 1.34.x
Topic: unable to connect to API V1.34.22
Replies: 28
Views: 2830

Re: unable to connect to API V1.34.22

first of all thank you for your help and time !
I think so , but how can I be 100% sure
what do you wnat to me to run \ which command so we all be sure of that ?

Thanks ,
by david1234
Sun Nov 29, 2020 2:27 pm
Forum: ZoneMinder 1.34.x
Topic: unable to connect to API V1.34.22
Replies: 28
Views: 2830

Re: unable to connect to API V1.34.22

return empty

Code: Select all

find /usr/share/zoneminder/ -name .htaccess
pi@raspberrypi:~$ 

by david1234
Sun Nov 29, 2020 1:18 pm
Forum: ZoneMinder 1.34.x
Topic: unable to connect to API V1.34.22
Replies: 28
Views: 2830

Re: unable to connect to API V1.34.22

I have set the authentication off , abd try this: curl -X POST http://10.0.0.105/zm/api/host/getVersion.json got the same resualt {"name":"Not Found","message":"Not Found","url":"\/api\/zm\/api\/host\/getVersion.json"} and in the access file zm:80 10.0.0.105 - - [29/Nov/2020:15:10:30 +0200] "POST /z...
by david1234
Sun Nov 29, 2020 9:23 am
Forum: ZoneMinder 1.34.x
Topic: unable to connect to API V1.34.22
Replies: 28
Views: 2830

Re: unable to connect to API V1.34.22

I found this ls -lstra /var/log/apache2/other_vhosts_access.log 4 -rw-r----- 1 root adm 113 Nov 29 11:18 /var/log/apache2/other_vhosts_access.log pi@raspberrypi:~$ ls -lstra /var/log/apache2/other_vhosts_access* 4 -rw-r----- 1 root adm 781 Oct 20 20:45 /var/log/apache2/other_vhosts_access.log.14.gz ...
by david1234
Sun Nov 29, 2020 8:22 am
Forum: ZoneMinder 1.34.x
Topic: unable to connect to API V1.34.22
Replies: 28
Views: 2830

Re: unable to connect to API V1.34.22

when I look at the files they are empty and las modify when I install the image ls -lst /var/log/apache2/access* 0 -rw-r----- 1 root adm 0 Jun 17 00:00 /var/log/apache2/access.log 4 -rw-r----- 1 root adm 623 Apr 29 2020 /var/log/apache2/access.log.1 and when I look at the file cat /var/log/apache2/a...
by david1234
Thu Nov 26, 2020 3:25 pm
Forum: ZoneMinder 1.34.x
Topic: unable to connect to API V1.34.22
Replies: 28
Views: 2830

Re: unable to connect to API V1.34.22

I notice I have 2 files with the name in 2 places /etc/apache2/sites-enabled/zoneminder.conf /etc/apache2/sites-available/zoneminder.conf I cahgne both of them to what you post then I reload the apache service by sudo systemctl restart apache2.service chek to see if the everything is working using t...
by david1234
Thu Nov 26, 2020 2:09 pm
Forum: ZoneMinder 1.34.x
Topic: unable to connect to API V1.34.22
Replies: 28
Views: 2830

Re: unable to connect to API V1.34.22

on the Pi I have the file here: /etc/apache2/sites-available/zoneminder.conf is this the same? this is the file: <VirtualHost *:80> DocumentRoot /usr/share/zoneminder/www ServerName zm ErrorLog /var/log/apache2/error.log # Order matters. This alias must come first. Alias /zm/cache "/var/cache/zonemi...
by david1234
Thu Nov 26, 2020 9:49 am
Forum: ZoneMinder 1.34.x
Topic: unable to connect to API V1.34.22
Replies: 28
Views: 2830

Re: unable to connect to API V1.34.22

I'm using Pi I download pre-build image from here: https://zmrepo.zoneminder.com/ have ty to reach the the pesrson how put it - no success have try to go everything it said in the manual - still get the same "not found' answer OPT_USE_API is enabled reboot the pi and try again I have try with and wi...