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

Using wildcards for copying files possible?

From build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since. He has made the code available on GitHub. It is Mark's hope that others will join in this development, but at the very least he welcomes your ideas for future developments (see Cumulus MX Development suggestions).

Moderator: mcrossley

Post Reply
LSchenk
Posts: 7
Joined: Sun 10 Oct 2021 3:07 pm
Weather Station: Froggit HP 1000SE
Operating System: Win 10

Using wildcards for copying files possible?

Post by LSchenk »

Hello,

i would like to copy the files "ExtraLog202110.txt" and "Okt21log.txt" to an external folder for processing the data oth both files with a separate software tool.
For this it would be useful, to have fixed filenames.

Now ist is working if i use the full input filename.
But when next month rises, i have to change the inputfiles to Nov21log.txt and ExtraLog202111.txt and so on each month/year.

To prevent this it would be great, when CMX can create (optionally) two further files in the directory \data\.
Just a simple copy of the actual month files named e.g "act_month_log.txt" and "ExtraLog_act_month.txt", or even better names;-)
In this case, the names don't change and i have no data gaps, till changing.

Would it be possible, to fit an option for this?

Regards
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Using wildcards for copying files possible?

Post by mcrossley »

There is already a way of doing this... Use the variables <currentextralogfile> and <currentlogfile>, they will expand to the full file names in both the source and destination fields.

You can also use the variables: <noaamonthfile>, <noaayearfile>, <airlinklogfile>
LSchenk
Posts: 7
Joined: Sun 10 Oct 2021 3:07 pm
Weather Station: Froggit HP 1000SE
Operating System: Win 10

Re: Using wildcards for copying files possible?

Post by LSchenk »

Thanks a lot, this is a great help!
Phil23
Posts: 888
Joined: Sat 16 Jul 2016 11:59 pm
Weather Station: Davis VP2+ & GW1000 (Standalone)
Operating System: Win10 Pro / rPi Buster
Location: Australia

Re: Using wildcards for copying files possible?

Post by Phil23 »

mcrossley wrote: Sun 10 Oct 2021 3:50 pm Use the variables <currentextralogfile> and <currentlogfile>.....
Not quite sure what you are referring to here Mark, I thought it sounds like Environment Variables, but not seeing any that fit.
:Now: :Today/Yesterday:

Image

Main Station Davis VP2+ Running Via Win10 Pro.
Secondary Stations, Ecowitt HP2551/GW1000 Via rPi 3 & 4 Running Buster GUI.
:Local Inverell Ecowitt Station: :Remote Ashford Ecowitt Station:
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Using wildcards for copying files possible?

Post by mcrossley »

They are built-in variables that can only be used with Extra Web Files.
Post Reply