Search found 20 matches

by Cramac1
Wed Jun 19, 2019 9:40 am
Forum: ZoneMinder 1.33.x
Topic: API Error (zm 1.33.6)
Replies: 16
Views: 2958

Re: API Error (zm 1.33.6)

and what web interface does it use?
judging by the database, Russian is not stored in utf8
Безымянный.jpg
Безымянный.jpg (422.08 KiB) Viewed 897 times
by Cramac1
Sun Jun 16, 2019 6:47 pm
Forum: ZoneMinder 1.33.x
Topic: API Error (zm 1.33.6)
Replies: 16
Views: 2958

Re: API Error (zm 1.33.6)

The new question is, in what encoding does the API return the name? in zm web:
Запись- 53703

in api:
[Name] => Запись- 50857

Russian text
by Cramac1
Sun Jun 16, 2019 6:16 pm
Forum: ZoneMinder 1.33.x
Topic: API Error (zm 1.33.6)
Replies: 16
Views: 2958

Re: API Error (zm 1.33.6)

asker wrote:
Sun Jun 16, 2019 1:02 pm
1. Create a AUTH_HASH_SECRET

-- other option ---
1. What happens if you change your code to use the new token system? That is, replace "&auth=" with "&token=" and use "access_token" key (new API docs here)
made a new AUTH_HASH_SECRET and replaced auth with a token
and now it works

thx
by Cramac1
Sun Jun 16, 2019 12:17 pm
Forum: ZoneMinder 1.33.x
Topic: API Error (zm 1.33.6)
Replies: 16
Views: 2958

Re: API Error (zm 1.33.6)

yesterday just updated

[version] => 1.33.9
by Cramac1
Sat Jun 15, 2019 8:58 pm
Forum: ZoneMinder 1.33.x
Topic: API Error (zm 1.33.6)
Replies: 16
Views: 2958

Re: API Error (zm 1.33.6)

Yes, there is a problem, the video does not go, in the log: ERR Unable to authenticate user
by Cramac1
Sat Jun 15, 2019 9:36 am
Forum: ZoneMinder 1.33.x
Topic: API Error (zm 1.33.6)
Replies: 16
Views: 2958

Re: API Error (zm 1.33.6)

auth return: Array ( [access_token] => eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJab25lTWluZGVyIiwiaWF0IjoxNTYwNTkxMDU4LCJleHAiOjE1NjA1OTQ2NTgsInVzZXIiOiJhZG1pbiIsInR5cGUiOiJhY2Nlc3MifQ.TSVWYhUl_kN3NUZvNP6cRAg0N_mUqDImi_vUNJPtIuY [access_token_expires] => 3600 [refresh_token] => eyJ0eXAiOiJKV1Q...
by Cramac1
Sat Jun 15, 2019 8:42 am
Forum: ZoneMinder 1.33.x
Topic: API Error (zm 1.33.6)
Replies: 16
Views: 2958

Re: API Error (zm 1.33.6)

rockedge wrote:
Tue Apr 30, 2019 7:46 pm
do you have Options->Systems->AUTH_HASH_LOGINS enabled?
yes
Безымянный.gif
Безымянный.gif (116.93 KiB) Viewed 1476 times
by Cramac1
Tue Apr 30, 2019 7:40 pm
Forum: ZoneMinder 1.33.x
Topic: API Error (zm 1.33.6)
Replies: 16
Views: 2958

Re: API Error (zm 1.33.6)

Only viewing online pictures does not work. Error: zms_m2 Dav 9241 ERR Unable to authenticate user I pass authorization, I see a list of monitors, I want to see a picture, but he does not give: <img src="http://video.site.ru/zm/cgi-bin/nph-zms?scale=auto&width=1920px&height=1080px&mode=jpeg&maxfps=3...
by Cramac1
Tue Apr 30, 2019 7:32 pm
Forum: ZoneMinder 1.33.x
Topic: API Error (zm 1.33.6)
Replies: 16
Views: 2958

Re: API Error (zm 1.33.6)

updated to zoneminder (1.33.6~20190428120633-bionic)
here all the rules
by Cramac1
Fri Apr 12, 2019 6:39 pm
Forum: ZoneMinder 1.33.x
Topic: API Error (zm 1.33.6)
Replies: 16
Views: 2958

API Error (zm 1.33.6)

login API $ch = curl_init(); curl_setopt( $ch, CURLOPT_URL, "http://site.ru/zm/api/host/login.json" ); curl_setopt( $ch, CURLOPT_POST, 1); //0 for a get request curl_setopt( $ch, CURLOPT_POSTFIELDS, "user=admin&pass=xxx" ); curl_setopt( $ch, CURLOPT_COOKIEJAR, dirname(__FILE__).'/cookie.txt' ); $res...
by Cramac1
Sat Mar 30, 2019 7:28 pm
Forum: ZoneMinder 1.33.x
Topic: modify filters error (500)
Replies: 1
Views: 466

modify filters error (500)

Hello. when you try to change the filter, error 500 crashes [Sat Mar 30 22:13:38.975152 2019] [php7:notice] [pid 26550] [client 176.59.46.156:51350] PHP Fatal error: Uncaught Error: Call to undefined function ZM\\csrf_get_secret() in /usr/share/zoneminder/www/includes/Filter.php:221\nStack trace:\n#...
by Cramac1
Tue Dec 11, 2018 3:37 pm
Forum: Feature Requests
Topic: arsp ?
Replies: 0
Views: 917

arsp ?

Hello
is arsp support planned
by Cramac1
Tue Nov 06, 2018 2:21 pm
Forum: ZoneMinder 1.32.x
Topic: Multiserver
Replies: 4
Views: 779

Re: Multiserver

Настраивается пакет zoneminder (1.32.2~20181102121441-bionic) … Detected db service is mysql.service Updating permissions Database already at version 1.32.2, update aborted. Freshening configuration in database Loading config from DB 223 entries Saving config to DB 223 entries Done Updating; startin...
by Cramac1
Sat Nov 03, 2018 3:00 pm
Forum: ZoneMinder 1.32.x
Topic: Event filter - delete all XX day?
Replies: 3
Views: 610

Re: Event filter - delete all XX day?

Thx. confused by the drop-down calendar in the field.
by Cramac1
Thu Nov 01, 2018 6:54 pm
Forum: ZoneMinder 1.32.x
Topic: Event filter - delete all XX day?
Replies: 3
Views: 610

Event filter - delete all XX day?

Hey. Tell me how to make a filter to delete all records older than XX days?
ZM 1.32.2