Skip to content
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

Partition Status not able to switch from P1 #21

Open
dsc-elvey-za opened this issue Jan 31, 2014 · 11 comments
Open

Partition Status not able to switch from P1 #21

dsc-elvey-za opened this issue Jan 31, 2014 · 11 comments

Comments

@dsc-elvey-za
Copy link

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
Copy link
Author

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

@gschrader
Copy link
Collaborator

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.

@kholloway
Copy link
Collaborator

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

[alarmserver]
partition1=Home

@dsc-elvey-za
Copy link
Author

hi

it is mapped to Test

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

@kholloway
Copy link
Collaborator

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

@dsc-elvey-za
Copy link
Author

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
Copy link
Author

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 ...

@juggie
Copy link
Owner

juggie commented Feb 21, 2016

@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
Copy link
Owner

juggie commented Feb 21, 2016

@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
Copy link
Owner

juggie commented Feb 21, 2016

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
Copy link
Owner

juggie commented Feb 21, 2016

@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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants