Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 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

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

SQL Dayfile table

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
User avatar
kocher
Posts: 233
Joined: Sat 19 Apr 2014 7:57 pm
Weather Station: Davis Vantage Pro2+
Operating System: Windows 10
Location: San Sebastian - Spain
Contact:

SQL Dayfile table

Post by kocher »

Currently the Dayfile table is updated at the end of each day.

How can you get to the table Dayfile actualize every 5 minutes?
Image
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: SQL Dayfile table

Post by steve »

Can I ask why you want to do that? Dayfile.txt is only updated once a day (it contains daily summaries), so updating the corresponding SQL table every 5 minutes would result in 288 copies of the same data.
Steve
User avatar
kocher
Posts: 233
Joined: Sat 19 Apr 2014 7:57 pm
Weather Station: Davis Vantage Pro2+
Operating System: Windows 10
Location: San Sebastian - Spain
Contact:

Re: SQL Dayfile table

Post by kocher »

Thanks for your quick reply Steve.

I have explained wrong
I would like the last record (only 1 record) corresponds to the current day updated (overwrite) every 5 minutes
Image
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: SQL Dayfile table

Post by steve »

The last record is for yesterday. It doesn't change once written.

If you want a table with today's highs and lows so far, you could create a custom table and use today's web tags to populate it with data.
Steve
User avatar
kocher
Posts: 233
Joined: Sat 19 Apr 2014 7:57 pm
Weather Station: Davis Vantage Pro2+
Operating System: Windows 10
Location: San Sebastian - Spain
Contact:

Re: SQL Dayfile table

Post by kocher »

OK

Thank you very much Steve
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: SQL Dayfile table

Post by sfws »

You could write a php script using an appropriate combination of SQL calculations on dayfile columns and/or calculation using today web tags. So that is a variation on Steve's suggestion.
Last edited by sfws on Sun 25 Oct 2015 10:43 am, edited 1 time in total.
User avatar
kocher
Posts: 233
Joined: Sat 19 Apr 2014 7:57 pm
Weather Station: Davis Vantage Pro2+
Operating System: Windows 10
Location: San Sebastian - Spain
Contact:

Re: SQL Dayfile table

Post by kocher »

Greetings sfws

Is it possible to know your script? :idea:
Image
Locked