INDIGOplotD -- a plot tool for indigo

A Plugin to create Plots from INDIGO data and other sources
CrazyFin
Posts: 381
Joined: Thu Jan 08, 2015 4:09 pm
Location: Stockholm, SWEDEN

Re: INDIGOplotD -- a plot tool for indigo

Post by CrazyFin »

kw123 wrote:It is the smoother in MATLOG that stops ungracefully.

could you try without smoothing?

I have no control over the smoother. Normally if the smoother does not like it it stops gracefully and does not error out. Will catch that error in the next release

Karl
:D Aribaaaaa! :P Case closed! :roll:

It was the smoother that caused! As soon as I disabled smoothing on the plot where I was testing it (and had forgotten that it was enabled) all charts got created and seems to be updating regularly as well.

Ahh wonderful! :lol:
eme jota ce
Posts: 655
Joined: Thu Jul 09, 2009 1:25 pm
Location: SW Florida

Re: INDIGOplotD -- a plot tool for indigo

Post by eme jota ce »

Had great success with earlier versions of IndogPlot, but have failed in recent attempts. currently using 3.8.1

Here is the error I'm seeing when trying to ujsut setup a quick plot with mini plot:
INDIGOplotD /Users/seahorse/Documents/INDIGOplotD/gnu/Pool Temp-minute-S1.gnu has no lines defined -- dont forget to click CONFIRM before you save the lines and plots, ignore this warning if just created
INDIGOplotD /Users/seahorse/Documents/INDIGOplotD/gnu/Pool Temp-hour-S1.gnu has no lines defined -- dont forget to click CONFIRM before you save the lines and plots, ignore this warning if just created
INDIGOplotD /Users/seahorse/Documents/INDIGOplotD/gnu/Pool Temp-day-S1.gnu has no lines defined -- dont forget to click CONFIRM before you save the lines and plots, ignore this warning if just created
INDIGOplotD redolineDataSource: stateNo not found deleting plot Pool Temp line#0
INDIGOplotD Error Error in plugin execution ExecuteAction:

Traceback (most recent call last):
File "plugin.py", line 4110, in doExportMiniCALLBACKaction
<type 'exceptions.NameError'>: global name 'action' is not defined

INDIGOplotD pending indigoCommands: ['plotNow']
Schedule Get Temperatures into variables
INDIGOplotD Error Error in plugin execution ExecuteAction:

Traceback (most recent call last):
File "plugin.py", line 4056, in showPlotONLYCALLBACKaction
File "plugin.py", line 4066, in showPlotONLY
<type 'exceptions.TypeError'>: list indices must be integers
Received lots of errors in setting up in the main plugin (INdigoPoltD), so I hit he nuclear reset option that says "DELETE ... RESET to Start from Scratch"

Any suggestions?
Thanks,
mjc
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 »

I know.. 3.8.1 has some issues.. its ...1

I will release 3.8.4 this weekend. That should have those issues fixed.

Karl

ps
if you do the nuclear option, you can use the restore feature in the menu. It will re-configure all device/plots as of midnight last night or any midnight of the last 2 months (select the right one to restore)
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 »

Discussion of Delta measurement. The attached plot shows 3 lines from the aeon energy meter(DSB28). I use this device as an example as it delivers both Energy and Power
1. red: average wattHour (Energy :Volt*Amps*time))
2. black: delta WattHour = Watt (Power: Volt*Amps)
3. green: average Watt (Power: Volt*Amps)

First It looks as if the "true" watt measurement(green line) is about 1 bin earlier than the calculated value from "delta(watt-hour)" and the peaks are higher than the calculated value.
The actual numbers delivered by the Energy Meter do show a slight delay between the Power(Watt) measurement and the Energy(WattHour) measurement. It actually makes sense: You can only report on the "accumulated" Power (=Energy) after it is actually consumed.

In addition: The way the delta function works it calculates
Value(bin n) = [ Y(n)-Y(n-1)]/[X(n)-X(n-1)]
delay the value by ~ 1/2 a bin in average. One could think about putting the value into the bin to the left i.e.
Value(n-1) = [ Y(n)-Y(n-1)]/[X(n)-X(n-1)].


In addition. the Aeon energy meter has, I believe, a limited resolution. The Energy Value has ~ 5-6 significant digits. As this number continuously increases (unless you reset it manually) eventually in order to calculate the Y(n)-Y(n-1) you need to subtract 2 very large numbers and the significant digits become too small to be accurate enough e.g.
assume Y(n)= 500,100; Y(n-1) = 500,000. Hence the result is 100. If the accuracy is 6 digits in Y you still get 1% accuracy.
But at e.g. Y(n)= 5,000,100; Y(n-1) = 5,000100 result is still 100 but with only a 10% accuracy. I guess it would make sense to reset the value at ~ 1 million Or e.g. every January1.

If you use the RFXCOM meter you only have the accumulated value (Energy), But I believe the accuracy it always the last x digits, as it just increases an integer number.


Comments, suggestion?

Karl
Attachments
Screen Shot 2015-02-15 at 9.38.52 AM.png
Screen Shot 2015-02-15 at 9.38.52 AM.png (55.69 KiB) Viewed 5204 times
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 »

and here the same delta measurement with delta measurement shifted one bin to the left...
Value(n-1) = [ Y(n)-Y(n-1)]/[X(n)-X(n-1)].

this looks much better, I will need to test the biting properly as I write things into previous bins and one should write into bins that do not exists.

will release this new calculation in the next release..
Attachments
Screen Shot 2015-02-15 at 11.30.56 AM.png
Screen Shot 2015-02-15 at 11.30.56 AM.png (52.16 KiB) Viewed 5203 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 »

Something must be wrong with the latest update. When I download v3.8.4 after update it shows as v3.8.3 in the Indigo and I don't see new functions like: straight line etc
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 »

Oops locks like I posted the wrong version.


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 »

kw123 wrote:check if it produces a file "name-of-plot-inute/hour/day.png in the Documents/Indigioplotd directory

double click the file , check if graph ok

check the manual at the bottom, it shows how to include a plot in a control page and how to make it dynamic.

if you have anymore question, please let me know.

Karl

Hello again,

Yes it creates the graph .png files, but they all appear empty with no data input
What did I miss/

T.I.A.
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 »

Do you use SQLite ? If not you will just see the data starting when you configured the data source.


Sent from my iPhone using Tapatalk
eme jota ce
Posts: 655
Joined: Thu Jul 09, 2009 1:25 pm
Location: SW Florida

Re: INDIGOplotD -- a plot tool for indigo

Post by eme jota ce »

kw123 wrote:I know.. 3.8.1 has some issues.. its ...1

I will release 3.8.4 this weekend. That should have those issues fixed.

Karl
...
Thanks for the reply, Karl.

Installed the update and tried a couple graphs from a couple devices, but still see errors and can't
INDIGOplotD plotting GNUPLOT error/warning for /Users/seahorse/Documents/INDIGOplotD/gnu/Pool Temperature-minute-S1: plot '/Users/seahorse/Documents/INDIGOplotD/data/minute.dat' ,
^
"/Users/seahorse/Documents/INDIGOplotD/gnu/Pool Temperature-minute-S1.gnu", line 18: Need full using spec for x time data
INDIGOplotD plotting GNUPLOT error/warning for /Users/seahorse/Documents/INDIGOplotD/gnu/Pool Temperature-hour-S1: plot '/Users/seahorse/Documents/INDIGOplotD/data/hour.dat' ,
^
"/Users/seahorse/Documents/INDIGOplotD/gnu/Pool Temperature-hour-S1.gnu", line 18: Need full using spec for x time data
INDIGOplotD plotting GNUPLOT error/warning for /Users/seahorse/Documents/INDIGOplotD/gnu/Pool Temperature-day-S1: plot '/Users/seahorse/Documents/INDIGOplotD/data/day.dat' ,
^
"/Users/seahorse/Documents/INDIGOplotD/gnu/Pool Temperature-day-S1.gnu", line 18: Need full using spec for x time data
INDIGOplotD plotting GNUPLOT error/warning for /Users/seahorse/Documents/INDIGOplotD/gnu/MiniPLot01-minute-S1: plot '/Users/seahorse/Documents/INDIGOplotD/data/minute.dat' ,
^
"/Users/seahorse/Documents/INDIGOplotD/gnu/MiniPLot01-minute-S1.gnu", line 19: Need full using spec for x time data
INDIGOplotD plotting GNUPLOT error/warning for /Users/seahorse/Documents/INDIGOplotD/gnu/MiniPLot01-hour-S1: plot '/Users/seahorse/Documents/INDIGOplotD/data/hour.dat' ,
^
"/Users/seahorse/Documents/INDIGOplotD/gnu/MiniPLot01-hour-S1.gnu", line 19: Need full using spec for x time data
INDIGOplotD plotting GNUPLOT error/warning for /Users/seahorse/Documents/INDIGOplotD/gnu/MiniPLot01-day-S1: plot '/Users/seahorse/Documents/INDIGOplotD/data/day.dat' ,
^
"/Users/seahorse/Documents/INDIGOplotD/gnu/MiniPLot01-day-S1.gnu", line 19: Need full using spec for x time data
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 »

could you send me the /Users/seahorse/Documents/INDIGOplotD/gnu/Pool Temperature-minute-S1.gnu file?

[edit] and also the output of "Print/Log Plot configuration parameters" in the menu
eme jota ce
Posts: 655
Joined: Thu Jul 09, 2009 1:25 pm
Location: SW Florida

Re: INDIGOplotD -- a plot tool for indigo

Post by eme jota ce »

Thanks.

I sent the output of "Print/Log Plot configuration parameters" to you via a PM but couldn't attach the file.

mjc
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 »

Could you send to my private email karl wachs at me com. or copy and paste - it is a small file


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 »

kw123 wrote:Do you use SQLite ? If not you will just see the data starting when you configured the data source.


Sent from my iPhone using Tapatalk
I see SQLite is installed, so would I need to setup a database within it?

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 »

In indigo go to plugins sql logger and enable SQLite


Sent from my iPhone using Tapatalk
Post Reply

Return to “INDIGOplotD”