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

currentlogfile tag at month change [Implemented]

Please DO NOT use this to publish your entire wish. This Forum is for specific suggestions to enhance the usability of Cumulus MX for all users, NOT your personal requirements. Please check this forum and the rejected forum to make sure you are NOT posting a DUPLICATE suggestion. It will be heavily monitored by Admin and Mark Crossley to determine the feasibility and the difficulty of the suggestion. Those Topics that are deemed inadmissible will moved to the rejected Forum. The remaining Topics will be the Accepted list of future developments, and when our voluntary development group adds it to a build, the build number will be added to the Topic title.
Atlas
Posts: 43
Joined: Wed 04 Jun 2014 3:36 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: Win 10 Pro x64 4 GB RAM
Location: Murcia, Spain

currentlogfile tag at month change [Implemented]

Post by Atlas »

Hi

I upload current log to my website for graphics every 15 minutes with currentlogfile web tag in Extra web files. Problem is when it is month's change at 0:00 in day 1 it is uploaded the new month and not the previous and thus the last month is left without the last 15 minutes ....

It can be uploaded the previous month at 0:00 in day 1 of each month ?

Thanks
Image
Davis Vantage Pro 2 Plus
https://www.meteoarchena.es
User avatar
rogerthn
Posts: 547
Joined: Thu 11 Apr 2013 6:31 pm
Weather Station: Ecowitt GW1000/GW1003
Operating System: Raspberry Pi OS bullseye aarch64
Location: Trollhättan Sweden
Contact:

Re: currentlogfile tag at month change

Post by rogerthn »

It might be possible to use
Settings => Internet Settings => External Programs => Daily program/Daily program parameters
Image
User avatar
mcrossley
Posts: 14382
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: currentlogfile tag at month change

Post by mcrossley »

I like these sorts of suggestions, solves a problem, and takes a minute to implement :lol:

Done for the next release. It will continue with the previous months log file name for the logging interval + 1 minute after the month rollover.
Atlas
Posts: 43
Joined: Wed 04 Jun 2014 3:36 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: Win 10 Pro x64 4 GB RAM
Location: Murcia, Spain

Re: currentlogfile tag at month change

Post by Atlas »

mcrossley wrote: Sun 14 Jan 2024 11:49 am I like these sorts of suggestions, solves a problem, and takes a minute to implement :lol:

Done for the next release. It will continue with the previous months log file name for the logging interval + 1 minute after the month rollover.
Thanks mcrossley. It makes a big difference with that little effort.
rogerthn wrote: Sun 14 Jan 2024 10:58 am It might be possible to use
Settings => Internet Settings => External Programs => Daily program/Daily program parameters
thanks for the suggestion rogerthn... I'll take account of this for future stuff
Image
Davis Vantage Pro 2 Plus
https://www.meteoarchena.es
sutne
Posts: 577
Joined: Sun 14 Oct 2012 4:23 pm
Weather Station: HP2560 (WS80) and HP2550 (WS90)
Operating System: Raspbian Bullseye and Bookworm
Location: Rjoanddalen and Kronstad, Norway
Contact:

Re: currentlogfile tag at month change

Post by sutne »

How are these replaceble values supposed to be used?
If I put

Code: Select all

/home/pi/CumulusMX/data/<currentlogfile>
in Extra web files, I have this error message

Code: Select all

 PHP[Int]: Extra web file - /home/pi/CumulusMX/data/<currentlogfile> - not found!
freddie
Posts: 2870
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 24.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: currentlogfile tag at month change

Post by freddie »

Like this:

Code: Select all

/home/pi/CumulusMX/data/<#currentlogfile>
Freddie
Image
sutne
Posts: 577
Joined: Sun 14 Oct 2012 4:23 pm
Weather Station: HP2560 (WS80) and HP2550 (WS90)
Operating System: Raspbian Bullseye and Bookworm
Location: Rjoanddalen and Kronstad, Norway
Contact:

Re: currentlogfile tag at month change

Post by sutne »

Then I have this:

Code: Select all

Extra web file - /home/pi/CumulusMX/data/<#currentlogfile> - not found!
User avatar
HansR
Posts: 6926
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: currentlogfile tag at month change

Post by HansR »

If I remember well it is just:

Code: Select all

<currentlogfile>
No path, no #
Hans

https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
sutne
Posts: 577
Joined: Sun 14 Oct 2012 4:23 pm
Weather Station: HP2560 (WS80) and HP2550 (WS90)
Operating System: Raspbian Bullseye and Bookworm
Location: Rjoanddalen and Kronstad, Norway
Contact:

Re: currentlogfile tag at month change

Post by sutne »

Thank You!
That was it!
User avatar
HansR
Posts: 6926
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: currentlogfile tag at month change

Post by HansR »

OK. Note that this is not a webtag!
It is specifically something for Extra Webfiles.
Hans

https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
User avatar
mcrossley
Posts: 14382
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: currentlogfile tag at month change

Post by mcrossley »

In the source just use the tag (MX knows where the log files are), in the destination you can use a path along with the tag.
User avatar
Dador
Posts: 352
Joined: Thu 24 Nov 2011 2:22 pm
Weather Station: Davis VP2 Plus & Ecowitt
Operating System: Windows 10
Location: Rybnik, Poland
Contact:

Re: currentlogfile tag at month change

Post by Dador »

I'm trying to copy files with a variable name to another folder on my computer.
What am I doing wrong that it doesn't work?
You do not have the required permissions to view the files attached to this post.
User avatar
mcrossley
Posts: 14382
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: currentlogfile tag at month change

Post by mcrossley »

The destination should not have a # in it
User avatar
Dador
Posts: 352
Joined: Thu 24 Nov 2011 2:22 pm
Weather Station: Davis VP2 Plus & Ecowitt
Operating System: Windows 10
Location: Rybnik, Poland
Contact:

Re: currentlogfile tag at month change

Post by Dador »

Removing the # sign and unsigned "Upload" helped.
Now the files copy correctly.
You do not have the required permissions to view the files attached to this post.
User avatar
mcrossley
Posts: 14382
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: currentlogfile tag at month change

Post by mcrossley »

You should also untick "process", log files do not contain any web tags that need processing.
Post Reply