INDIGOplotD -- a plot tool for indigo -- program download
Re: INDIGOplotD -- a plot tool for indigo -- program downlo
https://www.dropbox.com/s/17b3rgrhpc3s9 ... 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
FIX:
works now with GNUPLOT V 5 (and v4)
GNUPLOT "set timefmt" command behaves differently in GNUPLOT V5 vs V4.
Karl
Re: INDIGOplotD -- a plot tool for indigo -- program downlo
https://www.dropbox.com/s/b9booe7qq38ic ... 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
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
Re: INDIGOplotD -- a plot tool for indigo -- program downlo
https://www.dropbox.com/s/199o8qcxb3wic ... 0.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
[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
Re: INDIGOplotD -- a plot tool for indigo -- program downlo
https://www.dropbox.com/s/qm4k1tjc3exbh ... 1.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: 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: vs original: 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
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: 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: vs original: 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
Re: INDIGOplotD -- a plot tool for indigo -- program downlo
https://www.dropbox.com/s/1c7vfcszoybt1 ... 2.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: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 :
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:
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: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
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 (27.09 KiB) Viewed 20888 times
Re: INDIGOplotD -- a plot tool for indigo -- program downlo
https://www.dropbox.com/s/bx21ejob3siqc ... 4.zip?dl=0
fixes
"Line '8475' has error='unsupported operand type(s) for +: 'float' and 'str''"
Karl
fixes
"Line '8475' has error='unsupported operand type(s) for +: 'float' and 'str''"
Karl
Re: INDIGOplotD -- a plot tool for indigo -- program downlo
https://www.dropbox.com/s/llhiqp1m1rvjt ... 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
Plot created with above "My First Plot"
Config menu
Complete menue structure, only items above "--V utilities V --" should be used under normal circumstances
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
Plot created with above "My First Plot"
Config menu
Complete menue structure, only items above "--V utilities V --" should be used under normal circumstances
Re: INDIGOplotD -- a plot tool for indigo -- program downlo
https://www.dropbox.com/s/lfhwrc00twtk6 ... 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. 2. timeframe: 2 weeks
similar states as above.
in addition cost of electricity consumed this and last week each day (green line) 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 new menu points:
repeat / every x points:
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
Karl
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. 2. timeframe: 2 weeks
similar states as above.
in addition cost of electricity consumed this and last week each day (green line) 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 new menu points:
repeat / every x points:
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
Karl
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
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
Re: INDIGOplotD -- a plot tool for indigo -- program downlo
https://www.dropbox.com/s/jf0os2wzd8dk6 ... 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
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
Re: INDIGOplotD -- a plot tool for indigo -- program downlo
https://www.dropbox.com/s/x8mh9wxstz4fs ... 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
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
Re: INDIGOplotD -- a plot tool for indigo -- program downlo
https://www.dropbox.com/s/lwndeizqkl7jq ... 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
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
Re: INDIGOplotD -- a plot tool for indigo -- program downlo
https://www.dropbox.com/s/kkzqvgmx1svts ... 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
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
Re: INDIGOplotD -- a plot tool for indigo -- program downlo
https://www.dropbox.com/s/frpr2cqti7va6 ... 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- ... 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
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- ... 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
Re: INDIGOplotD -- a plot tool for indigo -- program downlo
https://www.dropbox.com/s/iyezce2lqtm5p ... 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
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