myzinsky / cloudLogOffline

An App as Offline Frontend for CloudLog
GNU Lesser General Public License v3.0
17 stars 7 forks source link

SAT QSOs not uploaded correctly #55

Closed phl0 closed 2 years ago

phl0 commented 2 years ago

There is a bug obviously that puts SAT data into wrong ADIF tags during upload to cloudlog. The JSON POST request contains:

{"key":"abcdefg","station_profile_id":"1","type":"adif","string":"<call:5>DF2ET<station_callsign:5>DF2ET<band:0><mode:3>SSB<freq:15>10489700.000000<qso_date:8>20220601<time_on:6>061900<time_off:6>061900<rst_rcvd:2>59<rst_sent:2>59<sig:4>WWFF<sig_info:6>QO-100<country:0><qth:6>Bochum<gridsquare:6>JO31ol<name:7>Florian<comment:4>test<eor>"}

So SAT name is put into sig_info field (though WWFF is not enabled in this case).

The sqlite DB stores the info in the correct fields however.

id  call    name      ctry  date        time   freq      mode  sent  recv  grid    qqth    comm  ctss  ctsr  sync  sota  sots  satn    satm  wwff  wwfs
--  ------  --------  ----  ----------  -----  --------  ----  ----  ----  ------  ------  ----  ----  ----  ----  ----  ----  ------  ----  ----  ----
1   DF2ET   Florian         01.06.2022  06:19  10489700  SSB   59    59    JO31ol  Bochum  test              0                 QO-100                  
phl0 commented 2 years ago

ADIF export is correct:

<call:5>DF2ET<station_callsign:5>DF2ET<band:0><mode:3>SSB<freq:15>10489700.000000<qso_date:8>20220601<time_on:6>061900<time_off:6>061900<rst_rcvd:2>59<rst_sent:2>59<sat_name:6>QO-100<country:0><qth:6>Bochum<gridsquare:6>JO31ol<name:7>Florian<comment:4>test<eor>
phl0 commented 2 years ago

Found source for the issue. Fixed with https://github.com/phl0/cloudLogOffline/commit/b4a64a8599eae2b853beed77878b056514ddc388

phl0 commented 2 years ago

Fixed with https://github.com/myzinsky/cloudLogOffline/pull/56.