INDIGOplotD -- a plot tool for indigo

A Plugin to create Plots from INDIGO data and other sources
User avatar
T-Power
Posts: 220
Joined: Mon May 10, 2010 10:15 pm

Re: INDIGOplotD -- a plot tool for indigo

Post by T-Power »

kw123 wrote:In indigo go to plugins sql logger and enable SQLite


Sent from my iPhone using Tapatalk
Auh okay I see.
Now would I need to reset anything else?

Thanks
MacMini 2.3 GHz Intel Core i7 16GB DDR3
Indigo Pro 2022.1 macOS Mojave 10.14.6
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: INDIGOplotD -- a plot tool for indigo

Post by kw123 »

No. Just wait until sql logger collects data. Then in indigoplotd go to config and at bottom make sure SQLite is selected


Sent from my iPhone using Tapatalk
User avatar
T-Power
Posts: 220
Joined: Mon May 10, 2010 10:15 pm

Re: INDIGOplotD -- a plot tool for indigo

Post by T-Power »

Great!
Thank you for the support. :-)
MacMini 2.3 GHz Intel Core i7 16GB DDR3
Indigo Pro 2022.1 macOS Mojave 10.14.6
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: INDIGOplotD -- a plot tool for indigo

Post by kw123 »

just a teaser ...

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"})
put this to an action and see the background color of the plot named "test delta" to change to yellow

create an action for day time and one for night time to change background colors of your plots..



Karl
Attachments
Screen Shot 2015-02-25 at 5.00.35 PM.png
Screen Shot 2015-02-25 at 5.00.35 PM.png (66.56 KiB) Viewed 4957 times
richo
Posts: 161
Joined: Tue Nov 25, 2014 3:54 am
Location: Pomorskie, Poland

Re: INDIGOplotD -- a plot tool for indigo

Post by richo »

I really like what you are doing Karl, it's a great app.


Sent using Tapatalk
Ryszard
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: INDIGOplotD -- a plot tool for indigo

Post by kw123 »

thanks for the thanks.. let me know if there is anything missing... can't come up with something new right now :)
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: INDIGOplotD -- a plot tool for indigo

Post by kw123 »

to expand on showing and creating plots in an Action / Execute script:

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
Karl
User avatar
haavarda
Posts: 702
Joined: Sat Aug 18, 2012 4:40 am
Location: Norway

Re: INDIGOplotD -- a plot tool for indigo

Post by haavarda »

Hi Karl.
After upgrading to the latest version I am getting the following error in my log.
Is this a known issue, or am I doing something wrong here?
INDIGOplotD Error ------------------------------------
INDIGOplotD Error restarting SQL import, it seems to hang. If this happens several times reload INDIGOplotD :
INDIGOplotD Error ------------------------------------
INDIGOplotD sql-logger not enabled disabling calls to SQL-Logger


Håvard
Håvard
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: INDIGOplotD -- a plot tool for indigo

Post by kw123 »

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)
It tests if the Logger is enabled, if not it will not call SQL logger. At least that is where the error message comes from.

Could you check if SQL-LOGGER is enabled?

Karl
User avatar
haavarda
Posts: 702
Joined: Sat Aug 18, 2012 4:40 am
Location: Norway

Re: INDIGOplotD -- a plot tool for indigo

Post by haavarda »

I have not been using sql logger before. I think I have checked "do not use sql logger" and mat type.
But every time I go in to config. the choice where I select "do not use sql" is set back to "select an item"


Håvard
Håvard
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: INDIGOplotD -- a plot tool for indigo

Post by kw123 »

IF SQL LOGGER is not enabled and you select it INDIGOplotD will reset it.

==>>> please enable SQL logger like this ..
Screen Shot 2015-03-05 at 11.44.45 AM.png
Screen Shot 2015-03-05 at 11.44.45 AM.png (153.07 KiB) Viewed 4819 times
first

only THEN select SQL import in INDIGOplotD

Karl
{EDIT}

sorry i misread your post. So you don't want to use SQL LOGGER .. and it reenables itself? I will check
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: INDIGOplotD -- a plot tool for indigo

Post by kw123 »

Håvard

found it.. YES SQL is re-enabled after 2 minutes when you disable it. Will post a fix soon.

Karl
User avatar
haavarda
Posts: 702
Joined: Sat Aug 18, 2012 4:40 am
Location: Norway

Re: INDIGOplotD -- a plot tool for indigo

Post by haavarda »

Thank you for your support!

Håvard
Håvard
User avatar
haavarda
Posts: 702
Joined: Sat Aug 18, 2012 4:40 am
Location: Norway

Re: INDIGOplotD -- a plot tool for indigo

Post by haavarda »

Thanks for the fix Karl. That worked.


Håvard
Håvard
Andy_Wismer
Posts: 7
Joined: Mon Mar 02, 2015 3:40 am

INDIGOplotD - losing settings after reboot

Post by Andy_Wismer »

Hi

Great Plugin you created here! I've created quite a few plots, and the whole thing works really smooth.

One major caveat though: After reboot of my Mac, INDIGOplotD loses all settings under
Menu -> Plugins -> INDIGOplotD -> Configure
and
Lines in the plots.

The plots themselves are retained, so is all the data in folders / SQL-Lite - as far as I can tell.

Everything else in my Indigo setup survives a reboot. Or a power outage, like this morning at 05:30... ;-(
But all my plots have to be redone, doesn't matter if planned or unplanned reboot...

Any idea what might be causing this?

I'm quite handy with UN*X or console, but I can't find out why?

Thanks!

Andy Wismer
Post Reply

Return to “INDIGOplotD”