You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
seems to work better with lowercase : http://ip_address:8111/api/partition?changeto=2
received: {"response": "Request to change current partition to 2 was received."}
but the subsequent calls to /api does not take effect on partition 2, but keeps on returning information for partition1 ... any idea ?
I need to access partition 2 because I have a device in zone 17.
I just figured out the the alarmserver.cfg file add only zone[1-16] defined... I added definition for zone[17-32], restarted alaserver process, voilà!
I get status from zone 17 now, no need to change partition... =)
Hi,
I am trying to use the API call to change the partition as documented :
http://ip_address:8111/api/partition?changeTo=2
And I am getting that:
web.Server Traceback (most recent call last): exceptions.KeyError: 'changeto' /usr/lib/python2.7/dist-packages/twisted/web/server.py:189 in process 188 self._encoder = encoder 189 self.render(resrc) 190 except: /usr/lib/python2.7/dist-packages/twisted/web/server.py:238 in render 237 try: 238 body = resrc.render(self) 239 except UnsupportedMethod as e: /usr/lib/python2.7/dist-packages/twisted/web/resource.py:250 in render 249 raise UnsupportedMethod(allowedMethods) 250 return m(request) 251 ./alarmserver.py:702 in render_GET 701 elif myPath == '/api/partition': 702 changeTo = query_array['changeto'][0] 703 if not changeTo.isdigit(): exceptions.KeyError: 'changeto'
Everything else works perfectly... please help.
thanks
David
The text was updated successfully, but these errors were encountered: