AlarmServer icon indicating copy to clipboard operation
AlarmServer copied to clipboard

Partition Status not able to switch from P1

Open dsc-elvey-za opened this issue 11 years ago • 11 comments

After arming the alarm system the green status icon stays green until you restart the server ? anyone else have this issue ?

Robin screen shot 2014-01-31 at 5 42 16 pm

dsc-elvey-za avatar Jan 31 '14 15:01 dsc-elvey-za

i also cannot access my "Test" Partition ?any ideas...

dsc-elvey-za avatar Jan 31 '14 21:01 dsc-elvey-za

I would guess that there is a javascript error that is causing the page not to update. You can look at the javascript console under the View->Developer-JavaScript console and see if anything is listed there.

gschrader avatar Feb 03 '14 18:02 gschrader

In your alarmserver.cfg file what is your test partition mapped to? For example in my config..

[alarmserver] partition1=Home

kholloway avatar Mar 12 '14 16:03 kholloway

hi

it is mapped to Test

screen shot 2014-03-12 at 7 32 51 pm

dsc-elvey-za avatar Mar 12 '14 17:03 dsc-elvey-za

Your partition keyword 'Partition2' has a capital P in it, try to lowercase it and restart the alarmserver.

kholloway avatar Mar 12 '14 18:03 kholloway

still the same .... the Icons also don't change state until you restart the server ....

If you select P2 and Arm it always arms P1

screen shot 2014-03-13 at 3 40 42 am

dsc-elvey-za avatar Mar 13 '14 01:03 dsc-elvey-za

Also i added a zone in P2 and it shows in P1 - so I'm sure there is no script written for the partitions as i would expect the zones assigned to P2 only show up on the page ...

dsc-elvey-za avatar Mar 13 '14 02:03 dsc-elvey-za

@dsc-elvey-za I've been rewriting all this to make it much better but I don't have a multi-partition system to test on.

juggie avatar Feb 21 '16 03:02 juggie

@dsc-elvey-za Looking at the code the arm/disarm/etc hooks are all hard coded to partition 1 only.

I'll fix this, assume partition=1 where no partition is provided and push the code soon. I won't be able to update the GUI quickly (or easily) as I am not a gui guy, but the endpoint eg /API/arm or /API/disarm will all accept a partition when I am done.

juggie avatar Feb 21 '16 04:02 juggie

K, done. You can test by going to https://server:8111/api/alarm/stayarm?partition=2

It works via api, but it is not exposed via the gui. The buttons in the gui will continue to operate partition 1 only unless someone is able to update it for me.

juggie avatar Feb 21 '16 04:02 juggie

@dsc-elvey-za BTW, this code only exists in feature/tornado branch. You'll need python-tornado modules installed. I can backport the fixes to the old branch if absolutely necessary, but i'm using tornado going forward for http/https/sockets in python. If you are not familiar with how to install python modules (via pip) see here for instructions: http://www.tornadoweb.org/en/stable/

juggie avatar Feb 21 '16 04:02 juggie