Auh okay I see.kw123 wrote:In indigo go to plugins sql logger and enable SQLite
Sent from my iPhone using Tapatalk
Now would I need to reset anything else?
Thanks
Auh okay I see.kw123 wrote:In indigo go to plugins sql logger and enable SQLite
Sent from my iPhone using Tapatalk
Code: Select all
#### INDIGOplotD must be enabled, otherwise nothing here works
plug = indigo.server.getPlugin("com.karlwachs.INDIGOplotD")
if not plug.isEnabled(): return
nameOfPlot= "test delta" ## this is the devicename of the plot
newColor = "#F0F000" ## this will make the plot background yellow
### change background color
plug.executeAction("createOrModifyPlot", props ={"deviceNameOfPlot": nameOfPlot,"Background": newColor })
### create and show plot on monitor
plug.executeAction("createAndShowPlotPNG", props ={"deviceNameOfPlot":"test delta"})
Code: Select all
plug = indigo.server.getPlugin("com.karlwachs.INDIGOplotD")
if not plug.isEnabled(): return #### INDIGOplotD must be enabled, otherwise nothing here works
plug.executeAction("createPlotPNG" , props ={"deviceNameOfPlot": 'thePlotNameHere'}) ### call to immediately create the PNG file, no 5 minute waiting for next cycle
plug.executeAction("showPlotONLY" , props ={"deviceNameOfPlot": 'thePlotNameHere'}) ### call to show the PNG file on the INDIGO server
plug.executeAction("createAndShowPlotPNG", props ={"deviceNameOfPlot": 'thePlotNameHere'}) ### call to immediately create AND show the PNG file, no 5 minute waiting for next cycle
Code: Select all
if not indigo.server.getPlugin("com.perceptiveautomation.indigoplugin.sql-logger").isEnabled():
self.logMessage( u"sql-logger not enabled disabling calls to SQL-Logger",1)