INDIGOplotD -- a plot tool for indigo -- program download

Posted on
Thu Jan 15, 2015 9:00 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: INDIGOplotD -- a plot tool for indigo -- program downlo

https://www.dropbox.com/s/3esqcxd2d7s5ee5/INDIGOplotD-3-7-23.zip?dl=0 3-7-23

fixed time string format for PSQL databases

with limited testing as I am only using PSQL on my laptop.
tested with a device with 30 entries.

Posted on
Mon Jan 19, 2015 6:47 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: INDIGOplotD -- a plot tool for indigo -- program downlo

https://www.dropbox.com/s/1owit5rxghypd9w/INDIGOplotD-3-7-26.zip?dl=0 v 3-7-26

fixes:
- plotting data from files, fist and last row was skipped in MATPLOT, not in GNUPLOT

Added:
various functions to time shift
- the whole plot window (to e.g. yesterday, last week etc)
- shift one line from e.g. yesterday to today to overlay for example temperature of yesterday and today
- "continuous mode" in plot: instead of shifting the whole plot on day left at midnight shift the plot every hour by 1 hour, so that the right y -axis is time =NOW


Karl

docu to follow soon.

Posted on
Thu Jan 22, 2015 10:57 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: INDIGOplotD -- a plot tool for indigo -- program downlo

https://www.dropbox.com/s/de11nzoeyzkxnyw/INDIGOplotD-3-7-27.zip?dl=0 v 3-7-27


new functionality:

1. plot file directory (where the PNG files are stored) can be entered in config - default is still "/users/yourID/documents/indigoplotd/"

2. scatter plot is available in gnuplot and matplot. The result varies a little bit as the 2 plotting engines do this differently. i.e. color scales, normalization factors etc are calculated differently.
in the Plot/line menu they are chosen as follows:
- for regular timeline plot from indigo select data source A for the y coordinate and datasource B for the weight (i.e. size of blob or color) - see screenshots how to select
- for your own datafile use x;y;weight as your data format. Then select again as above and for datasourceB use weight.

select the 2 data sources for temperature and humidity
Screen Shot 2015-01-22 at 10.42.42 PM.png
Screen Shot 2015-01-22 at 10.42.42 PM.png (24.58 KiB) Viewed 19807 times


then select how to display, either as size or color proportional to weight (i.e. humidity)
Screen Shot 2015-01-22 at 10.42.13 PM.png
Screen Shot 2015-01-22 at 10.42.13 PM.png (81.05 KiB) Viewed 19807 times


for weight proportional to size section you can pick the color of the blobs
for weight proportional to color selection you can select the max size of the circles


resulting in :
temp Humdity vs time.png
temp Humdity vs time.png (48.25 KiB) Viewed 19807 times



an example with an external file and the two different weight options.
Scatter plot with x;y;weight and size of circles proportional to weight
matrix-S1.png
matrix-S1.png (72.23 KiB) Viewed 19807 times



Scatter plot with x;y;weight and color of circles proportional to weight
scatter1.png
scatter1.png (108.84 KiB) Viewed 19807 times



Karl

Posted on
Fri Jan 23, 2015 4:25 pm
richo offline
Posts: 158
Joined: Nov 25, 2014
Location: Pomorskie, Poland

Re: INDIGOplotD -- a plot tool for indigo -- program downlo

This is really cool but don't know why do I get the right axis in the middle of the plot ?

PS
Was struggling initially as didn't know that need to divide value of Humidity by 10 ;-)

PS
OK got it. Had to remove Humidity in % from the right axis...
Attachments
Screen Shot 2015-01-23 at 23.23.37.png
Screen Shot 2015-01-23 at 23.23.37.png (104.37 KiB) Viewed 19776 times

Ryszard

Posted on
Fri Jan 23, 2015 4:45 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: INDIGOplotD -- a plot tool for indigo -- program downlo

the discussions should go here: http://forums.indigodomo.com/viewtopic.php?f=134&t=11983&start=300 PLEASE

This one should only be used by me to post new versions..

Posted on
Fri Jan 23, 2015 6:35 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

INDIGOplotD -- a plot tool for indigo -- program download

https://www.dropbox.com/s/b1v9uz2vpu1lm03/INDIGOplotD-3-7-28.zip?dl=0 v 3-7-28


fixed:
-with scatter plot: the colorbar is now shown always right of the data frame.
the y right scale text is used for the colorbar AND for the right y-axis, if the right y axis is set it it shown next to the data frame, if not it is shown right of the colorbar

added:
last version was limited to ONE scatter line. this version now can do as many as the memory can hold..
BUT the colorbar shown is always the one from the last line.
Attachments
scatter1-minute-S1.png
scatter1-minute-S1.png (65.59 KiB) Viewed 19853 times
scatter1-minute-S1.png
scatter1-minute-S1.png (50.26 KiB) Viewed 19853 times

Posted on
Sat Jan 24, 2015 5:21 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: INDIGOplotD -- a plot tool for indigo -- program downlo

https://www.dropbox.com/s/mdefrve2t9lqkds/INDIGOplotD-3-7-30.zip?dl=0 v-3-7-30


Fixes:
for GNUPLOT install: Homebrew install download page was moved. The GNUPLOT (Applescript) install now reflects that new download page.
( new page is: raw.githubusercontent.com/Homebrew/install/master/install ) If you have it already up and running ... no change..

Improvements:
MATPLOT is now factor of 2 faster.
.. My plots took ~ 52 seconds, now its ~22 seconds .. still a factor of 10+ slower than GNUPLOT though..
.. the improvement should be especially visible with plots with multiple lines.
.. will continue to see how it can be made faster, but now it is the sum of many smaller steps.. There is a lot of discussion on the web on how to make MATPLOT run faster, but it is not trivial.. (e.g. rewrite some of the core functions... using different backends...)


[EDIT}
an updated PDF version is here:
https://www.dropbox.com/s/hi91tvybxgu51l0/indigoplotD.pdf?dl=0

still not complete, but 80% there

Karl

Posted on
Mon Jan 26, 2015 11:46 am
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: INDIGOplotD -- a plot tool for indigo -- program downlo

https://www.dropbox.com/s/cpphnzt9i6d01gs/INDIGOplotD-3-7-31.zip?dl=0 v-3-7-31

fixed:
if there is bad data in the SQL output it now just skips that line, print ONE line error message per file and continues


Karl

an updated PDF version is here:
https://www.dropbox.com/s/hi91tvybxgu51 ... D.pdf?dl=0

Posted on
Wed Jan 28, 2015 11:48 am
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: INDIGOplotD -- a plot tool for indigo -- program downlo

https://www.dropbox.com/s/zfexwzrw9yd5wlv/INDIGOplotD-3-7-33.zip?dl=0 v 3-7-33


fixed:
INDIGOplotD was using python 2.7 for utility programs. On older OS X versions python 2.7 is not available by default. INDIGOplotD now looks for version 2.8 .. 2.5 and uses the highest version python 2.x for utility programs.

Added capture of MATPLOT-smoother error ===> MATPLOT does not crash, but will ignore the SMOOTH request and raw an un-smoothed line

Karl
an updated PDF version is here:
https://www.dropbox.com/s/hi91tvybxgu51 ... D.pdf?dl=0

*) 2.8 is not out yet, just in case for future uprades
Last edited by kw123 on Sun Feb 08, 2015 12:17 pm, edited 1 time in total.

Posted on
Wed Feb 04, 2015 8:48 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: INDIGOplotD -- a plot tool for indigo -- program downlo

https://www.dropbox.com/s/xv0hr3w8ahn1wds/INDIGOplotD-3-8-1.zip?dl=0 v 3-8-1

new:

1. THREE sizes for Data storage
- regular, large and XXL e.g. 8 or 30 or 60 # of days to be tracked for minute size bins results in 2304 / 8640/ 17280 available tracked time bins
- this is useful if you like to plot e.g. this weeks temperature and overlay the temperature of the last 8 weeks
- the larger the data size the more memory and CPU is utilized.
- You can switch between the sizes, INDIGOplotD will reload itself if this choice is changed.
-- try it and see if your MAC can do it.

2. Fixed Time Windows
- you can now set the time window to e.g. Monday - Sunday or current month 1..31 or this year.
then select the same datasource for 2 lines in plot and shift one line by e.g. 1 week into the future. That will show this weeks data and last weeks data in the same plot
- before the time window was always shifting with todays day at the most right
- usage: see above

3. new Measurement: INTEGRATE
- this can be used to convert e.g. power (Volt*Amp = Watt) into Energy (V*A*Time = WattHour).
- You can utilize this option when your device does not deliver Energy but only the "current Energy" = Power.
- It can also be used to measure e.g. ONtime.
==> The resulting values are set to zero on a daily,weekly,monthly, or yearly schedule.

4. Speed improvement:
- SQL import is 10..40% faster depending on setup and data selection

5. PLOT/LINE datasource selection menu the presented device/state/measurements are now sorted alphabetically

6. tic marks in gnuplot and matplot are now better designed for MOST cases. If you have an exception let me know.

This is a version ..1 , although I tested for a week there "might" be some bugs left

Karl

ps try out the save and restore feature. It worked with 65 data sources and 20 plots. After deleting everything it restored everything automatically.

Posted on
Thu Feb 05, 2015 6:10 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: INDIGOplotD -- a plot tool for indigo -- program downlo

here an example how to plot the temperature with fix time window Monday-Sunday
and 3 lines for temperature, one for this week, one for last week and one for 2 weeks ago in the same Monday-Sunday time window.

set the time window (in shift by .. in PLOTS)
Screen Shot 2015-02-05 at 5.59.55 PM.png
Screen Shot 2015-02-05 at 5.59.55 PM.png (124.94 KiB) Viewed 19553 times


set the time shift for each line in LINES :
Screen Shot 2015-02-05 at 6.00.08 PM.png
Screen Shot 2015-02-05 at 6.00.08 PM.png (130.05 KiB) Viewed 19553 times


results in :
temp-minute-S1.png
temp-minute-S1.png (14.35 KiB) Viewed 19553 times


BEFORE you need to set in config # of days to be tracked to 30/...
Screen Shot 2015-02-05 at 6.06.30 PM.png
Screen Shot 2015-02-05 at 6.06.30 PM.png (85.95 KiB) Viewed 19553 times

Posted on
Fri Feb 06, 2015 3:57 pm
palantir offline
Posts: 73
Joined: Sep 24, 2014

Re: INDIGOplotD -- a plot tool for indigo -- program downlo

- post removed; wrong section...
Last edited by palantir on Sat Feb 07, 2015 3:38 am, edited 1 time in total.

Posted on
Fri Feb 06, 2015 4:00 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: INDIGOplotD -- a plot tool for indigo -- program downlo

https://www.dropbox.com/s/y04cfpirbofjjg3/INDIGOplotD-3-8-2.zip?dl=0 v 3-8-2


fixed:
1. when a MATPLOT smooth function call crashes it is now captured. It will ignore smooth and draw a regular line. Error messages are in.../MATPLOT/matplot.log
2. The average was not reset after each period (one accidental "tab" before an "else:")
3. in MATPLOT # of tics for one day was reduced to make the numbers not overlap.

Karl

Posted on
Sun Feb 15, 2015 10:19 am
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: INDIGOplotD -- a plot tool for indigo -- program downlo

https://www.dropbox.com/s/48arr60eep87dw5/INDIGOplotD-3-8-4.zip?dl=0

fixes;
- during new/fresh install not all variables where properly initialized

Improvements:
- some more help displays in the configuration menus
- some small bug fixes for rare situations
- some speed improvement for sql import
- the "delta" Measurement option has a more accurate calculation. The definition of delta Y is: [y(n)-y(n-1)]/x(n)-x(n1)] (it is a crude form of the derivative function)
Improvement: instead of using for x the time value of bin it now uses time value of actual measurement This give a significantly improved measurement for the 5 minute bin plot.
Assume the Energy meter sends the Watt-hour at 00:00 and the next at 09:00 minutes:seconds. In the simple calculation delta x was 5 minutes, in the new calculation it is 9. That changes the resulting value by 80%!!
When you use HOUR bins this effect is MUCH MUCH smaller as you likely have MANY measurement in each bin and everything averages out.


new
- option to add straight lines /histograms,.. to each plot to e.g. indicate upper / lower limits , see attached example plot (the red line)

And here how to add the straight line:
-pick "StraighLine from the "Modify or Add Lines" menu,
- then select the offset (the Y intersect of the left Y axis) and use "multiply" for the slope: e.g. offset=50, multiply 100= the line will start at y=50 and hit the right y axis at 150
Attachments
Screen Shot 2015-02-15 at 9.59.05 AM.png
Screen Shot 2015-02-15 at 9.59.05 AM.png (45.82 KiB) Viewed 19423 times
wifiSignalxxx.png
wifiSignalxxx.png (23.35 KiB) Viewed 19423 times

Posted on
Wed Feb 25, 2015 2:50 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: INDIGOplotD -- a plot tool for indigo -- program downlo

https://www.dropbox.com/s/hoq42ajocw0t48k/INDIGOplotD-3-8-6.zip?dl=0 v 3-8-6

Fixes:
When a device (as source) was renamed, the new name was ignored. Now the new name is used. Did not create problems, but should have been fixed.
Last version had the wrong version# internally

Improvements
SQL import is now 80% outside the plugin. This has the advantage that the plugin is not busy. Also overall import is 10% faster
MATPLOT is now 10 % faster

New
Axes can be turned on/off individually - see examples, Not all variations are made available.. Some of them - like "Only show top X axis" would likely not make sense.

Karl

Don't know of any functionality that is missing.. will move on to new things ..
Attachments
Screen Shot 2015-02-25 at 2.44.53 PM.png
Screen Shot 2015-02-25 at 2.44.53 PM.png (32.17 KiB) Viewed 19339 times
only x.png
only x.png (19.02 KiB) Viewed 19339 times
only x,y.png
only x,y.png (16.47 KiB) Viewed 19339 times
All ON.png
All ON.png (19.15 KiB) Viewed 19339 times

Who is online

Users browsing this forum: No registered users and 1 guest