Example #1
0
 def test_0010_configure_the_plugin(self):
     # first, clean the plugin configuration
     print(u"Delete the current plugin configuration")
     self.assertTrue(delete_configuration("plugin", self.name, get_sanitized_hostname()))
     for key in self.configuration:
         print(u"Set up configuration : {0} = {1}".format(key, self.configuration[key]))
         self.assertTrue(configure("plugin", self.name, get_sanitized_hostname(), key, self.configuration[key]))
     for key in self.configuration:
         print(u"Validate the configuration : {0} = {1}".format(key, self.configuration[key]))
         self.assertTrue(check_config("plugin", self.name, get_sanitized_hostname(), key, self.configuration[key]))
Example #2
0
 def test_0010_configure_the_plugin(self):
     # first, clean the plugin configuration
     print(u"Delete the current plugin configuration")
     self.assertTrue(
         delete_configuration("plugin", self.name,
                              get_sanitized_hostname()))
     for key in self.configuration:
         print(u"Set up configuration : {0} = {1}".format(
             key, self.configuration[key]))
         self.assertTrue(
             configure("plugin", self.name, get_sanitized_hostname(), key,
                       self.configuration[key]))
     for key in self.configuration:
         print(u"Validate the configuration : {0} = {1}".format(
             key, self.configuration[key]))
         self.assertTrue(
             check_config("plugin", self.name, get_sanitized_hostname(),
                          key, self.configuration[key]))
#!/usr/bin/python
#-*- coding: utf-8 -*-

from domogik.tests.common.helpers import configure, delete_configuration
from domogik.common.utils import get_sanitized_hostname

plugin = "notify"

host_id = get_sanitized_hostname()
delete_configuration("plugin", plugin, host_id)

configure("plugin", plugin, host_id, "msg_header", "Domogik notification")
configure("plugin", plugin, host_id, "send_at_start", True)
configure("plugin", plugin, host_id, "configured", True)
#!/usr/bin/python
#-*- coding: utf-8 -*-

from domogik.tests.common.helpers import configure, delete_configuration
from domogik.common.utils import get_sanitized_hostname

plugin =  "notify"

host_id = get_sanitized_hostname()
delete_configuration("plugin", plugin, host_id)

configure("plugin", plugin, host_id, "msg_header", "Domogik notification")
configure("plugin", plugin, host_id, "send_at_start", True)
configure("plugin", plugin, host_id, "configured", True)
Example #5
0
#!/usr/bin/python
#-*- coding: utf-8 -*-

from domogik.tests.common.helpers import configure, delete_configuration
from domogik.common.utils import get_sanitized_hostname

plugin = "irtrans"

host_id = get_sanitized_hostname()
delete_configuration("plugin", plugin, host_id)

configure("plugin", plugin, host_id, "configured", True)
#!/usr/bin/python
#-*- coding: utf-8 -*-

from domogik.tests.common.helpers import configure, delete_configuration
from domogik.common.utils import get_sanitized_hostname

plugin =  "vigilightning"

host_id = get_sanitized_hostname()
delete_configuration("plugin", plugin, host_id)

configure("plugin", plugin,  host_id, "wssource", "ws.blitzortung.org")
configure("plugin", plugin,  host_id, "checktimes",  "3")
#!/usr/bin/python

from domogik.tests.common.helpers import configure, delete_configuration, check_config
from domogik.common.utils import get_sanitized_hostname

print "==> Set the config"
delete_configuration("plugin", "test", get_sanitized_hostname())
configure("plugin", "test", get_sanitized_hostname(), "dummy", "dummyConfigParam")

print "==> Check the config"
check_config("plugin", "test", get_sanitized_hostname(), "configured", True)
check_config("plugin", "test", get_sanitized_hostname(), "dummy", "dummyConfigParam")
#!/usr/bin/python
#-*- coding: utf-8 -*-

from domogik.tests.common.helpers import configure, delete_configuration
from domogik.common.utils import get_sanitized_hostname

plugin =  "nutserve"

host_id = get_sanitized_hostname()
delete_configuration("plugin", plugin, host_id)

configure("plugin", plugin,  host_id, "host", "192.168.0.192")
configure("plugin", plugin,  host_id, "port", 3493)
configure("plugin", plugin,  host_id, "login", "admin")
configure("plugin", plugin,  host_id, "pwd", "onduleur")
configure("plugin", plugin,  host_id, "configured", True)
Example #9
0
#!/usr/bin/python

from domogik.tests.common.helpers import configure, delete_configuration
from domogik.common.utils import get_sanitized_hostname

delete_configuration("plugin", "rfxcom", get_sanitized_hostname())
configure("plugin", "rfxcom", get_sanitized_hostname(), "configured", True)
configure("plugin", "rfxcom", get_sanitized_hostname(), "rfxcom_device",
          "/dev/rfxcom")
#!/usr/bin/python

from domogik.tests.common.helpers import configure, delete_configuration
from domogik.common.utils import get_sanitized_hostname


delete_configuration("plugin", "rfxcom", get_sanitized_hostname())
configure("plugin", "rfxcom", get_sanitized_hostname(), "configured", True)
configure("plugin", "rfxcom", get_sanitized_hostname(), "rfxcom_device", "/dev/rfxcom")
#!/usr/bin/python
#-*- coding: utf-8 -*-

from domogik.tests.common.helpers import configure, delete_configuration
from domogik.common.utils import get_sanitized_hostname

plugin =  "plcbus"

host_id = get_sanitized_hostname()
delete_configuration("plugin", plugin, host_id)

configure("plugin", plugin, host_id, "device", "/dev/plcbus")
configure("plugin", plugin, host_id, "usercode", "D1")
configure("plugin", plugin, host_id, "probe-list", "A")
configure("plugin", plugin, host_id, "usercode", "D1")
configure("plugin", plugin, host_id, "probe-interval", 60)
configure("plugin", plugin, host_id, "configured", True)
#!/usr/bin/python
#-*- coding: utf-8 -*-

from domogik.tests.common.helpers import configure, delete_configuration
from domogik.common.utils import get_sanitized_hostname

plugin =  "daikcode"

host_id = get_sanitized_hostname()
delete_configuration("plugin", plugin, host_id)

configure("plugin", plugin, host_id, "configured", True)
#!/usr/bin/python

from domogik.tests.common.helpers import configure, delete_configuration
from domogik.common.utils import get_sanitized_hostname


delete_configuration("plugin", "diskfree", get_sanitized_hostname())
configure("plugin", "diskfree", get_sanitized_hostname(), "configured", True)

#!/usr/bin/python

from domogik.tests.common.helpers import configure, delete_configuration
from domogik.common.utils import get_sanitized_hostname

name = "rfplayer"

print(delete_configuration("plugin", name, get_sanitized_hostname()))
print(u"Plugin {0} configuration deleted".format(name))
print(configure("plugin", name, get_sanitized_hostname(), "configured", True))
print(u"Plugin {0} configured".format(name))
#!/usr/bin/python
# -*- coding: utf-8 -*-

from domogik.tests.common.helpers import configure, delete_configuration
from domogik.common.utils import get_sanitized_hostname

plugin = "ozwave"

host_id = get_sanitized_hostname()
delete_configuration("plugin", plugin, host_id)

configure("plugin", plugin, host_id, "autoconfpath", "Y")
configure(
    "plugin",
    plugin,
    host_id,
    "configpath",
    "/usr/local/lib/python2.7/dist-packages/libopenzwave-0.3.0b4-py2.7-linux-x86_64.egg/config",
)
configure("plugin", plugin, host_id, "cpltmsg", "Y")
configure("plugin", plugin, host_id, "ozwlog", "Y")