Cloudlog icon indicating copy to clipboard operation
Cloudlog copied to clipboard

[station_logbooks] Uploading to Clublog failed

Open m0urs opened this issue 1 year ago • 3 comments

With Version 2 I am no longer able to upload my QSOs to Clublog. I am using this URL

curl --silent https://cloudlog.urspringer.de/index.php/clublog/upload/dg3nab

There is no error message or other message while running this URL.

I assume something needs to be added to be compatible with the new station logbooks feature.

m0urs avatar Jul 03 '22 09:07 m0urs

Station Logbooks shouldn't have broken Clublog as it wouldn't even be looking for it or at least shouldn't be so needs further debugging

magicbug avatar Jul 03 '22 10:07 magicbug

I tried to do some debugging, however I do not have any knowledge about how this CodeIgniter stuff works ...

$clublog_info['user_name' is correctly set to "dg3nab"

However, it seems that "$station_profiles = $this->stations->all_with_count();" does not correctly return the station profiles. "$station_profiles->num_rows();" seems to be 0 and therefor the loop "foreach ($station_profiles->result() as $station_row)" is never executed.

I added the line

echo "station_profiles->num_rows() = ",$station_profiles->num_rows();

right after

$station_profiles = $this->stations->all_with_count();

which gives me

"station_profiles->num_rows() = 0"

m0urs avatar Jul 03 '22 12:07 m0urs

Perfect thanks for checking into it, I plan on ripping most of the Clublog code apart you might have spotted a new table for storing login info for third partys this will be used to assign a location to a station location and will allow it to work across multiple accounts rather than just the one with one PHP call.

It will also allow disabling of uploading if Clublog returns a login error so that their system doesn't block the IP address after too many calls :)

magicbug avatar Jul 03 '22 16:07 magicbug

This is probably fixed in station_logbooks. I rewrote the cron job a few days ago.

Now it loops through the users with a username and password set. Then QSOs are uploaded.

Just call it like this cloudlog-url/index.php/clublog/upload

AndreasK79 avatar Sep 19 '22 17:09 AndreasK79

I can confirm, that it is working for me. Thank you very much!

m0urs avatar Sep 22 '22 10:09 m0urs