Alarm via API returns wrong value
Posted: Fri Jul 10, 2020 8:57 pm
I'm working with pyzm, but I think this applies to ZM itself.
When I send the arm() command, which posts:
Where mid=3. I get a return json of something like
But in the web-ui, ID #3 seems to have been created instead.
Can anyone explain the discrepancy? Shouldn't "3" be returned in the json string? I've tested multiple times.
When I send the arm() command, which posts:
Code: Select all
[DEBUG 1] make_request called with url=http://192.168.1.247/zm/api/monitors/alarm/id:3/command:on.json payload={} type=get query={}
Code: Select all
ARM: {'status': 'Alarmed event id: 2'}
Can anyone explain the discrepancy? Shouldn't "3" be returned in the json string? I've tested multiple times.