This basic plugin structure below works except for the method "def start(self)". Can you tell me what I am doing wrong?
- Code: Select all
#! /usr/bin/env python
# -*- coding: utf-8 -*-
class Plugin(indigo.PluginBase):
def __init__(self, pluginId, pluginDisplayName, pluginVersion, pluginPrefs):
indigo.PluginBase.__init__(self, pluginId, pluginDisplayName, pluginVersion, pluginPrefs)
self.debug = pluginPrefs.get("showDebugInfo", True)
########################################
def __del__(self):
indigo.PluginBase.__del__(self)
########################################
def start(self):
indigo.server.log(u"want to use this to create a text file")
########################################
def runConcurrentThread(self):
pInterval = 10
self.debugLog("Starting concurrent thread")
self.debugLog("L25 testing of basic structure is set to update every %s %s" %(pInterval, 'seconds'))
try:
while True:
self.sleep(int(pInterval))
self.update()
except self.StopThread:
pass
########################################
def update(self):
self.debugLog('L45 testing basic plugin structure')
Thanks in advance
Jeff