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
7dc086d4
Commit
7dc086d4
authored
Nov 22, 2013
by
nextime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed video modules to mediasources
parent
6669dbbe
Changes
14
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
57 additions
and
11 deletions
+57
-11
__init__.py
domotika/clouds/unixmedia/__init__.py
+0
-0
checkip.py
domotika/clouds/unixmedia/checkip.py
+0
-0
domotika.py
domotika/domotika.py
+2
-2
__init__.py
domotika/mediasources/__init__.py
+23
-0
ivideodev.py
domotika/mediasources/ivideodev.py
+0
-0
.gitignore
domotika/mediasources/modules/OpenPLI/.gitignore
+0
-0
__init__.py
domotika/mediasources/modules/OpenPLI/__init__.py
+1
-1
enigma1.py
domotika/mediasources/modules/OpenPLI/enigma1.py
+0
-0
.gitignore
domotika/mediasources/modules/Sitecom/.gitignore
+0
-0
LN406.py
domotika/mediasources/modules/Sitecom/LN406.py
+0
-0
__init__.py
domotika/mediasources/modules/Sitecom/__init__.py
+1
-1
__init__.py
domotika/mediasources/modules/__init__.py
+23
-0
__init__.py
domotika/mediasources/modules/generic/__init__.py
+1
-1
pluggable.py
domotika/mediasources/pluggable.py
+6
-6
No files found.
domotika/
video
/__init__.py
→
domotika/
clouds/unixmedia
/__init__.py
View file @
7dc086d4
File moved
domotika/
video/modules/__init__
.py
→
domotika/
clouds/unixmedia/checkip
.py
View file @
7dc086d4
File moved
domotika/domotika.py
View file @
7dc086d4
...
@@ -54,7 +54,7 @@ from asterisk import fastagi as fagi
...
@@ -54,7 +54,7 @@ from asterisk import fastagi as fagi
from
voiceui
import
voiceui
as
voice
from
voiceui
import
voiceui
as
voice
from
boards
import
pluggable
as
pluggableBoards
from
boards
import
pluggable
as
pluggableBoards
from
boards.iotype
import
context2section
from
boards.iotype
import
context2section
from
video
import
pluggable
as
pluggableVideodev
s
from
mediasources
import
pluggable
as
pluggableMediasouce
s
import
sky
import
sky
from
clouds.openweathermap
import
weather
from
clouds.openweathermap
import
weather
...
@@ -2449,7 +2449,7 @@ class domotikaService(service.Service):
...
@@ -2449,7 +2449,7 @@ class domotikaService(service.Service):
if
not
device
[
'host'
]
in
self
.
upnp_detected_ips
:
if
not
device
[
'host'
]
in
self
.
upnp_detected_ips
:
self
.
upnp_detected_ips
.
append
(
device
[
'host'
])
self
.
upnp_detected_ips
.
append
(
device
[
'host'
])
log
.
debug
(
"UPNP DETECTED DEVICE FROM UPNP: "
+
str
(
device
))
log
.
debug
(
"UPNP DETECTED DEVICE FROM UPNP: "
+
str
(
device
))
p
=
pluggable
Videodev
s
.
getVideodevPlugin
(
device
[
'modelNumber'
],
device
[
'manufacturer'
])
p
=
pluggable
Mediasouce
s
.
getVideodevPlugin
(
device
[
'modelNumber'
],
device
[
'manufacturer'
])
if
p
:
if
p
:
videodev
=
p
.
getVideoDev
(
device
[
'host'
],
self
.
devadminpwd
)
videodev
=
p
.
getVideoDev
(
device
[
'host'
],
self
.
devadminpwd
)
videodev
.
setUPNPLocation
(
device
[
'location'
])
videodev
.
setUPNPLocation
(
device
[
'location'
])
...
...
domotika/mediasources/__init__.py
0 → 100644
View file @
7dc086d4
###########################################################################
# Copyright (c) 2011-2013 Unixmedia S.r.l. <info@unixmedia.it>
# Copyright (c) 2011-2013 Franco (nextime) Lanza <franco@unixmedia.it>
#
# Domotika System Controller Daemon "domotikad" [http://trac.unixmedia.it]
#
# This file is part of domotikad.
#
# domotikad is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
domotika/
video
/ivideodev.py
→
domotika/
mediasources
/ivideodev.py
View file @
7dc086d4
File moved
domotika/
video
/modules/OpenPLI/.gitignore
→
domotika/
mediasources
/modules/OpenPLI/.gitignore
View file @
7dc086d4
File moved
domotika/
video/modules/generic
/__init__.py
→
domotika/
mediasources/modules/OpenPLI
/__init__.py
View file @
7dc086d4
...
@@ -28,7 +28,7 @@ try:
...
@@ -28,7 +28,7 @@ try:
except
ImportError
:
except
ImportError
:
# Twisted 2.5 doesn't include pluginPackagePaths
# Twisted 2.5 doesn't include pluginPackagePaths
import
sys
,
os
import
sys
,
os
__path__
.
extend
([
os
.
path
.
abspath
(
os
.
path
.
join
(
x
,
'
video'
,
'modules'
,
'generic
'
))
__path__
.
extend
([
os
.
path
.
abspath
(
os
.
path
.
join
(
x
,
'
mediasources'
,
'modules'
,
'OpenPLI
'
))
for
x
in
sys
.
path
])
for
x
in
sys
.
path
])
__all__
=
[]
__all__
=
[]
domotika/
video
/modules/OpenPLI/enigma1.py
→
domotika/
mediasources
/modules/OpenPLI/enigma1.py
View file @
7dc086d4
File moved
domotika/
video
/modules/Sitecom/.gitignore
→
domotika/
mediasources
/modules/Sitecom/.gitignore
View file @
7dc086d4
File moved
domotika/
video
/modules/Sitecom/LN406.py
→
domotika/
mediasources
/modules/Sitecom/LN406.py
View file @
7dc086d4
File moved
domotika/
video
/modules/Sitecom/__init__.py
→
domotika/
mediasources
/modules/Sitecom/__init__.py
View file @
7dc086d4
...
@@ -28,7 +28,7 @@ try:
...
@@ -28,7 +28,7 @@ try:
except
ImportError
:
except
ImportError
:
# Twisted 2.5 doesn't include pluginPackagePaths
# Twisted 2.5 doesn't include pluginPackagePaths
import
sys
,
os
import
sys
,
os
__path__
.
extend
([
os
.
path
.
abspath
(
os
.
path
.
join
(
x
,
'
video
'
,
'modules'
,
'Sitecom'
))
__path__
.
extend
([
os
.
path
.
abspath
(
os
.
path
.
join
(
x
,
'
mediasources
'
,
'modules'
,
'Sitecom'
))
for
x
in
sys
.
path
])
for
x
in
sys
.
path
])
__all__
=
[]
__all__
=
[]
domotika/mediasources/modules/__init__.py
0 → 100644
View file @
7dc086d4
###########################################################################
# Copyright (c) 2011-2013 Unixmedia S.r.l. <info@unixmedia.it>
# Copyright (c) 2011-2013 Franco (nextime) Lanza <franco@unixmedia.it>
#
# Domotika System Controller Daemon "domotikad" [http://trac.unixmedia.it]
#
# This file is part of domotikad.
#
# domotikad is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
domotika/
video/modules/OpenPLI
/__init__.py
→
domotika/
mediasources/modules/generic
/__init__.py
View file @
7dc086d4
...
@@ -28,7 +28,7 @@ try:
...
@@ -28,7 +28,7 @@ try:
except
ImportError
:
except
ImportError
:
# Twisted 2.5 doesn't include pluginPackagePaths
# Twisted 2.5 doesn't include pluginPackagePaths
import
sys
,
os
import
sys
,
os
__path__
.
extend
([
os
.
path
.
abspath
(
os
.
path
.
join
(
x
,
'
video'
,
'modules'
,
'OpenPLI
'
))
__path__
.
extend
([
os
.
path
.
abspath
(
os
.
path
.
join
(
x
,
'
mediasources'
,
'modules'
,
'generic
'
))
for
x
in
sys
.
path
])
for
x
in
sys
.
path
])
__all__
=
[]
__all__
=
[]
domotika/
video
/pluggable.py
→
domotika/
mediasources
/pluggable.py
View file @
7dc086d4
...
@@ -10,17 +10,17 @@ try:
...
@@ -10,17 +10,17 @@ try:
except
ImportError
:
except
ImportError
:
pass
pass
else
:
else
:
for
i
in
os
.
listdir
(
'domotika/
video
/modules'
):
for
i
in
os
.
listdir
(
'domotika/
mediasources
/modules'
):
if
os
.
path
.
isdir
(
'domotika/
video
/modules/'
+
i
):
if
os
.
path
.
isdir
(
'domotika/
mediasources
/modules/'
+
i
):
list
(
getPlugins
(
ivideodev
.
IVideoDev
,
importlib
.
import_module
(
'domotika.
video
.modules.'
+
i
)))
# To refresh cache
list
(
getPlugins
(
ivideodev
.
IVideoDev
,
importlib
.
import_module
(
'domotika.
mediasources
.modules.'
+
i
)))
# To refresh cache
def
getVideodevPlugin
(
name
,
manufacturer
=
'generic'
):
def
getVideodevPlugin
(
name
,
manufacturer
=
'generic'
):
try
:
try
:
if
os
.
path
.
isdir
(
'domotika/
video
/modules/'
+
str
(
manufacturer
)):
if
os
.
path
.
isdir
(
'domotika/
mediasources
/modules/'
+
str
(
manufacturer
)):
mod
=
importlib
.
import_module
(
'domotika.
video
.modules.'
+
str
(
manufacturer
))
mod
=
importlib
.
import_module
(
'domotika.
mediasources
.modules.'
+
str
(
manufacturer
))
else
:
else
:
mod
=
importlib
.
import_module
(
'domotika.
video
.modules.generic'
)
mod
=
importlib
.
import_module
(
'domotika.
mediasources
.modules.generic'
)
except
:
except
:
return
None
return
None
for
p
in
getPlugins
(
ivideodev
.
IVideoDev
,
mod
):
for
p
in
getPlugins
(
ivideodev
.
IVideoDev
,
mod
):
...
...
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