New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Change status of monitor - Enabled = true with error #1208

Closed
morphey1 opened this Issue Dec 28, 2015 · 5 comments

Comments

Projects
None yet
2 participants
@morphey1

morphey1 commented Dec 28, 2015

Hi,

I have ZM Version: 1.28.1

I write a script in js for ZM's Control with webpp.
I have a problem with the API.

In the docs is written:

http://zoneminder.readthedocs.org/en/latest/api.html#change-state-of-monitor-1

curl -XPOST http://server/zm/api/monitors/1.json -d "Monitor[Function]=Modect&Monitor[Enabled]:true"

I tried the url (with cookie authentication) and the result is:

$ curl -c cookie.txt -XPOST http://server/zm/api/monitors/3.json -d "Monitor[Function]=Modect&Monitor[Enabled]:\"1\""
{
    "message": "Saved"
}

The "Function" of camera changes correctly to "Modect" (or "Monitor"), but the flag "Enabled" remain in "0" (false) state.

Has anyone had the same problem?
Who can help?

@knight-of-ni

This comment has been minimized.

Show comment
Hide comment
@knight-of-ni

knight-of-ni Dec 28, 2015

Member

The API is only available in the latest development snapshot. It is not available in 1.28.1.
You either need to upgrade to a development snapshot, currently 1.28.109, or wait until the next release, 1.29.0, which is just around the corner.

Member

knight-of-ni commented Dec 28, 2015

The API is only available in the latest development snapshot. It is not available in 1.28.1.
You either need to upgrade to a development snapshot, currently 1.28.109, or wait until the next release, 1.29.0, which is just around the corner.

@morphey1

This comment has been minimized.

Show comment
Hide comment
@morphey1

morphey1 Dec 28, 2015

Hi @knnniggett ,

really bad this thing :)

how can I do to enable a single remote camera?

For the dev version, I currently use the repo for Fedora. Can I install the beta via yum?

thanks

morphey1 commented Dec 28, 2015

Hi @knnniggett ,

really bad this thing :)

how can I do to enable a single remote camera?

For the dev version, I currently use the repo for Fedora. Can I install the beta via yum?

thanks

@knight-of-ni

This comment has been minimized.

Show comment
Hide comment
@knight-of-ni

knight-of-ni Dec 28, 2015

Member

If you are using zmrepo to install ZoneMinder on Fedora, you need to enable the testing repo to get 1.28.109.

And apparently the testing repo file got left out of Fedora 23. I will push up a new zmrepo rpm shortly.

Member

knight-of-ni commented Dec 28, 2015

If you are using zmrepo to install ZoneMinder on Fedora, you need to enable the testing repo to get 1.28.109.

And apparently the testing repo file got left out of Fedora 23. I will push up a new zmrepo rpm shortly.

@morphey1

This comment has been minimized.

Show comment
Hide comment
@morphey1

morphey1 Dec 28, 2015

Hi @knnniggett ,

still exist a method for change the state from mysql db?

I have fedora 21 and the beta is not present.

morphey1 commented Dec 28, 2015

Hi @knnniggett ,

still exist a method for change the state from mysql db?

I have fedora 21 and the beta is not present.

@knight-of-ni

This comment has been minimized.

Show comment
Hide comment
@knight-of-ni

knight-of-ni Dec 28, 2015

Member

Fedora has limited life cycles on their distros, and you can expect zmrepo to follow the same pattern.
Consequently, you need to upgrade to at least Fedora 22.

Please move this conversation to either our IRC channel or the user forum for additional help.

Our github forum is reserved for bug reports and feature requests only:
https://github.com/ZoneMinder/ZoneMinder/wiki/Github-Posting-Rules

Member

knight-of-ni commented Dec 28, 2015

Fedora has limited life cycles on their distros, and you can expect zmrepo to follow the same pattern.
Consequently, you need to upgrade to at least Fedora 22.

Please move this conversation to either our IRC channel or the user forum for additional help.

Our github forum is reserved for bug reports and feature requests only:
https://github.com/ZoneMinder/ZoneMinder/wiki/Github-Posting-Rules

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment