Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

Daylight savings time change

Topics about the Beta trials up to Build 3043, the last build by Cumulus's founder Steve Loft. It was by this time way out of Beta but Steve wanted to keep it that way until he made a decision on his and Cumulus's future.

Moderator: mcrossley

Locked
f4phlyer
Posts: 144
Joined: Sun 13 Feb 2011 7:12 pm
Weather Station: Davis Vantage Pro 2
Operating System: RaspBerry Pi Win 10 OSx
Location: Spring, Texas USA
Contact:

Daylight savings time change

Post by f4phlyer »

Don't know if this would be considered a bug or what, and I'm not sure if it's been covered before but last nights time change for 'Daylight Savings Time' was rather "graphically" demonstrated. I don't recall what C1 but I was wondering if there is an easy more elegant solution.
time change.png
Pic a little fuzzy but the plot retraces itself at 2:00AM.
You do not have the required permissions to view the files attached to this post.
retreat at augusta pines weather
CumulusMX on Raspberry π rPi5
http://augusta-pines-weather.com / CumulusMX 4.0.0 build:4020
WeatherUnderground KTXSPRIN538
User avatar
steve
Cumulus Author
Posts: 26701
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Daylight savings time change

Post by steve »

MX does exactly the same as Cumulus 1, i.e. nothing. I don't propose to change this. There is no workable solution that I'm aware of; if there was, the weather station manufacturers would have adopted it. Even if Cumulus timestamped its data using a non-DST timezone (or UTC) the graph would look the same when mapped on to local time. The only real solution is to run your station on a fixed timezone all the time. This is effectively what professional meteorologists in the UK do, where all reporting is done in GMT/UTC, year round.
Steve
Nykita
Posts: 44
Joined: Fri 27 Jan 2012 2:55 am
Weather Station: Ambient Weather WS-2080
Operating System: Windows 10
Location: Cleveland, TN, USA

Re: Daylight savings time change

Post by Nykita »

Quote from original post: Pic a little fuzzy but the plot retraces itself at 2:00AM.

If you think about it, So did the clock!!!!!

Maybe I'm just being a grouch.... But, a goofy looking graph, at a time change that we all know happened, no big deal.... If someone viewing the graph is too ignorant to put the graph together with a darn calendar, then the problem is theirs!!!

My graph looked much like the one posted above, I said " That's cute" and went on with my day..

Sorry for the rant!!!!
No matter how carefully you choose your words, they'll always end up being twisted by others!
User avatar
logjam
Posts: 172
Joined: Fri 30 Nov 2012 8:01 pm
Weather Station: Homemade station on Raspberry Pi
Operating System: Raspbian on Raspberry Pi
Location: North Lincolnshire, UK
Contact:

Daylight savings time change

Post by logjam »

I'm going to crow a little bit over this, which makes a change for me. :) I'm not able to use the json files to make graphs so I make use of the webtag data with the Highcharts. Since the data is relative to the present time and not absolute, I get no problems with the graphs when the clocks change. It is good to know that sometimes a problem can occasionally lead to an advantage! :clap:
User avatar
steve
Cumulus Author
Posts: 26701
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Daylight savings time change

Post by steve »

That isn't really a solution though. Presumably you have an hour of data missing from your graphs somewhere? So you do have a problem with the graphs - just a different one.
Steve
User avatar
logjam
Posts: 172
Joined: Fri 30 Nov 2012 8:01 pm
Weather Station: Homemade station on Raspberry Pi
Operating System: Raspbian on Raspberry Pi
Location: North Lincolnshire, UK
Contact:

Re: Daylight savings time change

Post by logjam »

It seems my crowing was a little premature. :oops: My 'last 24 hours' graphs use the 'Recent History' array. I just assumed that Cumulus squirreled away the data in that array and shifted the data on irrespective of any time change. From what you are saying, I suppose that <#RecentOutsideTemp d=1 h=1 m=1>, for instance is referring to the current time stamp, and not the relative position of data in the array. Certainly the graphs looked OK, but perhaps the data didn't change significantly during that hour.
User avatar
steve
Cumulus Author
Posts: 26701
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Daylight savings time change

Post by steve »

Recent History uses an SQL database, keyed on the timestamp (using the current computer clock time). Once a minute, it adds the current set of readings to the database. A duplicate timestamp (as will happen for an hour when the clocks go back) will cause the previous (DST) entry to be overwritten.

When it's retrieving an entry for a web tag, it works out how many minutes the three parameters are specifying in total, and subtracts that number of minutes from the current time, and extracts the entry corresponding to the calculated timestamp.

But my point is really that however you store your data, you can't have a graph that has all of the data and doesn't have a 'glitch', unless the graph is 'DST-aware' and can have an X-Axis which repeats an hour's worth of times. Or you ignore DST changes and have all of your data timestamped with one consistent set of timestamps.

I wonder how many times this has been discussed on the forum? Once or twice a year since it started, I guess ;)
Steve
User avatar
logjam
Posts: 172
Joined: Fri 30 Nov 2012 8:01 pm
Weather Station: Homemade station on Raspberry Pi
Operating System: Raspbian on Raspberry Pi
Location: North Lincolnshire, UK
Contact:

Re: Daylight savings time change

Post by logjam »

steve wrote:A duplicate timestamp (as will happen for an hour when the clocks go back) will cause the previous (DST) entry to be overwritten.
It's one of those things that becomes obvious when it is explained - thanks!

At the risk of prolonging a understandably hackneyed topic, ;) it seems to me that having CumulusMX running on a dedicated machine like the Pi, means that the weather data can indeed be set to UT all year round with no problems. Disabling 'summer time' on my multi-purpose laptop, with the old Cumulus, would have caused far too many problems to contemplate. As an amateur astronomer my observatory clock is set to UT all year around, and all my logs are in UT, so it is nothing new to me. Is there a simple raspbian command that would stop the Pi from going into summer time?
User avatar
steve
Cumulus Author
Posts: 26701
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Daylight savings time change

Post by steve »

I think it's a case of using one of the timezone files that doesn't have DST changes, e.g. Etc/GMT
Steve
f4phlyer
Posts: 144
Joined: Sun 13 Feb 2011 7:12 pm
Weather Station: Davis Vantage Pro 2
Operating System: RaspBerry Pi Win 10 OSx
Location: Spring, Texas USA
Contact:

Re: Daylight savings time change

Post by f4phlyer »

Steve, of course. :groan: The GMT utilization is a good thought provocation.

BTW, you mention the "recent graphs" use the SQL db. I've looked for the code item that lengthens the time of the graph to look more like Mark's graphs with no luck. Am I missing something obvious?

Steve
retreat at augusta pines weather
CumulusMX on Raspberry π rPi5
http://augusta-pines-weather.com / CumulusMX 4.0.0 build:4020
WeatherUnderground KTXSPRIN538
User avatar
steve
Cumulus Author
Posts: 26701
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Daylight savings time change

Post by steve »

The graphs don't use an SQL database, the 'Recent History' web tags do. Those go back a week, and you can't currently change that. If you want to change the period for the standard graphs, the settings are in the 'Graphs' section on the Station Settings screen.
Steve
Locked