2024-02-26 17:42:46 +01:00
< ? php if ( ! defined ( 'BASEPATH' )) exit ( 'No direct script access allowed' );
2021-04-05 11:31:41 +01:00
2024-02-26 17:42:46 +01:00
class Debug extends CI_Controller
{
2024-03-22 15:50:54 +00:00
function __construct () {
parent :: __construct ();
2026-06-10 19:36:33 +02:00
if ( ! $this -> user_model -> authorize ( 99 )) {
2024-08-16 10:08:44 +02:00
$this -> session -> set_flashdata ( 'error' , __ ( " You're not allowed to do that! " ));
2024-03-22 15:50:54 +00:00
redirect ( 'dashboard' );
}
$this -> load -> library ( 'Permissions' );
}
/* User Facing Links to Backup URLs */
public function index () {
$this -> load -> helper ( 'file' );
$this -> load -> model ( 'Logbook_model' );
2024-04-23 13:34:30 +02:00
$this -> load -> model ( 'Debug_model' );
2024-03-22 15:50:54 +00:00
$this -> load -> model ( 'Stations' );
2024-04-26 17:43:58 +02:00
$this -> load -> model ( 'cron_model' );
2024-09-12 13:23:01 +02:00
$this -> load -> model ( 'Update_model' );
2024-03-22 15:50:54 +00:00
$footerData = [];
$footerData [ 'scripts' ] = [ 'assets/js/sections/debug.js' ];
2025-01-01 09:57:48 +01:00
// Get Custom Date format
if ( $this -> session -> userdata ( 'user_date_format' )) {
$custom_date_format = $this -> session -> userdata ( 'user_date_format' );
} else {
$custom_date_format = $this -> config -> item ( 'qso_date_format' );
}
$data [ 'system_time' ] = date ( $custom_date_format . " H:i:s " , time ());
2024-09-12 16:30:21 +02:00
$data [ 'running_version' ] = $this -> optionslib -> get_option ( 'version' );
$data [ 'latest_release' ] = $this -> optionslib -> get_option ( 'latest_release' );
2024-09-12 16:09:12 +02:00
2024-09-12 16:13:01 +02:00
$data [ 'newer_version_available' ] = false ;
2025-12-23 22:13:44 +01:00
if ( function_exists ( 'curl_version' )) {
if ( ! $this -> config -> item ( 'disable_version_check' ) ? ? false ) {
$this -> Update_model -> update_check ( true );
if ( $data [ 'latest_release' ] && version_compare ( $data [ 'latest_release' ], $data [ 'running_version' ], '>' )) {
$data [ 'newer_version_available' ] = true ;
}
2024-09-12 16:13:01 +02:00
}
2024-09-12 13:23:01 +02:00
}
2024-03-22 15:50:54 +00:00
$data [ 'stations' ] = $this -> Stations -> all ();
2024-04-23 13:34:30 +02:00
$data [ 'qso_total' ] = $this -> Debug_model -> count_all_qso ();
2024-09-16 00:57:27 +02:00
$data [ 'users_total' ] = $this -> Debug_model -> count_users ();
2024-06-07 02:35:59 +02:00
$data [ 'available_languages' ] = $this -> config -> item ( 'languages' );
2024-03-22 15:50:54 +00:00
$data [ 'qsos_with_no_station_id' ] = $this -> Logbook_model -> check_for_station_id ();
if ( $data [ 'qsos_with_no_station_id' ]) {
2024-04-23 13:39:15 +02:00
$data [ 'calls_wo_sid' ] = $this -> Debug_model -> calls_without_station_id ();
2024-03-22 15:50:54 +00:00
}
2024-08-01 17:01:46 +02:00
// get mig version from database
2024-04-23 13:34:30 +02:00
$data [ 'migration_version' ] = $this -> Debug_model -> getMigrationVersion ();
2024-03-22 15:50:54 +00:00
2024-08-01 17:01:46 +02:00
// get mig version from config file
$this -> load -> config ( 'migration' );
$data [ 'migration_config' ] = $this -> config -> item ( 'migration_version' );
2024-08-06 11:02:55 +02:00
$data [ 'migration_lockfile' ] = $this -> config -> item ( 'migration_lockfile' );
$data [ 'miglock_lifetime' ] = $this -> config -> item ( 'migration_lf_maxage' );
2024-08-01 17:01:46 +02:00
// compare mig versions
2024-08-06 11:02:55 +02:00
if ( $data [ 'migration_version' ] != $data [ 'migration_config' ] && file_exists ( $data [ 'migration_lockfile' ])) {
2024-08-01 17:01:46 +02:00
$data [ 'migration_is_uptodate' ] = false ;
} else {
$data [ 'migration_is_uptodate' ] = true ;
}
2024-03-22 15:50:54 +00:00
// Test writing to backup folder
$backup_folder = $this -> permissions -> is_really_writable ( 'backup' );
$data [ 'backup_folder' ] = $backup_folder ;
2024-07-10 17:35:48 +02:00
// Test writing to cache folder
$cache_folder = $this -> permissions -> is_really_writable ( 'application/cache' );
$data [ 'cache_folder' ] = $cache_folder ;
2024-03-22 15:50:54 +00:00
// Test writing to updates folder
$updates_folder = $this -> permissions -> is_really_writable ( 'updates' );
$data [ 'updates_folder' ] = $updates_folder ;
// Test writing to uploads folder
$uploads_folder = $this -> permissions -> is_really_writable ( 'uploads' );
$data [ 'uploads_folder' ] = $uploads_folder ;
// Check if userdata config is enabled
$userdata_enabled = $this -> config -> item ( 'userdata' );
$data [ 'userdata_enabled' ] = $userdata_enabled ;
if ( isset ( $userdata_enabled )) {
// Test writing to userdata folder if option is enabled
$userdata_folder = $this -> permissions -> is_really_writable ( 'userdata' );
$data [ 'userdata_folder' ] = $userdata_folder ;
// run the status check and return the array to the view
$userdata_status = $this -> check_userdata_status ( $userdata_folder );
$data [ 'userdata_status' ] = $userdata_status ;
}
2026-02-02 11:39:51 +01:00
// Cache Info
2026-02-02 13:58:20 +01:00
$cache_info = $this -> Debug_model -> get_cache_info ();
2026-02-02 13:37:06 +01:00
$data [ 'cache_available_adapters' ] = $cache_info [ 'adapters' ];
$data [ 'cache_path' ] = $cache_info [ 'config' ][ 'cache_path' ] ? : 'application/cache' ;
2026-02-20 16:56:27 +01:00
$data [ 'cache_adapter' ] = strtolower ( $cache_info [ 'config' ][ 'cache_adapter' ] ? ? 'file' );
2026-02-23 07:07:26 +01:00
$data [ 'cache_backup' ] = strtolower ( $cache_info [ 'config' ][ 'cache_backup' ] ? ? 'file' );
2026-02-02 13:37:06 +01:00
$data [ 'cache_key_prefix' ] = $cache_info [ 'config' ][ 'cache_key_prefix' ] ? : __ ( " (empty) " );
2026-02-20 16:56:27 +01:00
$data [ 'active_adapter' ] = strtolower ( $cache_info [ 'active' ][ 'adapter' ] ? ? ( $cache_info [ 'config' ][ 'cache_adapter' ] ? ? 'file' ));
2026-02-02 13:37:06 +01:00
$data [ 'using_backup' ] = ! empty ( $cache_info [ 'active' ][ 'using_backup' ]);
$data [ 'details_cache_size' ] = $cache_info [ 'details' ][ 'size' ] ? ? '0 B' ;
$data [ 'details_cache_keys_count' ] = $cache_info [ 'details' ][ 'keys_count' ] ? ? 0 ;
2024-04-26 17:43:58 +02:00
$data [ 'dxcc_update' ] = $this -> cron_model -> cron ( 'update_dxcc' ) -> row ();
$data [ 'dok_update' ] = $this -> cron_model -> cron ( 'update_update_dok' ) -> row ();
$data [ 'lotw_user_update' ] = $this -> cron_model -> cron ( 'update_lotw_users' ) -> row ();
$data [ 'pota_update' ] = $this -> cron_model -> cron ( 'update_update_pota' ) -> row ();
2026-08-10 10:15:53 +00:00
$data [ 'pota_boundaries_update' ] = $this -> cron_model -> cron ( 'update_pota_boundaries' ) -> row ();
2024-04-26 17:43:58 +02:00
$data [ 'scp_update' ] = $this -> cron_model -> cron ( 'update_update_clublog_scp' ) -> row ();
$data [ 'sota_update' ] = $this -> cron_model -> cron ( 'update_update_sota' ) -> row ();
$data [ 'wwff_update' ] = $this -> cron_model -> cron ( 'update_update_wwff' ) -> row ();
2024-12-07 20:04:28 +01:00
$data [ 'tle_update' ] = $this -> cron_model -> cron ( 'update_update_tle' ) -> row ();
2025-03-23 08:35:45 +00:00
$data [ 'hon_update' ] = $this -> cron_model -> cron ( 'update_update_hamsofnote' ) -> row ();
2025-09-22 20:17:17 +02:00
$data [ 'hamqsl_update' ] = $this -> cron_model -> cron ( 'update_update_hamqsl' ) -> row ();
2025-10-19 08:12:11 +02:00
$data [ 'vucc_grids_update' ] = $this -> cron_model -> cron ( 'vucc_grid_file' ) -> row ();
2024-04-26 17:43:58 +02:00
2024-06-08 11:01:59 +02:00
$data [ 'page_title' ] = __ ( " Debug " );
2024-03-22 15:50:54 +00:00
2026-07-10 12:46:58 +02:00
$this -> load -> library ( 'worker' );
$data [ 'worker_status_topic' ] = '' ;
$data [ 'worker_status_token' ] = '' ;
$data [ 'worker_enabled' ] = $this -> worker -> is_enabled ();
$urls = $this -> config -> item ( 'worker_urls' , 'worker' );
$data [ 'worker_nodes_total' ] = is_array ( $urls ) ? count ( $urls ) : 0 ;
if ( $data [ 'worker_enabled' ] && $this -> worker -> client_url () !== '' ) {
$debug_topic = 'worker.status' ;
$data [ 'worker_status_topic' ] = $debug_topic ;
$data [ 'worker_status_token' ] = $this -> worker -> create_token ( $debug_topic );
2026-07-13 09:16:42 +02:00
$this -> worker -> register_topic ( $debug_topic , $data [ 'worker_status_token' ]);
2026-07-10 12:46:58 +02:00
}
2024-03-22 15:50:54 +00:00
$this -> load -> view ( 'interface_assets/header' , $data );
$this -> load -> view ( 'debug/index' );
$this -> load -> view ( 'interface_assets/footer' , $footerData );
}
function check_userdata_status ( $userdata_folder ) {
$this -> load -> model ( 'debug_model' );
$status = array ();
// Check if the folder is writable
if ( $userdata_folder === true ) {
// Check if the qsl and eqsl folders are accessible and if there is any data the user could migrate
$qsl_dir = $this -> permissions -> is_really_writable ( 'assets/qslcard' );
$eqsl_dir = $this -> permissions -> is_really_writable ( 'images/eqsl_card_images' );
$flag_file = $this -> debug_model -> check_migrated_flag ();
if ( $qsl_dir && $eqsl_dir ) {
// Check for content of the qsl card folder other than *.html files
$qsl_files = glob ( 'assets/qslcard/*' );
$qsl_files_filtered = array_filter ( $qsl_files , function ( $file ) {
return ! is_dir ( $file ) && pathinfo ( $file , PATHINFO_EXTENSION ) !== 'html' ;
});
// Check for content of the eqsl card folder other than *.html files
$eqsl_files = glob ( 'images/eqsl_card_images/*' );
$eqsl_files_filtered = array_filter ( $eqsl_files , function ( $file ) {
return ! is_dir ( $file ) && pathinfo ( $file , PATHINFO_EXTENSION ) !== 'html' ;
});
// Set the status info
if ( ! empty ( $qsl_files_filtered ) || ! empty ( $eqsl_files_filtered )) {
if ( ! $flag_file ) {
$status [ 'btn_class' ] = '' ;
2024-07-11 17:50:55 +02:00
$status [ 'btn_text' ] = __ ( " Migrate data now " );
2024-03-22 15:50:54 +00:00
} else {
$status [ 'btn_class' ] = '' ;
2024-07-11 17:50:55 +02:00
$status [ 'btn_text' ] = __ ( " Migration already done. Run again? " );
2024-03-22 15:50:54 +00:00
}
} else {
$status [ 'btn_class' ] = 'disabled' ;
2024-07-11 17:50:55 +02:00
$status [ 'btn_text' ] = __ ( " No data to migrate " );
2024-03-22 15:50:54 +00:00
}
} else {
$status [ 'btn_class' ] = 'disabled' ;
2024-07-11 17:50:55 +02:00
$status [ 'btn_text' ] = __ ( " No migration possible " );
2024-03-22 15:50:54 +00:00
}
} else {
// If the folder is not writable, we don't need to continue
$status [ 'btn_class' ] = 'disabled' ;
2024-07-11 17:50:55 +02:00
$status [ 'btn_text' ] = __ ( " No migration possible " );
2024-03-22 15:50:54 +00:00
}
return $status ;
}
public function reassign () {
$this -> load -> model ( 'Logbook_model' );
$this -> load -> model ( 'Stations' );
$call = xss_clean (( $this -> input -> post ( 'call' )));
$qsoids = xss_clean (( $this -> input -> post ( 'qsoids' )));
2026-07-11 17:45:05 +02:00
$station_profile_id = xss_clean (( $this -> input -> post ( 'station_id' ) ? ? 0 ));
2024-03-22 15:50:54 +00:00
2026-07-11 17:49:35 +02:00
log_message ( 'debug' , 'station_profile_id: ' . $station_profile_id );
2024-03-22 15:50:54 +00:00
// Check if target-station-id exists
$allowed = false ;
$status = false ;
$stations = $this -> Stations -> all ();
foreach ( $stations -> result () as $station ) {
if ( $station -> station_id == $station_profile_id ) {
$allowed = true ;
}
}
if ( $allowed ) {
$status = $this -> Logbook_model -> update_station_ids ( $station_profile_id , $call , $qsoids );
} else {
$status = false ;
}
header ( 'Content-Type: application/json' );
echo json_encode ( array ( 'status' => $status ));
return ;
}
2024-04-23 13:34:30 +02:00
public function selfupdate () {
2024-07-14 19:56:33 +02:00
$stashfile = realpath ( APPPATH . '../' ) . '/.updater' ;
$maintenancefile = realpath ( APPPATH . '../' ) . '/.maintenance' ;
2024-07-30 21:15:16 +02:00
if ( function_usable ( 'exec' )) {
if ( file_exists ( '.git' )) {
try {
// enter maintenance mode
exec ( 'touch ' . $maintenancefile );
log_message ( 'debug' , 'Updater: Entered Maintenance mode by creating .maintenance file' );
// we need atleast one file which gets stashed. this file should NOT be in .gitignore
exec ( 'touch ' . $stashfile );
log_message ( 'debug' , 'Updater: Created stashfile' );
// stash everything else
exec ( 'git stash push --include-untracked' );
log_message ( 'debug' , 'Updater: Stash everything' );
// perform the pull
exec ( 'git fetch' );
exec ( 'git pull' );
log_message ( 'debug' , 'Updater: git fetch and git pull' );
// we can now pop all other changes
exec ( 'git stash pop' );
log_message ( 'debug' , 'Updater: Pop stashed changes' );
// Show success message
$this -> session -> set_flashdata ( 'success' , __ ( " Wavelog was updated successfully! " ));
2024-12-07 20:04:28 +01:00
2024-07-30 21:15:16 +02:00
} catch ( \Throwable $th ) {
log_message ( " Error " , " Error at selfupdating " );
}
2024-03-22 15:50:54 +00:00
}
2024-07-30 21:15:16 +02:00
// delete the stash file
if ( file_exists ( $stashfile )) {
exec ( 'rm ' . $stashfile );
log_message ( 'debug' , 'Updater: Delete stashfile' );
}
// exit maintenance mode
if ( file_exists ( $maintenancefile )) {
exec ( 'rm ' . $maintenancefile );
log_message ( 'debug' , 'Updater: Delete .maintenance file to exit Maintenance Mode' );
}
} else {
log_message ( 'error' , 'function exec() not available. Debug Controller selfupdate()' );
$this -> session -> set_flashdata ( 'error' , __ ( " Selfupdate() not available. Check the Error Log. " ));
2024-07-14 19:56:33 +02:00
}
2024-03-22 15:50:54 +00:00
redirect ( 'debug' );
}
2026-07-11 17:45:50 +02:00
private function git_usable () {
if ( ! function_usable ( 'exec' )) {
return false ;
}
if ( ! is_dir ( FCPATH . '.git' )) {
return false ;
}
exec ( 'command -v git 2>/dev/null' , $out , $ret );
return $ret === 0 && ! empty ( $out );
}
2024-03-25 06:06:02 +00:00
public function wavelog_fetch () {
2026-07-11 17:45:05 +02:00
$versions = [];
2026-07-11 17:45:50 +02:00
if ( $this -> git_usable ()) {
2024-07-30 21:15:16 +02:00
try {
2026-07-11 17:45:50 +02:00
$st = exec ( 'git fetch 2>/dev/null' ); // Fetch latest things from Repo. ONLY Fetch. Doesn't hurt since it isn't a pull!
$versions [ 'branch' ] = trim ( exec ( 'git rev-parse --abbrev-ref HEAD 2>/dev/null' )); // Get ONLY Name of the Branch we're on
$versions [ 'latest_commit_hash' ] = substr ( trim ( exec ( 'git log --pretty="%H" -n1 origin' . '/' . $versions [ 'branch' ] . ' 2>/dev/null' )), 0 , 8 ); // fetch latest commit-hash from repo
2024-07-30 21:15:16 +02:00
} catch ( Exception $e ) {
$versions [ 'latest_commit_hash' ] = '' ;
$versions [ 'branch' ] = '' ;
}
} else {
2026-07-11 17:45:50 +02:00
log_message ( 'debug' , 'wavelog_fetch() skipped: git not usable (no git binary or not a checkout).' );
2024-03-25 06:06:02 +00:00
}
header ( 'Content-Type: application/json' );
echo json_encode ( $versions );
}
2024-03-24 15:22:25 +01:00
public function wavelog_version () {
2026-07-11 17:45:05 +02:00
$commit_hash = '' ;
2026-07-11 17:45:50 +02:00
if ( $this -> git_usable ()) {
$commit_hash = substr ( trim ( exec ( 'git log --pretty="%H" -n1 HEAD 2>/dev/null' )), 0 , 8 ); // Get latest LOCAL Hash
2024-07-30 21:15:16 +02:00
} else {
2026-07-11 17:45:50 +02:00
log_message ( 'debug' , 'wavelog_version() skipped: git not usable (no git binary or not a checkout).' );
2024-07-30 21:15:16 +02:00
}
2024-03-24 16:53:09 +01:00
header ( 'Content-Type: application/json' );
2024-03-25 06:06:02 +00:00
echo json_encode ( $commit_hash );
2024-03-24 15:22:25 +01:00
}
2024-03-22 15:50:54 +00:00
2026-02-02 11:39:51 +01:00
public function clear_cache () {
$this -> load -> model ( 'Debug_model' );
$status = $this -> Debug_model -> clear_cache ();
header ( 'Content-Type: application/json' );
echo json_encode ([ 'status' => ( bool ) $status ]);
return ;
}
2024-03-22 15:50:54 +00:00
public function migrate_userdata () {
2026-02-02 16:27:26 +01:00
$this -> load -> model ( 'debug_model' );
$migrate = $this -> debug_model -> migrate_userdata ();
2024-03-22 15:50:54 +00:00
2026-02-02 16:27:26 +01:00
if ( $migrate == true ) {
2026-04-01 12:25:50 +02:00
$this -> session -> set_flashdata ( 'success' , __ ( " File Migration was successful, but please check also manually. If everything seems right you can delete the folders 'assets/qslcard' and 'images/eqsl_card_images'. " ));
2026-02-02 16:27:26 +01:00
redirect ( 'debug' );
} else {
$this -> session -> set_flashdata ( 'error' , __ ( " File Migration failed. Please check the Error Log. " ));
redirect ( 'debug' );
2024-03-22 15:50:54 +00:00
}
}
New Wavelog Contesting and Basics for Wavelog Worker (#3063)
* initial commit for new contesting in Wavelog
* implemented cache buster to match logic from upstream dev branch
* refactore data-store to idb since this will be much faster with a lot of QSOs (scale for the future)
* implementation of other exchange types (wip)
* updated migration version
* renamed mig
* renamed mig
* updated mig
* ESC Handler to reset form
* Add Websocket
* stretch maxDuration warning
We can stretch the maxDuration warning to 2 seconds to allow for more network latency and processing time. The heartbeat is protected against multiple parallel requests, so we can afford to be more lenient with the duration before showing a warning. This should help reduce false positives in environments with higher latency or slower processing.
* worked before warning in qso form
While input the logic checks in the qso list if the callisgn already exists on the same band and mode.
* translations
* fix band buttons
* updated migration after release 2.4.2
* Fixing create new contest, add clubstation permission check, add time check to contests
* Adding attach QSO to Contest
* Remove redundant clubstation checks
* Fix function tip
* Remove time check when launch contest
* Fixing contest attach main logbook, adding detach contest qso
* Enable clubstation contest QSO detach attach
* add space handler for callsign input
* set rst default to 599 for cw, 59 for others
* add grid and refactor some ui to make a better fitting here and there
* adjust tabindex
* add "copy exchange to" feature
* fix css for all themes
* adif and cbr export
* fix bug with wrong operator callsign
* add exchange type "exchange+grid"
* introduce new logic for exchangetypes and more flexible order selection
* fix broken qso list scroll
* legacy import feature
* more precise wording
* feat: inline editing of QSOs by double click in the QSO list
* redirect cabrillo to contesting manager
* Fix QSO permission check
* remove unused cabrillo stuff
* remove duplicate function
* fix check if worked before on band change
tnx to @int2001
* fix flash message for legacy importer
* make dropdown searchable and place "other" at the top
* add hint about "Other" contest
* avoid "flash" of winkeyer settings in qso logging, it shows up if cw is set as mode
* winkeyer for the new contesting
need proper testing by @AndreasK79 and @phl0 since I don't have a winkeyer myself. I tested with a python simulator...
* english comments
* proper singular/plural
* fix dropdown
* preselect active station location
* allow editing time aswell
* fix fontsize in radio buttons
* remove redundant qso count query
* cache last updated value for contest qsos to reduce db load
* index on user id
* cache also qso count
* you can now resize windows also on the edges
requested by @xyz667 in https://github.com/wavelog/wavelog/pull/3063#issuecomment-4557850867
* fix oversized clock
* click to prepare logging for contesting
Logic:
- if qso windows is open, call is sent to qso form
- if contest log is open, call is sent to contest log
- if both are open, call is sent to contest log
- if none is open, click opens qso form and call is sent to qso form
* handle exchange s prefill with data from the last qso and make exchange always uppercase
* add dropdown to qso list with option to delete qsos
* language fixes
* english comments
* center text
* fix missing dropdown on new qsos
* add date presets for contest session creator/editor
* basic worker implementation
* support multiple workers for clustering
* remove unnecessary node column
* simple availability check
* websocket for contesting
* bonus: add vip for visibilty in debug view
* use vip if available
* worker disabled in debug view if disabled in config
* racecondition for winkeyer breaks edit/delete dropdown
* racecondition for winkeyer breaks edit/delete dropdown
* qso handling for worker in contesting, no high interval heartbeat anymore
* clear heartbeat intervall
* fix some timing bugs
* remove dedicated worker controller as it's not needed
* handle whitespace
* trigger sync engine after processing QSO sync response and adjust last sync time to avoid spurious resyncs
* fix set and setLocal
* fix change detection and sync logic
* fix the lost of seconds due to edit
* fix table rendering
* watermark handling for true delta
* remove caching as it brings more problems here as benefits
* make serial as default exchangetype
* Add clarification on cluster setup requirements for worker URLs
* add operator to qso list if this is a clubstation
* fix bug for editing qsos in clubmode
* remove redundant code
* integers must be null in database
* fix bug in tabindex if 3 exchangefields are configured (serial, exchange, grid)
* nice contesting map (draft)
* map autofit
* add grid overlay
* calculate distanz and azimuth
* include rotor control via waveloggate (ws only)
* implement simple dedicated callbook lookup
* simpler and faster lookup
* option in contest session to disabled callbook lookup and only calculate dxcc
* syntax issue
* fix bug in CBR export
* catch empty result on contest
* remove some leftovers
* removed some comments
* remove unused stuff
* removed old todos/comments
* add 4s timeout for ajax transport
* you need to be admin for this
* translations
* add option to delete qso's aswell when deleting a session (opt in)
* add quickstart button in manager
* removed old todo
* fix "grows to bottom"
* disable "copy exchange to" if no exchange is set
* clear map on qso clear aswell
* same for scp
* updated documentation link
* calculate distanze and azimut also on grid only
* better space usage in qso input
* callbook db first approach, online lookup can be disabled while being cached for all users when enabled
* some input validation
* use only one sot for qrgtoband
* basic stats component
* fix html encoding
* render all aswell
* ascii
* store locally which time frame the user wants
* sync settings and warn user if something happend on the backend
* dev leftover
* show errors if callbook fails or callsign is invalid
* easier syntax
* Revert "easier syntax" - that was a mistake
This reverts commit 80c75dbf1e6c832f8d0616ea56b8b55d96c36418.
* fix for callbook lookup
* make pathline more visible
* better visibility of qsos
* add classic coordinates bar to the map
* fix bug in stats
* stretch max duration to 4s.. just in case
* simple sanity check in js to prevent unnecessary callbook lookups
* simulate tab after filling the call from scp
* fix poll radios with enabled worker
* reset po/mo files back to upstream/dev
* split contest exports, add back reg1test edi format
* keep the menu item but redirect to contesting
* better syntax and bugfix
* break it down further and fix typo ("constraint")
* use monospace font for input fields
* fix: in worker driven mode we need to do the heartbeat also on not focused windows otherwise we loose this contact
* fix: error handling on invalid times
* wavelog Ø
* more styling
* band lowercase fix
* Other is not a very descriptive title for a contest logger window, so we rename it to "Contest"
* custom contest name
* compare the whole array instead just a few settings
---------
Co-authored-by: int2001 <joerg@dj7nt.de>
Co-authored-by: HadleySo <71105018+HadleySo@users.noreply.github.com>
Co-authored-by: DB4SCW <dev@db4scw.de>
2026-06-14 14:23:00 +02:00
/**
* Returns a simple status summary for the Debug page ( no secret required ,
* but only accessible to logged - in admin users via AJAX ) .
*/
public function worker_status () {
header ( 'Content-Type: application/json' );
if ( ! $this -> user_model -> authorize ( 2 )) {
http_response_code ( 403 );
echo json_encode ([ 'success' => false ]);
return ;
}
2026-07-17 11:50:11 +02:00
$this -> load -> library ( 'worker' );
$status = $this -> worker -> status ();
New Wavelog Contesting and Basics for Wavelog Worker (#3063)
* initial commit for new contesting in Wavelog
* implemented cache buster to match logic from upstream dev branch
* refactore data-store to idb since this will be much faster with a lot of QSOs (scale for the future)
* implementation of other exchange types (wip)
* updated migration version
* renamed mig
* renamed mig
* updated mig
* ESC Handler to reset form
* Add Websocket
* stretch maxDuration warning
We can stretch the maxDuration warning to 2 seconds to allow for more network latency and processing time. The heartbeat is protected against multiple parallel requests, so we can afford to be more lenient with the duration before showing a warning. This should help reduce false positives in environments with higher latency or slower processing.
* worked before warning in qso form
While input the logic checks in the qso list if the callisgn already exists on the same band and mode.
* translations
* fix band buttons
* updated migration after release 2.4.2
* Fixing create new contest, add clubstation permission check, add time check to contests
* Adding attach QSO to Contest
* Remove redundant clubstation checks
* Fix function tip
* Remove time check when launch contest
* Fixing contest attach main logbook, adding detach contest qso
* Enable clubstation contest QSO detach attach
* add space handler for callsign input
* set rst default to 599 for cw, 59 for others
* add grid and refactor some ui to make a better fitting here and there
* adjust tabindex
* add "copy exchange to" feature
* fix css for all themes
* adif and cbr export
* fix bug with wrong operator callsign
* add exchange type "exchange+grid"
* introduce new logic for exchangetypes and more flexible order selection
* fix broken qso list scroll
* legacy import feature
* more precise wording
* feat: inline editing of QSOs by double click in the QSO list
* redirect cabrillo to contesting manager
* Fix QSO permission check
* remove unused cabrillo stuff
* remove duplicate function
* fix check if worked before on band change
tnx to @int2001
* fix flash message for legacy importer
* make dropdown searchable and place "other" at the top
* add hint about "Other" contest
* avoid "flash" of winkeyer settings in qso logging, it shows up if cw is set as mode
* winkeyer for the new contesting
need proper testing by @AndreasK79 and @phl0 since I don't have a winkeyer myself. I tested with a python simulator...
* english comments
* proper singular/plural
* fix dropdown
* preselect active station location
* allow editing time aswell
* fix fontsize in radio buttons
* remove redundant qso count query
* cache last updated value for contest qsos to reduce db load
* index on user id
* cache also qso count
* you can now resize windows also on the edges
requested by @xyz667 in https://github.com/wavelog/wavelog/pull/3063#issuecomment-4557850867
* fix oversized clock
* click to prepare logging for contesting
Logic:
- if qso windows is open, call is sent to qso form
- if contest log is open, call is sent to contest log
- if both are open, call is sent to contest log
- if none is open, click opens qso form and call is sent to qso form
* handle exchange s prefill with data from the last qso and make exchange always uppercase
* add dropdown to qso list with option to delete qsos
* language fixes
* english comments
* center text
* fix missing dropdown on new qsos
* add date presets for contest session creator/editor
* basic worker implementation
* support multiple workers for clustering
* remove unnecessary node column
* simple availability check
* websocket for contesting
* bonus: add vip for visibilty in debug view
* use vip if available
* worker disabled in debug view if disabled in config
* racecondition for winkeyer breaks edit/delete dropdown
* racecondition for winkeyer breaks edit/delete dropdown
* qso handling for worker in contesting, no high interval heartbeat anymore
* clear heartbeat intervall
* fix some timing bugs
* remove dedicated worker controller as it's not needed
* handle whitespace
* trigger sync engine after processing QSO sync response and adjust last sync time to avoid spurious resyncs
* fix set and setLocal
* fix change detection and sync logic
* fix the lost of seconds due to edit
* fix table rendering
* watermark handling for true delta
* remove caching as it brings more problems here as benefits
* make serial as default exchangetype
* Add clarification on cluster setup requirements for worker URLs
* add operator to qso list if this is a clubstation
* fix bug for editing qsos in clubmode
* remove redundant code
* integers must be null in database
* fix bug in tabindex if 3 exchangefields are configured (serial, exchange, grid)
* nice contesting map (draft)
* map autofit
* add grid overlay
* calculate distanz and azimuth
* include rotor control via waveloggate (ws only)
* implement simple dedicated callbook lookup
* simpler and faster lookup
* option in contest session to disabled callbook lookup and only calculate dxcc
* syntax issue
* fix bug in CBR export
* catch empty result on contest
* remove some leftovers
* removed some comments
* remove unused stuff
* removed old todos/comments
* add 4s timeout for ajax transport
* you need to be admin for this
* translations
* add option to delete qso's aswell when deleting a session (opt in)
* add quickstart button in manager
* removed old todo
* fix "grows to bottom"
* disable "copy exchange to" if no exchange is set
* clear map on qso clear aswell
* same for scp
* updated documentation link
* calculate distanze and azimut also on grid only
* better space usage in qso input
* callbook db first approach, online lookup can be disabled while being cached for all users when enabled
* some input validation
* use only one sot for qrgtoband
* basic stats component
* fix html encoding
* render all aswell
* ascii
* store locally which time frame the user wants
* sync settings and warn user if something happend on the backend
* dev leftover
* show errors if callbook fails or callsign is invalid
* easier syntax
* Revert "easier syntax" - that was a mistake
This reverts commit 80c75dbf1e6c832f8d0616ea56b8b55d96c36418.
* fix for callbook lookup
* make pathline more visible
* better visibility of qsos
* add classic coordinates bar to the map
* fix bug in stats
* stretch max duration to 4s.. just in case
* simple sanity check in js to prevent unnecessary callbook lookups
* simulate tab after filling the call from scp
* fix poll radios with enabled worker
* reset po/mo files back to upstream/dev
* split contest exports, add back reg1test edi format
* keep the menu item but redirect to contesting
* better syntax and bugfix
* break it down further and fix typo ("constraint")
* use monospace font for input fields
* fix: in worker driven mode we need to do the heartbeat also on not focused windows otherwise we loose this contact
* fix: error handling on invalid times
* wavelog Ø
* more styling
* band lowercase fix
* Other is not a very descriptive title for a contest logger window, so we rename it to "Contest"
* custom contest name
* compare the whole array instead just a few settings
---------
Co-authored-by: int2001 <joerg@dj7nt.de>
Co-authored-by: HadleySo <71105018+HadleySo@users.noreply.github.com>
Co-authored-by: DB4SCW <dev@db4scw.de>
2026-06-14 14:23:00 +02:00
2026-07-17 11:50:11 +02:00
if ( ! $status [ 'enabled' ]) {
New Wavelog Contesting and Basics for Wavelog Worker (#3063)
* initial commit for new contesting in Wavelog
* implemented cache buster to match logic from upstream dev branch
* refactore data-store to idb since this will be much faster with a lot of QSOs (scale for the future)
* implementation of other exchange types (wip)
* updated migration version
* renamed mig
* renamed mig
* updated mig
* ESC Handler to reset form
* Add Websocket
* stretch maxDuration warning
We can stretch the maxDuration warning to 2 seconds to allow for more network latency and processing time. The heartbeat is protected against multiple parallel requests, so we can afford to be more lenient with the duration before showing a warning. This should help reduce false positives in environments with higher latency or slower processing.
* worked before warning in qso form
While input the logic checks in the qso list if the callisgn already exists on the same band and mode.
* translations
* fix band buttons
* updated migration after release 2.4.2
* Fixing create new contest, add clubstation permission check, add time check to contests
* Adding attach QSO to Contest
* Remove redundant clubstation checks
* Fix function tip
* Remove time check when launch contest
* Fixing contest attach main logbook, adding detach contest qso
* Enable clubstation contest QSO detach attach
* add space handler for callsign input
* set rst default to 599 for cw, 59 for others
* add grid and refactor some ui to make a better fitting here and there
* adjust tabindex
* add "copy exchange to" feature
* fix css for all themes
* adif and cbr export
* fix bug with wrong operator callsign
* add exchange type "exchange+grid"
* introduce new logic for exchangetypes and more flexible order selection
* fix broken qso list scroll
* legacy import feature
* more precise wording
* feat: inline editing of QSOs by double click in the QSO list
* redirect cabrillo to contesting manager
* Fix QSO permission check
* remove unused cabrillo stuff
* remove duplicate function
* fix check if worked before on band change
tnx to @int2001
* fix flash message for legacy importer
* make dropdown searchable and place "other" at the top
* add hint about "Other" contest
* avoid "flash" of winkeyer settings in qso logging, it shows up if cw is set as mode
* winkeyer for the new contesting
need proper testing by @AndreasK79 and @phl0 since I don't have a winkeyer myself. I tested with a python simulator...
* english comments
* proper singular/plural
* fix dropdown
* preselect active station location
* allow editing time aswell
* fix fontsize in radio buttons
* remove redundant qso count query
* cache last updated value for contest qsos to reduce db load
* index on user id
* cache also qso count
* you can now resize windows also on the edges
requested by @xyz667 in https://github.com/wavelog/wavelog/pull/3063#issuecomment-4557850867
* fix oversized clock
* click to prepare logging for contesting
Logic:
- if qso windows is open, call is sent to qso form
- if contest log is open, call is sent to contest log
- if both are open, call is sent to contest log
- if none is open, click opens qso form and call is sent to qso form
* handle exchange s prefill with data from the last qso and make exchange always uppercase
* add dropdown to qso list with option to delete qsos
* language fixes
* english comments
* center text
* fix missing dropdown on new qsos
* add date presets for contest session creator/editor
* basic worker implementation
* support multiple workers for clustering
* remove unnecessary node column
* simple availability check
* websocket for contesting
* bonus: add vip for visibilty in debug view
* use vip if available
* worker disabled in debug view if disabled in config
* racecondition for winkeyer breaks edit/delete dropdown
* racecondition for winkeyer breaks edit/delete dropdown
* qso handling for worker in contesting, no high interval heartbeat anymore
* clear heartbeat intervall
* fix some timing bugs
* remove dedicated worker controller as it's not needed
* handle whitespace
* trigger sync engine after processing QSO sync response and adjust last sync time to avoid spurious resyncs
* fix set and setLocal
* fix change detection and sync logic
* fix the lost of seconds due to edit
* fix table rendering
* watermark handling for true delta
* remove caching as it brings more problems here as benefits
* make serial as default exchangetype
* Add clarification on cluster setup requirements for worker URLs
* add operator to qso list if this is a clubstation
* fix bug for editing qsos in clubmode
* remove redundant code
* integers must be null in database
* fix bug in tabindex if 3 exchangefields are configured (serial, exchange, grid)
* nice contesting map (draft)
* map autofit
* add grid overlay
* calculate distanz and azimuth
* include rotor control via waveloggate (ws only)
* implement simple dedicated callbook lookup
* simpler and faster lookup
* option in contest session to disabled callbook lookup and only calculate dxcc
* syntax issue
* fix bug in CBR export
* catch empty result on contest
* remove some leftovers
* removed some comments
* remove unused stuff
* removed old todos/comments
* add 4s timeout for ajax transport
* you need to be admin for this
* translations
* add option to delete qso's aswell when deleting a session (opt in)
* add quickstart button in manager
* removed old todo
* fix "grows to bottom"
* disable "copy exchange to" if no exchange is set
* clear map on qso clear aswell
* same for scp
* updated documentation link
* calculate distanze and azimut also on grid only
* better space usage in qso input
* callbook db first approach, online lookup can be disabled while being cached for all users when enabled
* some input validation
* use only one sot for qrgtoband
* basic stats component
* fix html encoding
* render all aswell
* ascii
* store locally which time frame the user wants
* sync settings and warn user if something happend on the backend
* dev leftover
* show errors if callbook fails or callsign is invalid
* easier syntax
* Revert "easier syntax" - that was a mistake
This reverts commit 80c75dbf1e6c832f8d0616ea56b8b55d96c36418.
* fix for callbook lookup
* make pathline more visible
* better visibility of qsos
* add classic coordinates bar to the map
* fix bug in stats
* stretch max duration to 4s.. just in case
* simple sanity check in js to prevent unnecessary callbook lookups
* simulate tab after filling the call from scp
* fix poll radios with enabled worker
* reset po/mo files back to upstream/dev
* split contest exports, add back reg1test edi format
* keep the menu item but redirect to contesting
* better syntax and bugfix
* break it down further and fix typo ("constraint")
* use monospace font for input fields
* fix: in worker driven mode we need to do the heartbeat also on not focused windows otherwise we loose this contact
* fix: error handling on invalid times
* wavelog Ø
* more styling
* band lowercase fix
* Other is not a very descriptive title for a contest logger window, so we rename it to "Contest"
* custom contest name
* compare the whole array instead just a few settings
---------
Co-authored-by: int2001 <joerg@dj7nt.de>
Co-authored-by: HadleySo <71105018+HadleySo@users.noreply.github.com>
Co-authored-by: DB4SCW <dev@db4scw.de>
2026-06-14 14:23:00 +02:00
echo json_encode ([ 'success' => true , 'disabled' => true , 'workers' => []]);
return ;
}
2026-07-17 11:50:11 +02:00
// Map the shared status shape to this endpoint's historic JSON contract.
$workers = array_map ( function ( $node ) {
return [
'public_url' => $node [ 'url' ],
'alive' => $node [ 'alive' ],
'version' => $node [ 'version' ],
'active_topics' => $node [ 'active_topics' ],
'connected_clients' => $node [ 'connected_clients' ],
'worker_uptime' => $node [ 'uptime' ],
New Wavelog Contesting and Basics for Wavelog Worker (#3063)
* initial commit for new contesting in Wavelog
* implemented cache buster to match logic from upstream dev branch
* refactore data-store to idb since this will be much faster with a lot of QSOs (scale for the future)
* implementation of other exchange types (wip)
* updated migration version
* renamed mig
* renamed mig
* updated mig
* ESC Handler to reset form
* Add Websocket
* stretch maxDuration warning
We can stretch the maxDuration warning to 2 seconds to allow for more network latency and processing time. The heartbeat is protected against multiple parallel requests, so we can afford to be more lenient with the duration before showing a warning. This should help reduce false positives in environments with higher latency or slower processing.
* worked before warning in qso form
While input the logic checks in the qso list if the callisgn already exists on the same band and mode.
* translations
* fix band buttons
* updated migration after release 2.4.2
* Fixing create new contest, add clubstation permission check, add time check to contests
* Adding attach QSO to Contest
* Remove redundant clubstation checks
* Fix function tip
* Remove time check when launch contest
* Fixing contest attach main logbook, adding detach contest qso
* Enable clubstation contest QSO detach attach
* add space handler for callsign input
* set rst default to 599 for cw, 59 for others
* add grid and refactor some ui to make a better fitting here and there
* adjust tabindex
* add "copy exchange to" feature
* fix css for all themes
* adif and cbr export
* fix bug with wrong operator callsign
* add exchange type "exchange+grid"
* introduce new logic for exchangetypes and more flexible order selection
* fix broken qso list scroll
* legacy import feature
* more precise wording
* feat: inline editing of QSOs by double click in the QSO list
* redirect cabrillo to contesting manager
* Fix QSO permission check
* remove unused cabrillo stuff
* remove duplicate function
* fix check if worked before on band change
tnx to @int2001
* fix flash message for legacy importer
* make dropdown searchable and place "other" at the top
* add hint about "Other" contest
* avoid "flash" of winkeyer settings in qso logging, it shows up if cw is set as mode
* winkeyer for the new contesting
need proper testing by @AndreasK79 and @phl0 since I don't have a winkeyer myself. I tested with a python simulator...
* english comments
* proper singular/plural
* fix dropdown
* preselect active station location
* allow editing time aswell
* fix fontsize in radio buttons
* remove redundant qso count query
* cache last updated value for contest qsos to reduce db load
* index on user id
* cache also qso count
* you can now resize windows also on the edges
requested by @xyz667 in https://github.com/wavelog/wavelog/pull/3063#issuecomment-4557850867
* fix oversized clock
* click to prepare logging for contesting
Logic:
- if qso windows is open, call is sent to qso form
- if contest log is open, call is sent to contest log
- if both are open, call is sent to contest log
- if none is open, click opens qso form and call is sent to qso form
* handle exchange s prefill with data from the last qso and make exchange always uppercase
* add dropdown to qso list with option to delete qsos
* language fixes
* english comments
* center text
* fix missing dropdown on new qsos
* add date presets for contest session creator/editor
* basic worker implementation
* support multiple workers for clustering
* remove unnecessary node column
* simple availability check
* websocket for contesting
* bonus: add vip for visibilty in debug view
* use vip if available
* worker disabled in debug view if disabled in config
* racecondition for winkeyer breaks edit/delete dropdown
* racecondition for winkeyer breaks edit/delete dropdown
* qso handling for worker in contesting, no high interval heartbeat anymore
* clear heartbeat intervall
* fix some timing bugs
* remove dedicated worker controller as it's not needed
* handle whitespace
* trigger sync engine after processing QSO sync response and adjust last sync time to avoid spurious resyncs
* fix set and setLocal
* fix change detection and sync logic
* fix the lost of seconds due to edit
* fix table rendering
* watermark handling for true delta
* remove caching as it brings more problems here as benefits
* make serial as default exchangetype
* Add clarification on cluster setup requirements for worker URLs
* add operator to qso list if this is a clubstation
* fix bug for editing qsos in clubmode
* remove redundant code
* integers must be null in database
* fix bug in tabindex if 3 exchangefields are configured (serial, exchange, grid)
* nice contesting map (draft)
* map autofit
* add grid overlay
* calculate distanz and azimuth
* include rotor control via waveloggate (ws only)
* implement simple dedicated callbook lookup
* simpler and faster lookup
* option in contest session to disabled callbook lookup and only calculate dxcc
* syntax issue
* fix bug in CBR export
* catch empty result on contest
* remove some leftovers
* removed some comments
* remove unused stuff
* removed old todos/comments
* add 4s timeout for ajax transport
* you need to be admin for this
* translations
* add option to delete qso's aswell when deleting a session (opt in)
* add quickstart button in manager
* removed old todo
* fix "grows to bottom"
* disable "copy exchange to" if no exchange is set
* clear map on qso clear aswell
* same for scp
* updated documentation link
* calculate distanze and azimut also on grid only
* better space usage in qso input
* callbook db first approach, online lookup can be disabled while being cached for all users when enabled
* some input validation
* use only one sot for qrgtoband
* basic stats component
* fix html encoding
* render all aswell
* ascii
* store locally which time frame the user wants
* sync settings and warn user if something happend on the backend
* dev leftover
* show errors if callbook fails or callsign is invalid
* easier syntax
* Revert "easier syntax" - that was a mistake
This reverts commit 80c75dbf1e6c832f8d0616ea56b8b55d96c36418.
* fix for callbook lookup
* make pathline more visible
* better visibility of qsos
* add classic coordinates bar to the map
* fix bug in stats
* stretch max duration to 4s.. just in case
* simple sanity check in js to prevent unnecessary callbook lookups
* simulate tab after filling the call from scp
* fix poll radios with enabled worker
* reset po/mo files back to upstream/dev
* split contest exports, add back reg1test edi format
* keep the menu item but redirect to contesting
* better syntax and bugfix
* break it down further and fix typo ("constraint")
* use monospace font for input fields
* fix: in worker driven mode we need to do the heartbeat also on not focused windows otherwise we loose this contact
* fix: error handling on invalid times
* wavelog Ø
* more styling
* band lowercase fix
* Other is not a very descriptive title for a contest logger window, so we rename it to "Contest"
* custom contest name
* compare the whole array instead just a few settings
---------
Co-authored-by: int2001 <joerg@dj7nt.de>
Co-authored-by: HadleySo <71105018+HadleySo@users.noreply.github.com>
Co-authored-by: DB4SCW <dev@db4scw.de>
2026-06-14 14:23:00 +02:00
];
2026-07-17 11:50:11 +02:00
}, $status [ 'nodes' ]);
$vip = $status [ 'vip' ] !== null ? [ 'url' => $status [ 'vip' ]] : null ;
New Wavelog Contesting and Basics for Wavelog Worker (#3063)
* initial commit for new contesting in Wavelog
* implemented cache buster to match logic from upstream dev branch
* refactore data-store to idb since this will be much faster with a lot of QSOs (scale for the future)
* implementation of other exchange types (wip)
* updated migration version
* renamed mig
* renamed mig
* updated mig
* ESC Handler to reset form
* Add Websocket
* stretch maxDuration warning
We can stretch the maxDuration warning to 2 seconds to allow for more network latency and processing time. The heartbeat is protected against multiple parallel requests, so we can afford to be more lenient with the duration before showing a warning. This should help reduce false positives in environments with higher latency or slower processing.
* worked before warning in qso form
While input the logic checks in the qso list if the callisgn already exists on the same band and mode.
* translations
* fix band buttons
* updated migration after release 2.4.2
* Fixing create new contest, add clubstation permission check, add time check to contests
* Adding attach QSO to Contest
* Remove redundant clubstation checks
* Fix function tip
* Remove time check when launch contest
* Fixing contest attach main logbook, adding detach contest qso
* Enable clubstation contest QSO detach attach
* add space handler for callsign input
* set rst default to 599 for cw, 59 for others
* add grid and refactor some ui to make a better fitting here and there
* adjust tabindex
* add "copy exchange to" feature
* fix css for all themes
* adif and cbr export
* fix bug with wrong operator callsign
* add exchange type "exchange+grid"
* introduce new logic for exchangetypes and more flexible order selection
* fix broken qso list scroll
* legacy import feature
* more precise wording
* feat: inline editing of QSOs by double click in the QSO list
* redirect cabrillo to contesting manager
* Fix QSO permission check
* remove unused cabrillo stuff
* remove duplicate function
* fix check if worked before on band change
tnx to @int2001
* fix flash message for legacy importer
* make dropdown searchable and place "other" at the top
* add hint about "Other" contest
* avoid "flash" of winkeyer settings in qso logging, it shows up if cw is set as mode
* winkeyer for the new contesting
need proper testing by @AndreasK79 and @phl0 since I don't have a winkeyer myself. I tested with a python simulator...
* english comments
* proper singular/plural
* fix dropdown
* preselect active station location
* allow editing time aswell
* fix fontsize in radio buttons
* remove redundant qso count query
* cache last updated value for contest qsos to reduce db load
* index on user id
* cache also qso count
* you can now resize windows also on the edges
requested by @xyz667 in https://github.com/wavelog/wavelog/pull/3063#issuecomment-4557850867
* fix oversized clock
* click to prepare logging for contesting
Logic:
- if qso windows is open, call is sent to qso form
- if contest log is open, call is sent to contest log
- if both are open, call is sent to contest log
- if none is open, click opens qso form and call is sent to qso form
* handle exchange s prefill with data from the last qso and make exchange always uppercase
* add dropdown to qso list with option to delete qsos
* language fixes
* english comments
* center text
* fix missing dropdown on new qsos
* add date presets for contest session creator/editor
* basic worker implementation
* support multiple workers for clustering
* remove unnecessary node column
* simple availability check
* websocket for contesting
* bonus: add vip for visibilty in debug view
* use vip if available
* worker disabled in debug view if disabled in config
* racecondition for winkeyer breaks edit/delete dropdown
* racecondition for winkeyer breaks edit/delete dropdown
* qso handling for worker in contesting, no high interval heartbeat anymore
* clear heartbeat intervall
* fix some timing bugs
* remove dedicated worker controller as it's not needed
* handle whitespace
* trigger sync engine after processing QSO sync response and adjust last sync time to avoid spurious resyncs
* fix set and setLocal
* fix change detection and sync logic
* fix the lost of seconds due to edit
* fix table rendering
* watermark handling for true delta
* remove caching as it brings more problems here as benefits
* make serial as default exchangetype
* Add clarification on cluster setup requirements for worker URLs
* add operator to qso list if this is a clubstation
* fix bug for editing qsos in clubmode
* remove redundant code
* integers must be null in database
* fix bug in tabindex if 3 exchangefields are configured (serial, exchange, grid)
* nice contesting map (draft)
* map autofit
* add grid overlay
* calculate distanz and azimuth
* include rotor control via waveloggate (ws only)
* implement simple dedicated callbook lookup
* simpler and faster lookup
* option in contest session to disabled callbook lookup and only calculate dxcc
* syntax issue
* fix bug in CBR export
* catch empty result on contest
* remove some leftovers
* removed some comments
* remove unused stuff
* removed old todos/comments
* add 4s timeout for ajax transport
* you need to be admin for this
* translations
* add option to delete qso's aswell when deleting a session (opt in)
* add quickstart button in manager
* removed old todo
* fix "grows to bottom"
* disable "copy exchange to" if no exchange is set
* clear map on qso clear aswell
* same for scp
* updated documentation link
* calculate distanze and azimut also on grid only
* better space usage in qso input
* callbook db first approach, online lookup can be disabled while being cached for all users when enabled
* some input validation
* use only one sot for qrgtoband
* basic stats component
* fix html encoding
* render all aswell
* ascii
* store locally which time frame the user wants
* sync settings and warn user if something happend on the backend
* dev leftover
* show errors if callbook fails or callsign is invalid
* easier syntax
* Revert "easier syntax" - that was a mistake
This reverts commit 80c75dbf1e6c832f8d0616ea56b8b55d96c36418.
* fix for callbook lookup
* make pathline more visible
* better visibility of qsos
* add classic coordinates bar to the map
* fix bug in stats
* stretch max duration to 4s.. just in case
* simple sanity check in js to prevent unnecessary callbook lookups
* simulate tab after filling the call from scp
* fix poll radios with enabled worker
* reset po/mo files back to upstream/dev
* split contest exports, add back reg1test edi format
* keep the menu item but redirect to contesting
* better syntax and bugfix
* break it down further and fix typo ("constraint")
* use monospace font for input fields
* fix: in worker driven mode we need to do the heartbeat also on not focused windows otherwise we loose this contact
* fix: error handling on invalid times
* wavelog Ø
* more styling
* band lowercase fix
* Other is not a very descriptive title for a contest logger window, so we rename it to "Contest"
* custom contest name
* compare the whole array instead just a few settings
---------
Co-authored-by: int2001 <joerg@dj7nt.de>
Co-authored-by: HadleySo <71105018+HadleySo@users.noreply.github.com>
Co-authored-by: DB4SCW <dev@db4scw.de>
2026-06-14 14:23:00 +02:00
echo json_encode ([ 'success' => true , 'vip' => $vip , 'workers' => $workers ]);
}
2023-11-11 09:35:27 +01:00
}