Page 2 of 2

Re: Cumulus 1 migration to Cumulus MX

Posted: Wed 10 Mar 2021 10:27 am
by mcrossley
Please zip up your MXdiags folder and attach it here.

Re: Cumulus 1 migration to Cumulus MX

Posted: Wed 10 Mar 2021 7:11 pm
by TwoTonTed
hope this works for you

Re: Cumulus 1 migration to Cumulus MX

Posted: Thu 11 Mar 2021 11:38 am
by mcrossley
Your dayfile.txt has the wrong date format in it.

The day file is using "20-04-16", but CMX is expecting "20/04/16"

It looks like you have a locale difference between your installations.

Re: Cumulus 1 migration to Cumulus MX

Posted: Thu 11 Mar 2021 3:24 pm
by TwoTonTed
Thanks, how do I fix the problem? I'm not very technical, so would have little idea what to do but have edited .txt files for missing data in the past, when I had hardware failure.

I upgraded to MX because some functionality for monthly data stopped working in Cumulus 1. I've applied the patch now and it works ok however, I really want to use MX, it looks much better!

Re: Cumulus 1 migration to Cumulus MX

Posted: Wed 17 Mar 2021 4:46 pm
by TwoTonTed
have gone back to Cumulus 1; any further help on migrating to MX would be appreciated!

Re: Cumulus 1 migration to Cumulus MX

Posted: Wed 17 Mar 2021 8:38 pm
by SamiS
Just to be clear, @TwoTonTed are you trying to run CumulusMX on the same machine where you have Cumulus 1? Or on a different machine?

If the problem occurs on the one and same computer, then your locale (windows regional settings) have changed at some time on past. If this is the case, and your dayfile.txt has dates written on both 20/04/16 and 20-04-16 formats, the only way to migrate to MX is to repair the dayfile by editing it. Depending on the contents of the file it could be an easy "find and replace all" -task, but can't know for sure without looking inside the file.

However if we are dealing with 2 separate computers, then it should be enough to change the regional settings of the new computer running MX to similar date separator that is on the old computer running Cumulus 1.

Re: Cumulus 1 migration to Cumulus MX

Posted: Wed 17 Mar 2021 9:05 pm
by TwoTonTed
thanks, yes it is the same PC. While I do have laptops etc, it needs to be running on my main desktop system. So, I need to edit just the dayfile.txt file and all will be ok?

It's got over 2000 lines in it and I can see where the date format somehow changed between 17/04/16 to 18-04-16 thru to 03-08-16, and then 04/08/16 thru to the present day. I've really no idea how this happened, but I guess that's now largely irrelevant.

That's only just over 100 records which I could do by hand?

Am I on the right track?

Re: Cumulus 1 migration to Cumulus MX

Posted: Sat 20 Mar 2021 1:01 pm
by SamiS
Yes you are on the right track, correcting the dayfile is the most important step. There might be also wrongly formatted dates on some other logfiles from that time period, but if I remember correctly from my own locale issues, they did not prevent MX from running.

Editing by hand one line at time is probably not necessary. If I understood correctly, you could do find and replace on notepad like this:

Find -04-18 and replace all with /04/18, then
Find -05-18 and replace all with /05/18 etc...

If find and replace is new to you, practise with a backup copy first.

Re: Cumulus 1 migration to Cumulus MX

Posted: Sat 20 Mar 2021 2:58 pm
by TwoTonTed
thanks, but I still have to do this 100 times?! I think I'd need to be a programmer to test if date format is X then replace with Y to do it in one swoop?

Re: Cumulus 1 migration to Cumulus MX

Posted: Sat 20 Mar 2021 6:04 pm
by mcrossley
I'm pretty sure the "/" character will not be used anywhere but in your dates? (PLEASE CHECK!)

If so you can just to a global replace of "/" for "-" in your editor.

MAKE A BACKUP COPY of your original file somewhere safe so you can go back to it if things go wrong.

If all else fails, post the file here and someone will bulk edit it for you.

Re: Cumulus 1 migration to Cumulus MX

Posted: Sun 21 Mar 2021 6:28 pm
by SamiS
@mcrossley: If I read TwoTonTed's and your earlier posts correctly, the expected date format is with '/' and the erraneous entries are with '-' ? And a global replace of '-' with '/' would cause big problems with negative temperatures.

@TwoTonTed If you are editing with Windows Notepad, then you do: Edit -> Replace and fill the wrongly formatted string to "Find what:" and the corrected string to "Replace with". You can first click Find next, then Replace once to see that it makes correct adjustment, and then you can click Replace All to do the rest at one click. Of course you have to repeat this with all the four months, but a lot less than 100 times. :)

Edit. Just to be clear, leave the date part out as I previously wrote in my examples.

Re: Cumulus 1 migration to Cumulus MX

Posted: Mon 22 Mar 2021 9:21 am
by mcrossley
SamiS wrote: Sun 21 Mar 2021 6:28 pm @mcrossley: If I read TwoTonTed's and your earlier posts correctly, the expected date format is with '/' and the erraneous entries are with '-' ? And a global replace of '-' with '/' would cause big problems with negative temperatures.
Doh! Yes you are correct.

The real answer is to use a decent editor that supports regex search/replace ;)
Syntax varies, but VS Code would be...
Find= ^([\d]{2})-([\d]{2})-
Replace= $1/$2/

Re: Cumulus 1 migration to Cumulus MX

Posted: Mon 29 Mar 2021 10:53 pm
by TwoTonTed
will take another look when I've got a day to spare, but thanks again for your support!

Re: Cumulus 1 migration to Cumulus MX

Posted: Sun 04 Apr 2021 2:01 pm
by The PIT