PluginMqttMonitor.py

changeset 88
59323cbabb7e
parent 86
620022b14cb4
child 92
2fb5c08019fd
equal deleted inserted replaced
87:fe391e485681 88:59323cbabb7e
22 # Start-Of-Header 22 # Start-Of-Header
23 name = "MQTT Monitor Plugin" 23 name = "MQTT Monitor Plugin"
24 author = "Detlev Offenbach <detlev@die-offenbachs.de>" 24 author = "Detlev Offenbach <detlev@die-offenbachs.de>"
25 autoactivate = True 25 autoactivate = True
26 deactivateable = True 26 deactivateable = True
27 version = "3.0.0" 27 version = "3.1.0"
28 className = "MqttMonitorPlugin" 28 className = "MqttMonitorPlugin"
29 packageName = "MqttMonitor" 29 packageName = "MqttMonitor"
30 shortDescription = "Plug-in implementing a tool to connect to a MQTT broker" 30 shortDescription = "Plug-in implementing a tool to connect to a MQTT broker"
31 longDescription = ( 31 longDescription = (
32 """Plug-in implementing a tool to connect to a MQTT broker, subscribe""" 32 """Plug-in implementing a tool to connect to a MQTT broker, subscribe"""
237 self.PreferencesKey + "/" + key, json.dumps(value)) 237 self.PreferencesKey + "/" + key, json.dumps(value))
238 else: 238 else:
239 Preferences.Prefs.settings.setValue( 239 Preferences.Prefs.settings.setValue(
240 self.PreferencesKey + "/" + key, value) 240 self.PreferencesKey + "/" + key, value)
241 241
242
243 def installDependencies(pipInstall):
244 """
245 Function to install dependencies of this plug-in.
246
247 @param pipInstall function to be called with a list of package names.
248 @type function
249 """
250 try:
251 import paho.mqtt # __IGNORE_WARNING__
252 except ImportError:
253 pipInstall(["paho-mqtt"])
254
242 # 255 #
243 # eflag: noqa = M801 256 # eflag: noqa = M801

eric ide

mercurial