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
8a3d920e
Commit
8a3d920e
authored
7 years ago
by
Franco (nextime) Lanza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Start to parse events
parent
eb80e75b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
paradox.py
penguidom/plugins/paradox/paradox.py
+17
-1
No files found.
penguidom/plugins/paradox/paradox.py
View file @
8a3d920e
...
...
@@ -62,6 +62,7 @@ class ParadoxProtocol(BaseProtocol):
self
.
core
=
core
self
.
cfg
=
cfg
self
.
log
.
debug
(
str
(
self
.
cfg
))
self
.
flags
=
p37b
.
Flags
()
try
:
self
.
proxyonly
=
genutils
.
isTrue
(
self
.
cfg
.
get
(
'connection'
,
'proxyonly'
))
self
.
mapnames
=
genutils
.
isTrue
(
self
.
cfg
.
get
(
'panel'
,
'mapNames'
))
...
...
@@ -219,7 +220,22 @@ class ParadoxProtocol(BaseProtocol):
self
.
log
.
error
(
"Cannot autoload board mapping for "
+
str
(
board
))
def
_processEvent
(
self
,
event
):
pass
self
.
flags
.
asByte
=
ord
(
event
[
0
])
alarm
=
self
.
flags
.
alarm
year
=
(
ord
(
event
[
1
])
*
100
)
+
ord
(
event
[
2
])
month
=
ord
(
event
[
3
])
day
=
ord
(
event
[
4
])
hour
=
ord
(
event
[
5
])
minute
=
ord
(
event
[
6
])
date
=
"-"
.
join
([
str
(
year
),
str
(
month
),
str
(
day
)])
+
" "
+
":"
.
join
([
str
(
hour
),
str
(
minute
)])
event
,
subevent
=
EVENTMAP
.
getEventDescription
(
ord
(
event
[
7
]),
ord
(
event
[
8
]))
event
=
event
.
strip
()
subevent
=
subevent
.
strip
()
self
.
log
.
debug
(
"Event: "
+
date
+
" - "
+
event
+
": "
+
subevent
+
" - In alarm:"
+
str
(
alarm
))
def
_setNames
(
self
,
reply
,
item
):
...
...
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