Skip to content
This repository has been archived by the owner on Nov 3, 2024. It is now read-only.

How to control several control panels #1

Open
ghost opened this issue Jun 25, 2018 · 6 comments
Open

How to control several control panels #1

ghost opened this issue Jun 25, 2018 · 6 comments

Comments

@ghost
Copy link

ghost commented Jun 25, 2018

The library works really well, but it controls the last panel of the account. I have 3 panels in this account but I have no idea how to choose which panel I use.
Any idea ?
Thanks for sharing your work.

@hajekmi
Copy link
Owner

hajekmi commented Jun 25, 2018

What is panel? Keyboard?

@ghost
Copy link
Author

ghost commented Jun 26, 2018

it's alarm system JA-100, I have 3 of them one is in office, one at home, the other at my parents. When I use the API, it controls the 1st one (I thought it was the last one, but as one of them is currently with a problem, it came first). Do you have any idea on how to choose which alarm linked to my account i can operate ?

@hajekmi
Copy link
Owner

hajekmi commented Jun 26, 2018

I'm sorry but I don't know. For every unit separe login and username, maybe.

@ghost
Copy link
Author

ghost commented Jun 26, 2018

I'll try to find and let you know :)

@ghost
Copy link
Author

ghost commented Jun 26, 2018

Ok, if you change preg_match to preg_match_all in the login() function, you can get all panel service numbers :
[0] => www.jablonet.net/app/ja100?service=557XXX
[1] => www.jablonet.net/app/ja100?service=861XXX
[2] => www.jablonet.net/app/ja100?service=485XXX
From then it should be easy to specify which Alarm Panel we want to control...

@frogale
Copy link

frogale commented Jul 31, 2018

Realy great work! It is working like a charm! Same as tozman I have several "panels" in my configuration.. But it should be easy to edit your code.. Thanks..

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

No branches or pull requests

2 participants