Page 1 of 3
cumulus 188 graph color
Posted: Tue 13 Oct 2009 5:57 pm
by aeropic
Hi Steve,
I've installed the 1.8.8 beta version and played a bit with it.
Everything seems to work fine. I've just a concern with the default color for inside temperature which is black.
I tried to modify it from the graph page ==> OK I can set it to green for instance, but this color is lost when restarting cumulus.
I tried to manually edit the cumulus.ini file at that level:
InsideTempColour=0
but everytime cumulus is restarted this value is reset to 0 ...
Any solution to set another default color ?
Thaks
Alain
Re: cumulus 188 graph color
Posted: Tue 13 Oct 2009 6:20 pm
by steve
Thanks - I'd put in the code to save the setting to the ini file, but forgotten to read it in again. I'll fix it in the next build.
Re: cumulus 188 graph color
Posted: Tue 13 Oct 2009 7:04 pm
by aeropic
cool !
thanks for your quick answer
Alain
Re: cumulus 188 graph color
Posted: Wed 14 Oct 2009 5:02 pm
by aeropic
Hi Steve,
It's now working fine in build 861
btw everything on this new release is OK with my WH1080 station.
Thanks
Alain
Re: cumulus 188 graph color
Posted: Wed 14 Oct 2009 5:21 pm
by steve
OK - thanks. Incidentally, while I was fixing the inside temp graph colour, I noticed that there was no option to change the colour of the average wind direction. I tried to fix that, but for some reason I can't get it to work, so I've taken it out again. I guess I must have had the same problem in the past.
Re: cumulus 188 graph color
Posted: Thu 15 Oct 2009 7:29 pm
by aeropic
You're right, I've just tried to change this color wothout success. It should be the same piece of code as for inside and outside humidity ?
Nevertheless, In my opinion, it does not really worth to invest to much energy on this as the default colors are quite perfect
regards
Alain
Re: cumulus 188 graph color
Posted: Thu 15 Oct 2009 7:42 pm
by steve
aeropic wrote:You're right, I've just tried to change this color wothout success. It should be the same piece of code as for inside and outside humidity ?
No, it's different because it's a different type of chart; the wind direction chart is a scatter chart, and most of the others are line charts. But what I really can't understand is how I can change the colour of the wind direction plot (the little crosses - that does work, yes?) but not the average wind direction plot (the circles). The same code doesn't work!
Re: cumulus 188 graph color
Posted: Thu 15 Oct 2009 7:52 pm
by aeropic
Hum ... strange behaviour !
I changed the wind direction color to pink and , surprise, I lost the crosses !
In fact it looks like the crossed moved to the location of the average circles and were drawn under the circles with the new color.
And now I cannot get back to the original drawing with crosses and circles

Re: cumulus 188 graph color
Posted: Thu 15 Oct 2009 8:02 pm
by aeropic
Even after a re-install of cumulus, the crosses and circles remain one on the other !!!!
Re: cumulus 188 graph color
Posted: Thu 15 Oct 2009 8:21 pm
by steve
When you restart Cumulus, there is initially only one set of directions to plot - both the station and Cumulus only log one direction value. So the two plots coincide. It's only while running Cumulus that it calculates the average direction, so there are two plots.
Re: cumulus 188 graph color
Posted: Fri 16 Oct 2009 5:52 am
by aeropic
OK I've got it.
So the color change is working for the crosses.
Alain
Re: cumulus 188 graph color
Posted: Fri 16 Oct 2009 4:03 pm
by akasonny
When i change the color of the crosses and then, later, stop and restart C1, the crosses return to the original color. That is to say the new color isn't saved. I haven't looked to find where this info may be stored...doubt its in C.ini...but I've noticed this since the first build I tried months ago.
Its not a big issued but it appears to be a bug somewhere.
Re: cumulus 188 graph color
Posted: Fri 16 Oct 2009 4:57 pm
by steve
I suspect that's related to why I can't get the average direction colour to change at all. I don't really understand what's going on.
If you look at the colour selection dialogue that comes up when you change the colour, you'll see that it's set to the colour you last changed it to, rather than the default red. So it's saving the chosen colour and restoring it correctly, but for some reason the code that sets the colour when you display the graph for the first time after a restart doesn't manage to change the colour of the graph, while the identical code which sets the colour immediately after you change it, does. Baffling.
Re: cumulus 188 graph color
Posted: Fri 16 Oct 2009 5:41 pm
by akasonny
Yes it is.
Here's how it
feels to me:
* Obviously the color "red" is hard-coded somewhere so that when C1 is first fired-up it defaults to red.
* It would seem that this hard-coding overrides any other variable color that may be entered in some config file
but only each time C1 is re-initialized... as if a) the .exe file fails to read the data in the config file or b) the data in the config file is properly read but then it very quickly gets over-ridden thereafter as the hard-coding in the .exe file continues to run.
This is all kind of abstract to try to envision and hard to explain but I'm pretty sure you follow my thinking here...
I'm not familiar with PERL or C+++ or whatever you're using ... my programming training was waaaay back when those languages didn't exist. But I think the same logic still applies.
steve wrote:I suspect that's related to why I can't get the average direction colour to change at all. I don't really understand what's going on.
If you look at the colour selection dialogue that comes up when you change the colour, you'll see that it's set to the colour you last changed it to, rather than the default red. So it's saving the chosen colour and restoring it correctly, but for some reason the code that sets the colour when you display the graph for the first time after a restart doesn't manage to change the colour of the graph, while the identical code which sets the colour immediately after you change it, does. Baffling.
Re: cumulus 188 graph color
Posted: Fri 16 Oct 2009 6:30 pm
by steve
Yes, that's pretty much it. The chart is declared with a default value for the colour, in this case red. Cumulus reads the configured value from the cumulus.ini file at start up (this bit is clearly working, as evidenced by the dialogue defaulting to the configured colour) , and then when the graphs window is opened, it changes the colour to the configured value. Except for some reason it doesn't work.
When you use the right-click menu to change the colour, it changes the chart colour using exactly the same code as the "when the window is opened" code, but this time it does work. Could be a bug in the chart component.