Page 1 of 2
currentlogfile tag at month change [Implemented]
Posted: Sun 14 Jan 2024 10:36 am
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
Re: currentlogfile tag at month change
Posted: Sun 14 Jan 2024 10:58 am
by rogerthn
It might be possible to use
Settings => Internet Settings => External Programs => Daily program/Daily program parameters
Re: currentlogfile tag at month change
Posted: Sun 14 Jan 2024 11:49 am
by mcrossley
I like these sorts of suggestions, solves a problem, and takes a minute to implement
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.
Re: currentlogfile tag at month change
Posted: Sun 14 Jan 2024 3:36 pm
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
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
Re: currentlogfile tag at month change
Posted: Thu 01 Feb 2024 7:30 am
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!
Re: currentlogfile tag at month change
Posted: Thu 01 Feb 2024 7:47 am
by freddie
Like this:
Code: Select all
/home/pi/CumulusMX/data/<#currentlogfile>
Re: currentlogfile tag at month change
Posted: Thu 01 Feb 2024 8:02 am
by sutne
Then I have this:
Code: Select all
Extra web file - /home/pi/CumulusMX/data/<#currentlogfile> - not found!
Re: currentlogfile tag at month change
Posted: Thu 01 Feb 2024 8:06 am
by HansR
If I remember well it is just:
No path, no #
Re: currentlogfile tag at month change
Posted: Thu 01 Feb 2024 8:26 am
by sutne
Thank You!
That was it!
Re: currentlogfile tag at month change
Posted: Thu 01 Feb 2024 8:44 am
by HansR
OK. Note that this is not a webtag!
It is specifically something for Extra Webfiles.
Re: currentlogfile tag at month change
Posted: Thu 01 Feb 2024 9:06 am
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.
Re: currentlogfile tag at month change
Posted: Thu 01 Aug 2024 4:55 pm
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?
Re: currentlogfile tag at month change
Posted: Thu 01 Aug 2024 5:28 pm
by mcrossley
The destination should not have a # in it
Re: currentlogfile tag at month change
Posted: Fri 02 Aug 2024 9:59 am
by Dador
Removing the # sign and unsigned "Upload" helped.
Now the files copy correctly.
Re: currentlogfile tag at month change
Posted: Fri 02 Aug 2024 10:38 am
by mcrossley
You should also untick "process", log files do not contain any web tags that need processing.