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

How can I store data from last year?

Discussion and questions about Cumulus weather station software version 1. This section is the main place to get help with Cumulus 1 software developed by Steve Loft that ceased development in November 2014.
Post Reply
wetterfrosch1971
Posts: 123
Joined: Sun 06 Apr 2014 1:15 pm
Weather Station: wh1080
Operating System: windows7
Location: south-west-germany

How can I store data from last year?

Post by wetterfrosch1971 »

Hello,

Is it possible to store data from year2015 in 2016?
For example, I will store the min-max-data from each month from year2015 and the absolutly min-max-data from year2015.
This means, that I want save the min-max each month an year-data from 2015 in 2016, is this possible?

Thank you for Information.
Sorry for my bad english.

Frank
sfws
Posts: 1183
Joined: Fri 27 Jul 2012 11:29 am
Weather Station: Chas O, Maplin N96FY, N25FR
Operating System: rPi 3B+ with Buster (full)

Re: How can I store data from last year?

Post by sfws »

wetterfrosch1971 wrote:Is it possible to store data from year 2015 in 2016?
Cumulus 1.x.x only stores extremes for current year and current month.
(As you are in your first year, each individual month on http://www.wetterstation-badenweiler.de ... record.htm page relates solely to 2015 so is same as http://www.wetterstation-badenweiler.de ... smonth.htm for that month).

However, you can take a copy of your http://www.wetterstation-badenweiler.de ... isyear.htm just before 2015 ends, and keep it as a separate page (I did this calling my saved page "lastyear.htm", in my second year, but then in my third year I built a new page that looks a bit like "thisyear.htm" but has all the years as separate columns in line with the row labels). Basically, my newer equivalent of "thisyearT.htm" was made up of one column with cumulus web tags for the current year as per the standard template, but all the other columns contain the figures and time-stamps as they were on the past page after Cumulus processed it for the relevant year. The problem I have is the page gets wider each year, so I need to change my strategy again!

For this month, to start me off I used my equivalent of http://www.wetterstation-badenweiler.de ... record.htm and took screen copy of each monthly selection in turn. (There is an add-on for Firefox that will let you save what is displayed by JavaScript in a table as HTML code to create the new page directly, quicker than taking screen copies and typing into new pages). As said above this only works during your first year. From 2016 you will need to take a copy of your page http://www.wetterstation-badenweiler.de ... smonth.htm just before the month ends to retain the minimum and maximum for each month if you continue to use Cumulus 1.9.4, (as each month in http://www.wetterstation-badenweiler.de ... record.htm will then be a combination of 2015 and 2016.

To display my collection of "thismonth" pages, I have a "carrier page", the page that all the navigation links on my other pages load. You appear not to have a link to http://www.wetterstation-badenweiler.de ... smonth.htm on your pages, but in my case I edited that link on every page to take me to the carrier page. On the original carrier page I added a whole set of new navigation anchors that select which month to display (it actually lets me display two months now as I'm trying out two sorts of navigation selectors, one is just a long list and two is a drop down system with the years at the top level dropping down to months at the lower level), but I also experiment with other pages that have one set of row labels but can display figures from a small number of months in columns or iframes alongside with script code determining which (fixed) months to show based on current month.

I hope my English can be understood by you. For above strategy to work perfectly, you need to update your web pages fairly frequently (you use every 5 minutes so that is okay) and be at your pc a few minutes before end of month/year to take the copy of the processed file. If your rollover is at midnight, then take the copy at 3 minutes to midnight of the page generated at 5 minutes to midnight. (If rollover is 9am or 10am, then it is a few minutes before that 9am or 10am time).

(The first version of Cumulus I installed did not have "thisyearT.htm" or "thismonthT.htm" and it was some time later that "monthlyrecordT.htm" was introduced giving me those first to be saved past months of that year). I later added some earlier data to the logs, then created the equivalent web pages for earlier months back to March 2009 and added the extra columns for my earlier years to my annual page, so it is possible to build up approximate equivalents from log files.
However, remember while Cumulus is running it updates these extremes in-between recording values in logs, so by relying on values in logs some extremes may be missed. Taking back-ups of "month.ini" and "year.ini" from just before end of month and year is part of my strategy as it can help to find correct values. But actually my main problem is that I am often away when month/year occurs and do not have access to my PC at the critical time. Ironically I see that Cumulus MX beta has recently introduced writing just before rollover to a MySQL database! That could be a solution?

This year I started storing the items that appear on This Month in a MySQL database table, Cumulus 1.9.4 writes to the table just before the month ends if I have left Cumulus on from before end-of-month. I've got Cumulus1.9.4 telling me when it does a rollover during catch-up, and given I'm not always able to have my computer on at end of month, now I am struggling a bit to get it working so Cumulus will update the table even if it is doing a logger catch up when it processes that month end.
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: How can I store data from last year?

Post by steve »

Something fairly easy that I've been thinking of doing in Cumulus MX is to save the month.ini and year.ini file at the end of each month/year, renamed suitably to identify them, eg month201505.ini and year2015.ini. Useful?
Steve
freddie
Posts: 2477
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 22.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: How can I store data from last year?

Post by freddie »

steve wrote:Something fairly easy that I've been thinking of doing in Cumulus MX is to save the month.ini and year.ini file at the end of each month/year, renamed suitably to identify them, eg month201505.ini and year2015.ini. Useful?
Yes, very! I have a script that does this - it would be good to have this as a MX "built-in" function :-)
Freddie
Image
sfws
Posts: 1183
Joined: Fri 27 Jul 2012 11:29 am
Weather Station: Chas O, Maplin N96FY, N25FR
Operating System: rPi 3B+ with Buster (full)

Re: How can I store data from last year?

Post by sfws »

steve wrote:save the month.ini and year.ini file at the end of each month/year, renamed suitably to identify them, eg month201505.ini and year2015.ini.
steve wrote:Useful?
others would say the answer is yes - see https://cumulus.hosiene.co.uk/viewtopic.php?f=4&t=6102, enhancement requests 174 and 263 and FAQ http://wiki.sandaysoft.com/a/FAQ#I_was_ ... .2Fyear.3F .
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: How can I store data from last year?

Post by steve »

The first step would just be to save the file - a viewer might come later. But as I haven't actually done the 'this month' and 'this year' highs and lows viewer in MX yet, it would make sense to incorporate that at the same time.
Steve
Post Reply