Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
D
domotikad
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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
domotika
domotikad
Commits
1d729abe
Commit
1d729abe
authored
Jan 19, 2014
by
nextime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix minor bugs in gui
parent
98c0b06f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
6 deletions
+17
-6
combined.min.js
Web/htdocs/gui/js/combined.min.js
+1
-1
domotika.js
Web/htdocs/gui/js/domotika.js
+1
-1
zwave.conf
daemons/zwave/conf/zwave.conf
+7
-1
zwaved.py
daemons/zwave/zwaved.py
+8
-3
No files found.
Web/htdocs/gui/js/combined.min.js
View file @
1d729abe
...
@@ -191,7 +191,7 @@ window.matchMedia=window.matchMedia||function(a){"use strict";var c,d=a.document
...
@@ -191,7 +191,7 @@ window.matchMedia=window.matchMedia||function(a){"use strict";var c,d=a.document
var
popupFader
=
function
(
ftype
,
title
,
message
,
timeout
){
var
popupFader
=
function
(
ftype
,
title
,
message
,
timeout
){
if
(
typeof
(
timeout
)
===
'undefined'
)
timeout
=
1500
;
if
(
typeof
(
timeout
)
===
'undefined'
)
timeout
=
1500
;
$
(
"#alertTitle"
).
text
(
title
);
$
(
"#alertTitle"
).
text
(
title
);
r
(
"#alertMessage"
).
text
(
" "
+
message
);
$
(
"#alertMessage"
).
text
(
" "
+
message
);
$
(
"#alertPopup"
).
removeClass
();
$
(
"#alertPopup"
).
removeClass
();
$
(
"#alertPopup"
).
addClass
(
"alert alert-"
+
ftype
);
$
(
"#alertPopup"
).
addClass
(
"alert alert-"
+
ftype
);
$
(
"#alertContainer"
).
fadeIn
(
100
);
$
(
"#alertContainer"
).
fadeIn
(
100
);
...
...
Web/htdocs/gui/js/domotika.js
View file @
1d729abe
...
@@ -118,7 +118,7 @@
...
@@ -118,7 +118,7 @@
var
popupFader
=
function
(
ftype
,
title
,
message
,
timeout
){
var
popupFader
=
function
(
ftype
,
title
,
message
,
timeout
){
if
(
typeof
(
timeout
)
===
'undefined'
)
timeout
=
1500
;
if
(
typeof
(
timeout
)
===
'undefined'
)
timeout
=
1500
;
$
(
"#alertTitle"
).
text
(
title
);
$
(
"#alertTitle"
).
text
(
title
);
r
(
"#alertMessage"
).
text
(
" "
+
message
);
$
(
"#alertMessage"
).
text
(
" "
+
message
);
$
(
"#alertPopup"
).
removeClass
();
$
(
"#alertPopup"
).
removeClass
();
$
(
"#alertPopup"
).
addClass
(
"alert alert-"
+
ftype
);
$
(
"#alertPopup"
).
addClass
(
"alert alert-"
+
ftype
);
$
(
"#alertContainer"
).
fadeIn
(
100
);
$
(
"#alertContainer"
).
fadeIn
(
100
);
...
...
daemons/zwave/conf/zwave.conf
View file @
1d729abe
[
web
]
[
web
]
port
:
80
port
:
9999
interface
:
0
.
0
.
0
.
0
logging
:
debug
[
controller
]
dev
: /
dev
/
ttyUSB0
logging
:
debug
daemons/zwave/zwaved.py
View file @
1d729abe
...
@@ -7,6 +7,7 @@ from twisted.internet import epollreactor
...
@@ -7,6 +7,7 @@ from twisted.internet import epollreactor
epollreactor
.
install
()
epollreactor
.
install
()
from
twisted.internet
import
reactor
from
twisted.internet
import
reactor
from
dmlib.daemonizer
import
Daemonizer
from
dmlib.daemonizer
import
Daemonizer
from
dmlib.utils.genutils
import
configFile
import
logging
,
time
,
sys
,
os
import
logging
,
time
,
sys
,
os
from
logging
import
handlers
as
loghandlers
from
logging
import
handlers
as
loghandlers
...
@@ -20,8 +21,8 @@ except:
...
@@ -20,8 +21,8 @@ except:
log
=
logging
.
getLogger
(
'ZWaved'
)
log
=
logging
.
getLogger
(
'ZWaved'
)
#sys.path.append(os.path.abspath(os.path.dirname(sys.argv[0])+"/../../"
))
CURDIR
=
os
.
path
.
abspath
(
os
.
path
.
dirname
(
sys
.
argv
[
0
]
))
sys
.
path
.
append
(
os
.
path
.
abspath
(
CURDIR
+
"/../../"
))
"""
"""
{'homeId': 23191651L, 'event': 0, 'valueId': {'index': 0, 'units': '', 'type': 'Bool', 'nodeId': 2, 'value': None, 'commandClass': 'COMMAND_CLASS_NO_OPERATION', 'instance': 1, 'readOnly': False, 'homeId': 23191651L, 'label': '', 'genre': 'Basic', 'id': 72057594071482368L}, 'notificationType': 'NodeEvent', 'nodeId': 2}
{'homeId': 23191651L, 'event': 0, 'valueId': {'index': 0, 'units': '', 'type': 'Bool', 'nodeId': 2, 'value': None, 'commandClass': 'COMMAND_CLASS_NO_OPERATION', 'instance': 1, 'readOnly': False, 'homeId': 23191651L, 'label': '', 'genre': 'Basic', 'id': 72057594071482368L}, 'notificationType': 'NodeEvent', 'nodeId': 2}
...
@@ -30,6 +31,9 @@ log = logging.getLogger( 'ZWaved' )
...
@@ -30,6 +31,9 @@ log = logging.getLogger( 'ZWaved' )
class
DMZWave
(
object
):
class
DMZWave
(
object
):
def
__init__
(
self
):
def
__init__
(
self
):
cfgfile
=
os
.
path
.
abspath
(
"/"
.
join
([
CURDIR
,
'conf'
,
'zwave.conf'
]))
self
.
cfg
=
configFile
(
cfgfile
)
self
.
cfg
.
readConfig
()
self
.
options
=
libopenzwave
.
PyOptions
()
self
.
options
=
libopenzwave
.
PyOptions
()
#self.options.create("openzwave/","","--logging false")
#self.options.create("openzwave/","","--logging false")
self
.
options
.
create
(
"openzwave/"
,
""
,
""
)
self
.
options
.
create
(
"openzwave/"
,
""
,
""
)
...
@@ -38,7 +42,8 @@ class DMZWave(object):
...
@@ -38,7 +42,8 @@ class DMZWave(object):
self
.
manager
=
libopenzwave
.
PyManager
()
self
.
manager
=
libopenzwave
.
PyManager
()
self
.
manager
.
create
()
self
.
manager
.
create
()
self
.
manager
.
addWatcher
(
self
.
callback
)
self
.
manager
.
addWatcher
(
self
.
callback
)
self
.
manager
.
addDriver
(
"/dev/ttyUSB0"
)
for
controller
in
self
.
cfg
.
get
(
'controller'
,
'dev'
)
.
replace
(
' '
,
''
)
.
split
(
','
):
self
.
manager
.
addDriver
(
controller
)
def
callback
(
self
,
res
):
def
callback
(
self
,
res
):
...
...
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