Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
Penguidom
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
domotika
Penguidom
Commits
96e6a68c
Commit
96e6a68c
authored
7 years ago
by
Franco (nextime) Lanza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Permit proxy only and to avoid mapping zone names
parent
e8e2d808
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
4 deletions
+13
-4
paradox.conf
conf/defaults/paradox.conf
+2
-0
paradox.py
penguidom/plugins/paradox/paradox.py
+11
-4
No files found.
conf/defaults/paradox.conf
View file @
96e6a68c
...
...
@@ -5,7 +5,9 @@ baudrate: 9600
enableTCPProxy
:
no
tcpport
:
10001
tcpaddr
:
127
.
0
.
0
.
1
proxyonly
:
no
[
panel
]
autodetect
:
yes
paneltype
:
MG5050
mapNames
:
yes
This diff is collapsed.
Click to expand it.
penguidom/plugins/paradox/paradox.py
View file @
96e6a68c
...
...
@@ -161,9 +161,10 @@ class ParadoxProtocol(BaseProtocol):
self
.
log
.
debug
(
"Connection lost for "
+
str
(
reason
))
def
connect
(
self
):
self
.
write
(
p37b
.
MSG_CONNECT
,
expected_reply
=
p37b
.
REPLY_CONNECT
)
self
.
write
(
p37b
.
MSG_GETSTATUS
,
expected_reply
=
p37b
.
REPLY_GETSTATUS
)
self
.
write
(
p37b
.
MSG_SYNC
,
self
.
_replySync
,
expected_reply
=
p37b
.
REPLY_SYNC
)
if
not
genutils
.
isTrue
(
self
.
cfg
.
get
(
'connection'
,
'proxyonly'
)):
self
.
write
(
p37b
.
MSG_CONNECT
,
expected_reply
=
p37b
.
REPLY_CONNECT
)
self
.
write
(
p37b
.
MSG_GETSTATUS
,
expected_reply
=
p37b
.
REPLY_GETSTATUS
)
self
.
write
(
p37b
.
MSG_SYNC
,
self
.
_replySync
,
expected_reply
=
p37b
.
REPLY_SYNC
)
def
write
(
self
,
message
,
reply_callback
=
False
,
expected_reply
=
False
):
...
...
@@ -182,13 +183,19 @@ class ParadoxProtocol(BaseProtocol):
# when connecting. So, we just send both, hope
# sometime i will fully understand what they do exactly.
self
.
write
(
p37b
.
MSG_UNKWNOWN_HS1
)
self
.
write
(
p37b
.
MSG_UNKWNOWN_HS2
)
self
.
write
(
p37b
.
MSG_UNKWNOWN_HS2
,
self
.
mapNames
)
def
_processEvent
(
self
,
event
):
pass
def
mapNames
(
self
,
reply
=
None
):
if
genutils
.
isTrue
(
self
.
cfg
.
get
(
'connection'
,
'mapNames'
):
pass
class
ParadoxTCPProxy
(
Protocol
):
cid
=
0
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment