Illegal month

Posted on
Wed Dec 28, 2016 2:21 pm
juntta offline
Posts: 143
Joined: Oct 13, 2014
Location: Finland

Illegal month

Hi!

Started with Indigoplotd few days back and I'm having issues with my device data that I'm trying to plot.

When I define f.ex. my motion sensor (or any other device, variables do work) as data source for my plot, I'm getting following warning/error repeatedly in the log when plot is been processed and png files are empty:

Code: Select all
INDIGOplotD                     plotting  GNUPLOT error/warning for /Documents/INDIGOplotD/gnu/liike-day-S2
   INDIGOplotD                     1;20161212204104;1.0
/Documents/INDIGOplotD/sql/162419110-onOffState:1:"/Documents/INDIGOplotD/gnu/liike-day-S2.gnu", line 33: illegal month


Any idea whats wrong? Could it be date/time preferences or what?

Posted on
Wed Dec 28, 2016 2:23 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: Illegal month

Could you post the gnu file?


Sent from my iPhone using Tapatalk

Posted on
Wed Dec 28, 2016 3:05 pm
juntta offline
Posts: 143
Joined: Oct 13, 2014
Location: Finland

Re: Illegal month

Sure, here you go:

Code: Select all
#!'/Documents/INDIGOplotD/gnu/liike-day-S2.gnu'   
set datafile separator ";"
set output '/Documents/INDIGOplotD/liike-day-S2.png'   
set terminal png truecolor enhanced  medium  size 1024,768 dashlength 0.5      background rgb "#FFFFFF"

### time now in secs, etc parameters
binSecs= 86400
timeNow=time(0)-(-7200) # dif to UTC
timeNowSec= timeNow/binSecs*binSecs
secsLastBin=1482962400-(0)-(-7200)
secsFirstBin=1475182800-(0)-(-7200)
set style fill transparent solid 1.0
set xdata time 
set timefmt "%Y%m%d"
set format x "%b"
set xrange["20160930000000":"20161229000000"]
set yrange [00:100]   
set format y "%.0f"   
set ytics (20,40,60,80,100) nomirror   
set ylabel "    Temperature F"  textcolor rgb "#000000" 
set format y2 "%.0f"   
set y2range[00:200]     
set y2tics (0,20,40,60,80,100)   
set y2label "Humidty and ON-Time%                     ." textcolor rgb "#000000"
set key inside center top horizontal Right noreverse enhanced autotitles nobox
unset grid
set border 1+2+4+8
set border linecolor rgb "#000000"
set key textcolor rgb "#000000"
###  here goes the raw command if entered 
plot \
'/Documents/INDIGOplotD/sql/162419110-onOffState' using 2:(((($3)) > 0.0))?(($3)):1/0 with filledcurves x1  lw 1.0 lc rgb "#FFFF00"  notitle   axis x1y2\
 ,''   using 1:($2-$2)  with  lines  linetype 0    linewidth 1   linecolor  rgb "#FFFFFF"   title ""  axis x1y1


As you can see its pretty much plot with defaults. I tried to change number of things (fill datagaps etc) but didn't have any effect.

Posted on
Thu Dec 29, 2016 2:04 pm
juntta offline
Posts: 143
Joined: Oct 13, 2014
Location: Finland

Re: Illegal month

Any idea yet? Could I give some debug data for you?

I tried multiple plots today but all end up this way if I use device as data source. ☹️ Weird but variables plots just nice.

Posted on
Thu Dec 29, 2016 3:22 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: Illegal month

I am out of town and only on my phone. Difficult to answer. But could you post file 162419110-onOffstate. The data in there could create an error message like this


Sent from my iPhone using Tapatalk

Posted on
Thu Dec 29, 2016 10:42 pm
juntta offline
Posts: 143
Joined: Oct 13, 2014
Location: Finland

Re: Illegal month

kw123 wrote:
I am out of town and only on my phone. Difficult to answer. But could you post file 162419110-onOffstate. The data in there could create an error message like this


Ok, here. The error file for this was empty so nothing there.

Code: Select all
1;20161212204104;1.0
2;20161213145518;0.0
3;20161213151352;1.0
4;20161213162407;0.0
5;20161213180521;1.0
6;20161214072939;0.0
7;20161214095927;1.0
8;20161214143915;0.0
9;20161214153950;1.0
10;20161214164333;1.0
11;20161214201041;1.0
12;20161214203058;1.0
13;20161215072624;0.0
14;20161215074649;1.0
15;20161215083357;0.0
16;20161215155251;1.0
17;20161216073014;0.0
18;20161216074531;1.0
19;20161216092507;0.0
20;20161216102623;1.0
21;20161216152612;0.0
22;20161216153231;1.0
23;20161216153808;0.0
24;20161216155027;1.0
25;20161217095338;0.0
26;20161217112624;1.0
27;20161218150224;0.0
28;20161218160505;1.0
29;20161219074056;0.0
30;20161219080131;1.0
31;20161219155053;0.0
32;20161219170402;1.0
33;20161219205201;1.0
34;20161220073911;0.0
35;20161220163228;1.0
36;20161221073413;0.0
37;20161221075234;1.0
38;20161221075303;0.0
39;20161221170912;1.0
40;20161222073138;0.0
41;20161222075143;1.0
42;20161222075203;0.0
43;20161222161854;1.0
44;20161223082040;0.0
45;20161223101557;1.0
46;20161223102201;0.0
47;20161223110903;1.0
48;20161223200514;1.0
49;20161223222352;1.0
50;20161225124753;0.0
51;20161225182633;1.0
52;20161227150435;0.0
53;20161227183013;1.0
54;20161228170650;1.0
55;20161229094437;0.0
56;20161229100423;1.0
57;20161229152629;0.0
58;20161229163802;1.0

Posted on
Thu Dec 29, 2016 10:50 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: Illegal month

I guess that has to wait til I am back - end of next week.

Sorry
Karl


Sent from my iPhone using Tapatalk

Posted on
Thu Dec 29, 2016 10:56 pm
juntta offline
Posts: 143
Joined: Oct 13, 2014
Location: Finland

Re: Illegal month

No problem, I'll let you know if I figure something out myself

Posted on
Mon Jan 02, 2017 2:08 am
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: Illegal month

Code: Select all
 ,''   using 1:($2-$2)  with  lines  linetype 0    linewidth 1   linecolor  rgb "#FFFFFF"   title ""  axis x1y1

could be the problem. 1 is not in dat format in this data set.

try in edit plot device to NOT draw line at the bottom( that is at the bottom of the device edit screen- section # 2 - not the line section) that creates this line.
It is meant to force gnuplot to show the whole timeline. If there are no entries GNUPLOT sometimes does not show the full x range.

this works for normal plots as #1 is the date field. with these it is just a number. just a guess..

Karl

Posted on
Mon Jan 02, 2017 10:12 am
juntta offline
Posts: 143
Joined: Oct 13, 2014
Location: Finland

Re: Illegal month

kw123 wrote:
Code: Select all
 ,''   using 1:($2-$2)  with  lines  linetype 0    linewidth 1   linecolor  rgb "#FFFFFF"   title ""  axis x1y1

could be the problem. 1 is not in dat format in this data set.

try in edit plot device to NOT draw line at the bottom( that is at the bottom of the device edit screen- section # 2 - not the line section) that creates this line.


Hmm, I'm not sure which field you refer to? Do you mean I should hide x-axis or something else?

Posted on
Mon Jan 02, 2017 11:45 am
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: Illegal month

FULLX- scale set: -> do NOT draw invisble line at y=zero


Sent from my iPhone using Tapatalk

Posted on
Mon Jan 02, 2017 12:05 pm
juntta offline
Posts: 143
Joined: Oct 13, 2014
Location: Finland

Re: Illegal month

kw123 wrote:
FULLX- scale set: -> do NOT draw invisble line at y=zero


Sent from my iPhone using Tapatalk


Thanks, I just noticed this field - didn't consider myself expert!

I'll give it a try!

Posted on
Mon Jan 02, 2017 12:37 pm
juntta offline
Posts: 143
Joined: Oct 13, 2014
Location: Finland

Re: Illegal month

That did it! Thanks for the tip!

Now I can finally move on with my plots!

Posted on
Tue Jan 03, 2017 11:06 am
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: Illegal month

will fix it when I am back... so that you don't have to chose = should work out of the box

Posted on
Tue Jan 03, 2017 12:17 pm
juntta offline
Posts: 143
Joined: Oct 13, 2014
Location: Finland

Re: Illegal month

Great, Thanks again!

Who is online

Users browsing this forum: No registered users and 2 guests