INDIGOplotD -- a plot tool for indigo

A Plugin to create Plots from INDIGO data and other sources
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 »

OHHH yes, please upgrade to a more recent version !!
User avatar
McJohn
Posts: 681
Joined: Tue Dec 18, 2012 5:58 am
Location: The Netherlands
Contact:

Re: INDIGOplotD -- a plot tool for indigo

Post by McJohn »

I think I have the same problem Karl. This morning we were punished with an outside temp of -4,5 degrees, but the (yellow) line is constant flat.

Left AND Right Scale are 00:110
Both Tick marks are; -10,-5,0,5,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,85,90,95,100
Version 3.7.27

Kind regards,
John
Attachments
PlotTemp+Temperature-Humidity-minute-S1.png
PlotTemp+Temperature-Humidity-minute-S1.png (36.46 KiB) Viewed 5370 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 »

John,
when he Y range is set to 0:110 then there can not be anything below 0.
are you sure about the YRange?

please try YRange:-10:110

Karl
User avatar
McJohn
Posts: 681
Joined: Tue Dec 18, 2012 5:58 am
Location: The Netherlands
Contact:

Re: INDIGOplotD -- a plot tool for indigo

Post by McJohn »

Sorry, my fault :oops:
Range set to -10:110
Solved! Thanks for the fast answer.
John
Attachments
PlotTemp+Temperature-Humidity-minute-S1.png
PlotTemp+Temperature-Humidity-minute-S1.png (38.93 KiB) Viewed 5364 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 »

John,
you should try the scatter plot for temp& humidity.
The Temp curves are hardly changing.. with these settings..

Karl

ps .. right now yo can have only ONE scatter line per plot
User avatar
McJohn
Posts: 681
Joined: Tue Dec 18, 2012 5:58 am
Location: The Netherlands
Contact:

Re: INDIGOplotD -- a plot tool for indigo

Post by McJohn »

Funny to play with :D
Attachments
PlotTemp1+Temperature-Humidity-minute-S1.png
PlotTemp1+Temperature-Humidity-minute-S1.png (41.65 KiB) Viewed 5362 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 »

John,

try this: setup a new plot
expert ON
Yrange: -10:30
dataA= temp
func= the last one ... value as color of dot
dataB= humidity
linewidth=3
nothing else.

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

Richo,
How did you get the "thermometer" into the plot area.
http://forums.indigodomo.com/viewtopic. ... 4&start=15

What are your plot settings??

Karl
User avatar
McJohn
Posts: 681
Joined: Tue Dec 18, 2012 5:58 am
Location: The Netherlands
Contact:

Re: INDIGOplotD -- a plot tool for indigo

Post by McJohn »

My 2 years old kid is jealous :D
Attachments
Test Plot-minute-S1.png
Test Plot-minute-S1.png (22.54 KiB) Viewed 5285 times
tadg
Posts: 29
Joined: Wed Feb 13, 2008 1:37 pm
Location: San Diego, CA

Re: INDIGOplotD -- a plot tool for indigo

Post by tadg »

Great, I'll upgrade to the latest and kill my script. You are way too quick on the turn around with these new features.

Right now I am just graphing some temperatures around the house and learning how to make things look the way I want. I think my next attempt will be to try to get a graphical look at motion sensors / video motion detection to give me a quick over-view of what happened around the house. I think the scatterplot might be a nice way to do that.

Tad
kw123 wrote:cool.

would you like to just be able to name the directory where the PNG files should go? ...thats a quick add..

Also indigoplotd sets an event when the plots are finished.. You can trigger on it.

Karl

could you share some of your plots.. its always interesting to see what folks do with the stuff...
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 »

tadg,
for the on/off things I would use "count" or "max" not average and you should try fillGaps on/off That will determine the value between the ON/off events

average is for continuous things like power, temp etc.
If you have event like data you would get lets say with 1 event in a day an average of 1/# of measurements =1/24*60*12. (thats the number of measurements in a day.)

with max you would get 1
with count you would get 1

when you have 10 events you would get:
max = 1
count =10

etc

I guess you get the idea.

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

a new version with updated manual was posted: http://forums.indigodomo.com/viewtopic. ... 4&start=15

Karl
moyse
Posts: 39
Joined: Mon Apr 14, 2014 6:55 am

Re: INDIGOplotD -- a plot tool for indigo

Post by moyse »

kw123 wrote:thats the punishment for living in an area where it gets cold :D

I know where its issue is. .. that was introduced as a feature .. looks like a bug in this circumstance


could you be so kind and send me
1. xxx.gnu file
2. the output of menu/indigoplotd/print/log plots


Karl
Sorry for the delay in replying! The left scale is -10:40, and the tickmarks are: -10,0,10,20,30,40

I tried changing the right scale to -10:100 (it's humiduty percentage) in case this was interferring, but no...

Gnu file is:

Code: Select all

#!'/Users/edwardmoyse/Documents/INDIGOplotD/gnu/Temperatures-hour-S1.gnu'   
set output '/Users/edwardmoyse/Documents/INDIGOplotD/Temperatures-hour-S1.png'   
set terminal png truecolor enhanced  medium  size 820,350 dashlength 0.5      background rgb "#FFFFFF"
set datafile separator ";" 
set style fill transparent solid 1.0 
set xdata time  
set timefmt x "%Y%m%d%H"    
set format x "%a"    
set xrange["201501130000":"201501262359"]
set yrange [-10:40]   
set format y "%.0f"    
set ytics (-10,0,10,20,30,40) nomirror   
set format y2 "%.0f"    
set y2range[-10:100]     
set y2tics (-10,0,10,20,30,40,50,60,70,80,90,100)    
set y2label "Humidity" textcolor rgb "#000000" 
set key inside center top horizontal Right noreverse enhanced autotitles nobox
set style line 100 lt 6 lw 1 linecolor rgb "#000000" 
set grid back ls 100 
set border linecolor rgb "#000000" 
set key textcolor rgb "#000000" 
set title "Temperatures" textcolor  rgb "#000000" 
###  here goes the raw command if entered  
plot '/Users/edwardmoyse/Documents/INDIGOplotD/data/hour.dat'\
   using 1:((($3)*(1.0)+(0.0)) > (0.0) ? (($3)*(1.0)+(0.0)) : 1/0)  with  lines  linetype 6    linewidth 2   linecolor rgb "#A00000"   title "Garage"    axis x1y1\
 ,''   using 1:((($8)*(1.0)+(0.0)) > (0.0) ? (($8)*(1.0)+(0.0)) : 1/0)  with  lines  linetype 6    linewidth 2   linecolor rgb "#A0A000"   title "Downstairs"    axis x1y1\
 ,''   using 1:((($19)*(1.0)+(0.0)) > (0.0) ? (($19)*(1.0)+(0.0)) : 1/0)  with  lines  linetype 6    linewidth 2   linecolor rgb "#FFA500"   title "Exterior"    axis x1y1\
 ,''   using 1:((($21)*(1.0)+(0.0)) > (0.0) ? (($21)*(1.0)+(0.0)) : 1/0)  with  lines  linetype 0    linewidth 2   linecolor rgb "#00FF00"   title "Front Ext. Humidity"    axis x1y2\
 ,''   using 1:($2-$2)  with  lines  linetype 0    linewidth 1   linecolor  rgb "#FFFFFF"   title ""  axis x1y1
I'm not sure what you meant by your second question - I turned on debug output and in the logfile I get:
26 Jan 2015 10:54:00
INDIGOplotD syncPlotsWithIndigo forcing read indigoplot parameters
INDIGOplotD syncPlotsWithIndigo testing Battery levels
INDIGOplotD syncPlotsWithIndigo testing Doors opening
INDIGOplotD syncPlotsWithIndigo testing Temperatures
INDIGOplotD syncPlotsWithIndigo testing test

26 Jan 2015 10:54:16
INDIGOplotD getDeviceConfigUiValues... devId:179418475
INDIGOplotD filterSelectedLinesB retlist [(0, 'None'), (1, 'Garage Motion - Temperature-ave-Sensor Value'), (2, 'Garage Motion - Motion Sensor-cou-On/Off'), (3, 'Garage Motion - Motion Sensor-ave-Battery Level [%]'), (4, 'Garage door - Door/Window-cou-On/Off'), (5, 'Garage door - Door/Window-ave-Battery Level [%]'), (6, 'Garage door - Temperature 1-ave-Sensor Value'), (7, 'Back door - Door/Window-cou-On/Off'), (8, 'Back door - Door/Window-ave-Battery Level [%]'), (9, 'Bedroom 2 - Back Window-cou-On/Off'), (10, 'Bedroom 2 - Back Window-ave-Battery Level [%]'), (11, 'Front door - Door/Window-ave-On/Off'), (12, 'Front door - Door/Window-ave-Battery Level [%]'), (13, 'Motion - Living room-ave-On/Off'), (14, 'Motion - Living room-ave-Battery Level [%]'), (15, '1st floor landing - Door-ave-On/Off'), (16, '1st floor landing - Door-ave-Battery Level [%]'), (17, 'Front - Exterior Temperature-ave-Sensor Value'), (18, 'Front - Exterior Luminance-ave-Sensor Value'), (19, 'Front - Exterior Humidity-ave-Sensor Value'), (20, 'Front - Motion Sensor-cou-On/Off'), (21, 'Front - Motion Sensor-ave-Battery Level [%]')]
INDIGOplotD filterSelectedLinesA nline 3
INDIGOplotD filterSelectedLinesA nPlot and def line# 179418475 17
INDIGOplotD filterSelectedLinesA currentPlotType dataFromTimeSeries
INDIGOplotD filterSelectedLinesA retList [(0, 'Front - Exterior Temperature-ave-Sensor Value')]
INDIGOplotD filterExistingLine targetId 179418475
INDIGOplotD filterExistingLine retList [(1, u'Garage-Garage Motion - Temperature-ave-Sensor Value'), (3, u'Exterior-Front - Exterior Temperature-ave-Sensor Value'), (2, u'Downstairs-Garage door - Temperature 1-ave-Sensor Value'), (4, u'Front Ext. Humidity-Front - Exterior Humidity-ave-Sensor Value'), ('99', 'Add New Line'), ('0', 'Select action')]

moyse
Posts: 39
Joined: Mon Apr 14, 2014 6:55 am

Re: INDIGOplotD -- a plot tool for indigo

Post by moyse »

Oops. Just saw your comment about upgrading ... I'll try that now.

Edit: Fantastic! That fixed the problem ...

However my logfile is now being spammed (several lines per second) with:
2015-01-26 11:06:50.288 INDIGOplotD Error ------------------------------------
2015-01-26 11:06:50.289 INDIGOplotD Error SQL data has bad format:120141211103609 should be "ID YYYYmmddHHMMSS data" skipping import
2015-01-26 11:06:50.290 INDIGOplotD Error ------------------------------------
Is there anything I can do to suppress this? I guess I could try to find the offending entry and manually remove it from the database, but a) the error message looks kind of funny (how is that not the correct format?) and b) I'd rather not have to do this!

Thanks again for all the help (and for the lovely plugin).
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 »

what database are you using?
It complains that the SQL query returns bad data!

it should have

ID date data

data is missing.

could you send me some lines of an SQL output file:

that are for example:
/Users/yourID/Documents/INDIGOplotD/sql/46489666-humidity (the #-humidity should be replaced with yours.)

just double-click on one of them and send me the first lines..

Karl
Last edited by kw123 on Mon Jan 26, 2015 11:20 am, edited 1 time in total.
Post Reply

Return to “INDIGOplotD”