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

Posted on
Sat Feb 28, 2015 11:28 am
kw123 offline
User avatar
Posts: 5749
Joined: May 12, 2013
Location: Dallas, TX

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

https://www.dropbox.com/s/17b3rgrhpc3s96k/INDIGOplotD-3-8-7.zip?dl=0 V 3.8.7

FIX:

works now with GNUPLOT V 5 (and v4)

GNUPLOT "set timefmt" command behaves differently in GNUPLOT V5 vs V4.


Karl

Posted on
Thu Mar 05, 2015 12:48 pm
kw123 offline
User avatar
Posts: 5749
Joined: May 12, 2013
Location: Dallas, TX

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

https://www.dropbox.com/s/b9booe7qq38iceo/INDIGOplotD-3-8-9.zip?dl=0 V3-8-9

FIXED:
- SQL import was reenabling itself after 2 minutes after start when is was disabled. Fixed
- the connection between MINIplot and INDIGOplotD broke after ~ version 3.7.30. Fixed


Karl

Posted on
Sun Mar 29, 2015 12:32 pm
kw123 offline
User avatar
Posts: 5749
Joined: May 12, 2013
Location: Dallas, TX

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

https://www.dropbox.com/s/199o8qcxb3wicqt/INDIGOplotD-3-8-10.zip?dl=0v 3-8-10

[url]FIXED:[/url]
- SQL import was setting itself permanently to full import after SQL read error. Now it goes back to what ever it was after fixing SQL import error.
- some typos removed

Karl

Posted on
Tue Apr 07, 2015 9:30 am
kw123 offline
User avatar
Posts: 5749
Joined: May 12, 2013
Location: Dallas, TX

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

https://www.dropbox.com/s/qm4k1tjc3exbho6/INDIGOplotD-3-8-11.zip?dl=0 v3-8-11


New
offers to use PNG file compression of plot files produced using "PNGQUANT". The files produced are a FACTOR of 2-5 smaller than the originals.
This might help during refresh of plots when looking at them remotely on your idevice.
Activate per plot: select the menu option at the bottom of the PLOT definition section:
Screen Shot 2015-04-07 at 10.11.25 AM.png
Screen Shot 2015-04-07 at 10.11.25 AM.png (40.66 KiB) Viewed 4197 times


THIS WILL NOT DEGRADE 99% OF YOUR PLOTS.
PNGQUANT reduces the color space from 24 bit to 8 bit (amongst other things). Normally you have one color for text, one for background and one per line. That is well below 256 (max in 8bit).

ONLY if you use the option of " scatter plot with color = value". There you might see a slight degradation in the scale on the right side of the plot, see attached:
Screen Shot 2015-04-07 at 10.23.01 AM.png
Screen Shot 2015-04-07 at 10.23.01 AM.png (6.54 KiB) Viewed 4197 times
vs original:
Screen Shot 2015-04-07 at 10.22.39 AM.png
Screen Shot 2015-04-07 at 10.22.39 AM.png (6.78 KiB) Viewed 4197 times

That is the ONLY degradation I could observe. All other plots look IDENTICAL.
The major negative impact of these tools is for PNG files with many shades of grey/color. The Plots use single colors for lines, and texts etc. So its an ideal candidate for compression without loosing any quality.

The compression tool is included in the plugin.

Karl

Posted on
Mon Apr 13, 2015 10:27 am
kw123 offline
User avatar
Posts: 5749
Joined: May 12, 2013
Location: Dallas, TX

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

https://www.dropbox.com/s/1c7vfcszoybt1ew/INDIGOplotD-3-8-12.zip?dl=0 V 3-8-12

NEW .. experts only:
You now can add any MATPLOT python code into the program that fits on ONE line (multiple commands can be separated by a ";".
It will be executed just before the plot.save command in MATPLOT

example: position the legends for the left and right axe anywhere you like:
Screen Shot 2015-04-13 at 11.09.06 AM.png
Screen Shot 2015-04-13 at 11.09.06 AM.png (9.51 KiB) Viewed 4157 times
ax is for the left axis, ax2 is for the right axis

you can find any log file entry (success/failure) in /Users/yourID/Documents/INDIGOplotD/matplot/matplot.log
and here the codes for the legend placements :
Code: Select all
upper right     1
upper left      2
lower left      3
lower right     4
right           5
center left     6
center right    7
lower center    8
upper center    9
center         10

see: http://matplotlib.org/1.3.1/users/legend_guide.html for more details what could be done with the legends..

Naturally these commands do not work in GNUplot. There you can use any GNUplot "set xxxx " command like "set key inside lt"

Karl

and with the selected positions the plot would look like:
Attachments
Screen Shot 2015-04-13 at 11.21.39 AM.png
Screen Shot 2015-04-13 at 11.21.39 AM.png (27.09 KiB) Viewed 4157 times

Posted on
Mon Apr 27, 2015 2:47 pm
kw123 offline
User avatar
Posts: 5749
Joined: May 12, 2013
Location: Dallas, TX

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

https://www.dropbox.com/s/bx21ejob3siqcqk/INDIGOplotD-V-3-18-14.zip?dl=0

fixes
"Line '8475' has error='unsupported operand type(s) for +: 'float' and 'str''"

Karl

Posted on
Thu Jun 18, 2015 2:59 pm
kw123 offline
User avatar
Posts: 5749
Joined: May 12, 2013
Location: Dallas, TX

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

https://www.dropbox.com/s/llhiqp1m1rvjtrv/INDIGOplotD-3-9-2.zip?dl=0

fixed
When only ONE line was defined plot was empty.

new
- added "My First Plot" menu: It enables the creation of a plot with just ONE page to fill out. This is meant to support the "first" plot and simple easy ones. No other config is needed IF you are on OSX mavericks or later. If older OS X is used you will still need to install GNUPLOT.
- moved all data configuration into a menu item "Define and Select data sources"
- in config you have left: debug on/off; database selection(SQLITE/Postgres); graphic tool(MATPLOT/GNUPLOT) and in advanced: cost models for consumptions.


These changes should enable QUICK first plot and remove complexity from the config screen.


Karl

ps MINIPLOT is now obsolete as it is replaced by "My First PLOT"

My First Plot Menu
Screen Shot 2015-06-18 at 3.44.41 PM.png
Screen Shot 2015-06-18 at 3.44.41 PM.png (69.68 KiB) Viewed 3968 times



Plot created with above "My First Plot"
Screen Shot 2015-06-18 at 3.44.24 PM.png
Screen Shot 2015-06-18 at 3.44.24 PM.png (52.61 KiB) Viewed 3968 times



Config menu
Screen Shot 2015-06-18 at 3.44.58 PM.png
Screen Shot 2015-06-18 at 3.44.58 PM.png (59.97 KiB) Viewed 3968 times



Complete menue structure, only items above "--V utilities V --" should be used under normal circumstances
Screen Shot 2015-06-18 at 3.40.16 PM.png
Screen Shot 2015-06-18 at 3.40.16 PM.png (235.72 KiB) Viewed 3968 times

Posted on
Wed Jul 15, 2015 10:11 pm
kw123 offline
User avatar
Posts: 5749
Joined: May 12, 2013
Location: Dallas, TX

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

https://www.dropbox.com/s/lfhwrc00twtk6f8/INDIGOplotD-v-3-11-2.zip?dl=0 Version 3-11-2

FIXES:
added compatibility for GNUPLOT 5.x. it will detect your GNUPLOT version modify the GNUPLOT commands accordingly
Some of the line types are not available anymore i.e. lt=0. Time convention is different now (0 was 2000-01-01 00:00:00, now epoch 1970 xx as standard unix)

USABILITY
- menue structures improved:
-- can print individual configurations to log file
-- added besides ADD line, DELETE line : DUPLICATE line. with this options you can as it says duplicate a line with all parameters and then one or 3 to add other configs or effects

FUNCTIONALITY
you now can:
- add numbers to specific lines and there to specific points in time, every other, every end of day, min/ max right/left ..
- select a specific point in time for a single data point from a line i.e. MAX/ MIN every 5/6/12th .. bin etc
- new line type: Impulse. Essentially a histogram with a very small widths. useful for single events, i.e. door opened
- add average indicators to individual lines on the left or right y axis

Here 2 examples
1. timeframe: 1 fixed week, always shows monday... sunday
- with current and last weeks temperature with average indicator on right axis
- maximum temperature this week
- current power consumption [W} with min and max value and average indicator on left side
- energy consumption [KWH] for each day this week
- energy consumption for the whole last and this week and Energy consumption for each day
- numbers at end of day, current (e.g. the black 86)
13 lines make up this plot many data sources are in several times, as regular line, as min, as max etc.
example1.png
example1.png (30.93 KiB) Viewed 3877 times

2. timeframe: 2 weeks
similar states as above.
in addition cost of electricity consumed this and last week each day (green line)
example2.png
example2.png (29.61 KiB) Viewed 3877 times

How to use it:
to generate each of the lines (solid, histogram and Numbers..) your select the data source then the line type:
Here you can see the options. In addition to solid/dashed dotted lines we have added:
average line left and right
vertical lines (impulse)
and NUMBERS
Screen Shot 2015-07-15 at 10.49.23 PM.png
Screen Shot 2015-07-15 at 10.49.23 PM.png (54.64 KiB) Viewed 3877 times

new menu points:
repeat / every x points:
Screen Shot 2015-07-15 at 10.52.26 PM.png
Screen Shot 2015-07-15 at 10.52.26 PM.png (94.09 KiB) Viewed 3877 times

here you select if it should a regular line with points everywhere or every other .. or at the Max/Min point or end of day, first point, or last point with data.
number format
here you enter the format string for the numbers show in the plot. "%3.1f" would show 55.378 as 55.3; "%3.0f" as 55 you can add text around it i.e. MAX T=%3.1fC would show e.g. MAX T=93C
number offsetwith x,y you can move the starting point of the number by n character width left/right or up and down. You must use x,y format e.g. 2.4,-0.9
Screen Shot 2015-07-15 at 11.01.55 PM.png
Screen Shot 2015-07-15 at 11.01.55 PM.png (14.32 KiB) Viewed 3877 times



Karl

Posted on
Sun Jul 19, 2015 2:23 pm
kw123 offline
User avatar
Posts: 5749
Joined: May 12, 2013
Location: Dallas, TX

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

fixed:

with no GNUPLOT installed, a variable was not initialized.


sorry found a bug i get a "permission denied" on an internal python program.. need to fix first before I post
Karl

Posted on
Sun Jul 26, 2015 10:47 pm
kw123 offline
User avatar
Posts: 5749
Joined: May 12, 2013
Location: Dallas, TX

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

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

ADDED:
option to set the path to the SQLite database in config menu

Check expert mode and enter the path in the proper field .. don't mess this up make sure it is exactly correct if you change it.

Have not tested it with a different directory but it should work.

Karl

Posted on
Fri Sep 04, 2015 9:30 am
kw123 offline
User avatar
Posts: 5749
Joined: May 12, 2013
Location: Dallas, TX

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

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

FIXED
a missing " sometimes caused an error when using "Simple/First plot"


changed the menu name of "My First Plot" to "Simple Plot". Which it should be.


Karl

Posted on
Wed Oct 21, 2015 3:18 pm
kw123 offline
User avatar
Posts: 5749
Joined: May 12, 2013
Location: Dallas, TX

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

https://www.dropbox.com/s/lwndeizqkl7jq59/INDIGOplotD-v-3-11-9.zip?dl=0
v-3-11-9

fixes older import restore files with error:
" bad py restore file, syntax error in Line '2085' ; error='invalid syntax (<string>, line 11)'"


Karl

Posted on
Tue Oct 27, 2015 3:14 pm
kw123 offline
User avatar
Posts: 5749
Joined: May 12, 2013
Location: Dallas, TX

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

https://www.dropbox.com/s/kkzqvgmx1svtsem/INDIGOplotD-v-3-12-2.zip?dl=1 version 3-12-2


fixes:
MATPLOT: when lines had no data, stopped plotting, now it skips that line


Added
- some more error control in MATPLOT and for SQL import
- now supports variable definitions in any text( Title, extra text, labels ..) as: >>> text%%v:variableId%%text<<<
or >>>text%%v:variableName%%text<<<

It will replace %%v:variableId%% with the contents of the variable at plot time.

e.g. with
Title Text = todays Date is %%v:myDate%%
or
Title Text = todays Date is %%v:567884322%%

if variable myDate (id= 567884322) has the string "2015-Monday" then the title on top of the plot would be: "todays date is 2015-Monday"

This enables a more dynamic configuration

Thanks to John Todd for the suggestion and testing

Karl
ps works for both gnuplot and MATPLOT

Posted on
Fri Nov 06, 2015 3:44 pm
kw123 offline
User avatar
Posts: 5749
Joined: May 12, 2013
Location: Dallas, TX

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

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

v 3 4 14

Fixed:
- print to log file running an import script with no log level did not work. (you will likely not encounter this one)
- plotting numbers in plot instead of lines, did not work in MATPLOT if there were empty numbers i.e. no measurements (float("") did not work)


added
- if you have a SLOW MAC (intel core due etc) and a BIG database (i.e. 6GByte ..) the sql import would likely create "database locked" error message. Most of the time it would recover, but if there are too many read entries and indigo is having problems this option might help:
a copy of the SQLite database is created (every 100 minutes) and the full import queries run against that file.
a better solution is to put an SSD into the MAC mini e.g. $86 (http://www.amazon.com/Samsung-2-5-Inch-Internal-MZ-75E250B-AM/dp/B00OAJ412U/ref=sr_1_1?s=pc&ie=UTF8&qid=1446846185&sr=1-1&keywords=ssd+hard+drive)buys you a 256 GByte ssd
you can select that option (only for sqlite) in the configuration menu in topic run sql import against copy or original sQLite db ( with option copy)


Karl

Posted on
Fri Dec 11, 2015 7:58 pm
kw123 offline
User avatar
Posts: 5749
Joined: May 12, 2013
Location: Dallas, TX

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

https://www.dropbox.com/s/iyezce2lqtm5pz5/INDIGOplotD-v-3-14-4.zip?dl=1

V 3.14.4

minor Addition:

Besides regular numbers and ON/OFF/true/false it now also handles Up/Down/Expired as number(Up=1, Down/Expired =0) (*)
With this you could plot how often a device is in up state over time. Eg if you use FINGSCAN or Mother or piBeacon, you can show when you are home or away.

Karl
{*) any upper or lower case letters work: UP uP up etc are used as 1

Who is online

Users browsing this forum: No registered users and 1 guest