Page 3 of 3

Re: SM-land codeplug (Sweden)

Posted: Mon Apr 08, 2024 6:34 pm
by SA0ASM
I think I've fixed the lat/long values in the script now, seems like the CPS import wants dots and isn't too happy with commas. Please try again!

73 de SA0ASM

Re: SM-land codeplug (Sweden)

Posted: Mon Apr 08, 2024 9:59 pm
by SA0BUX
SA0ASM wrote:
Mon Apr 08, 2024 6:34 pm
I think I've fixed the lat/long values in the script now, seems like the CPS import wants dots and isn't too happy with commas. Please try again!

73 de SA0ASM
What "Region Formats" do you have in Windows ?

In this new version that I pulled now I must use "English (United States)" , if I use "English (Sweden)" I'm getting an error on first row with a lat/long.

Code: Select all

501;SL0ZS Vastberga;Analogue;145.6000;145.0000;25;;;;;;;;123.0;123.0;Disabled;Master;No;No;No;0;Off;No;No;None;59.298;17.99
The old version which was a hybrid as it was semicolon separated but with periods in most fields except lat/long was posssible to import with "English (Sweden)"

Code: Select all

501;SL0ZS Vastberga;Analogue;145.6000;145.0000;25;;;;;;;;123.0;123.0;Disabled;Master;No;No;No;0;Off;No;No;None;59,298;17,99
I used sed -e 's/\./,/g' on the new variant and could import with "English (Sweden)"

Code: Select all

501;SL0ZS Vastberga;Analogue;145,6000;145,0000;25;;;;;;;;123,0;123,0;Disabled;Master;No;No;No;0;Off;No;No;None;59,298;17,99
Maybe we could have a flag that control the format ?

The "correct CSV output in "English (United States)" looks like below, but the tabs before frequency is not needed.

Code: Select all

501,SL0ZS Vastberga,Analogue,   145.60000,      145.00000,25,,,,,,,,123.0,123.0,Disabled,Master,No,No,No,0,Off,No,No,None,59.298,17.99