Commit graph

37 commits

Author SHA1 Message Date
Peter Goodhall
e3c602127a Use CI query builder for safer DB queries
Replace concatenated SQL with CodeIgniter query builder across models to improve safety and readability. Changes in Cat, Contesting_model and Oqrs_model convert raw SQL strings into active-record calls, add integer casting for ID/station values, use select/from/join/where/order_by/get patterns, and simplify delete/query flows. Affected methods include radio_status, multiple contest-related selects/inserts/deletes, and several oqrs/station_profile queries.
2026-06-24 22:10:20 +01:00
Peter Goodhall
b6a1eb830c Add embeddable on-air widget
Introduce an embeddable "on air" status widget. Adds Widgets::on_air controller action to lookup a user by callsign, sanitize input, and render a new widgets/on_air view (iframe-friendly). Adds Cat::recent_status_by_user_id to fetch recent CAT entries (last 15 minutes) for public display. View shows ON AIR/ QRT badges, radio/satellite details, and includes auto-refresh and minimal styling; usage: /widgets/on_air/YOURCALL.
2026-03-29 14:24:26 +01:00
Peter Goodhall
51e5003a0f Validate CAT frequency/mode data and clean up errors
Adds strict validation to the Cat model to prevent non-numeric frequency and invalid mode values from being stored, logging any invalid data for debugging. Introduces migration 229 to clean up existing corrupted CAT table data caused by rig control error messages, and updates migration version. Includes documentation of the issue and applied fix.
2025-10-13 16:58:50 +01:00
Peter Goodhall
25a03ab1fa Add optimized radio command APIs and QSY integration
Introduces an optimized API endpoint to fetch all pending radio commands for a user in a single call, along with a maintenance endpoint for cleaning up expired and old commands. Updates the documentation to reflect these new endpoints and usage patterns. Adds a QSY endpoint to Dxcluster for queuing frequency/mode commands from the bandmap, and integrates client-side JavaScript to send QSY commands to the selected radio with user feedback. Enhances backend models to support user-scoped cleanup of expired and old commands.
2025-10-04 13:34:42 +01:00
Peter Goodhall
5c63e5099e Add radio command queueing and management system
Introduces a new radio command queueing system with API endpoints and a user interface for sending, viewing, and managing radio commands. Adds migration for the radio_commands table, extends the Cat model with command-related methods, and implements new controllers and views for both API and web interfaces. This enables integration with desktop apps and provides users with tools to send, track, and cancel radio commands.
2025-10-04 11:48:48 +01:00
int2001
cce52c126c
Enable QRG-Only-Update (should fix #2611) 2023-11-13 09:18:56 +00:00
kb-light
b523bfa683 [Cat] Some fixes for backward compatibility with CloudLogCatQt 2022-09-30 16:17:41 +00:00
kb-light
88982bcb09 [CAT] rename rx columns 2022-09-30 12:05:33 +00:00
kb-light
49d1a13365 Some small API improvements 2022-09-29 21:32:08 +00:00
Florian (DF2ET)
f39a561a3a
Handle non-SAT cases without throwing errors
* Also test mode and frequency for != "NULL"
* Remove useless code
* Forgotten change of variable name
* Set NULL as default for missing frequency
2022-09-29 21:06:06 +00:00
kb-light
4064340bc7 Unify varible naming
Replace uplink_freq by frequency.
Replace uplink_mode by mode
Replace downlink_freq by frequency_rx.
Replace downlink_mode by mode_rx
2022-09-27 19:49:57 +00:00
kb-light
37ea7049d7 Radio API: Remove redundant data construction 2022-09-27 19:49:57 +00:00
kb-light
a60885f2ed Unify radio API
Radio API should not depend on the name
Remove further occurrence of SatPC32 and CloudlogCatQt
2022-09-27 19:49:57 +00:00
Peter Goodhall
e177148bdd Update Cat.php 2022-08-01 11:39:37 +01:00
Peter Goodhall
0f9ac6a621 Update Cat.php 2022-08-01 11:30:41 +01:00
Peter Goodhall
858756e6b8 Update Cat.php 2022-08-01 11:19:37 +01:00
Peter Goodhall
8b333ca691 Update Cat.php 2022-08-01 11:18:19 +01:00
Peter Goodhall
c9047ae0e2 [CAT} force timestamp to be utc 2022-08-01 11:12:01 +01:00
Jordan Cook
2cbb2522ba Fix issue where warning is displayed that CAT data from radio is out of date due to using default timezone 2022-07-23 17:27:45 +01:00
Peter Goodhall
2d73ebbefb [CAT] Accept power for any radio type 2022-04-09 13:34:43 +01:00
Peter Goodhall
6b62e47879 Update Cat.php 2022-04-09 10:52:46 +01:00
Peter Goodhall
769a18fbea [CAT] Set SatPC32s prop mode to always SAT 2022-04-09 10:50:08 +01:00
phl0
f6feea53bd
Add CAT support for other propmodes for CloudLogCATQt 2022-04-08 21:47:50 +02:00
phl0
7ef299c869
Add power field to CAT interface 2022-04-06 14:50:24 +02:00
Peter Goodhall
6d5acdfd11 [CAT] Sets timetamp if one isn't provided (UTC) 2022-01-14 19:22:18 +00:00
Peter Goodhall
050182f2f5 This might fix issues where mysql isn't using UTC
There appears to be an issue when UTC isn't the native time for the MySQL server so instead of using NOW() which is the servers date/time use utc_timestamp instead. this means all interfaces MUST set time stamps as UTC.
2021-12-27 17:25:15 +00:00
Andreas
97e4f6bfe2 [CAT] Fixed a user_id bug when updating the radio entry. 2021-12-12 09:36:33 +01:00
Andreas
1b2a88b355 Removed all constructors in models, since this doesn't work in never CodeIgniter 2021-11-06 20:24:28 +01:00
Peter Goodhall
8b1770feab [API][CAT] Fixes issue where user_id isn't getting added to the hardware entry 2021-09-28 17:18:04 +01:00
Andreas
586bc969fa [Hardware] Added userid to everything that has to do with hardware. 2021-09-20 15:03:35 +02:00
jtmnt
b18e1013f3 Add timestamp to 'cat' update, to enforce timestamp update in mysql when other values have not changed. 2021-07-05 22:23:35 +03:00
Peter Goodhall
bbdd0eadde [Dashboard] Adds Radio Status showing radios active in the last 15mins 2021-05-03 14:06:56 +01:00
Peter Goodhall
45f6c3d6a0 Forgot to readd selecting radio ID when i was debugging 2020-05-12 23:08:05 +01:00
Peter Goodhall
5e6e65301c QSO Panel: CAT Timeout Warning Message #310
This adds a warning that Cloudlogs not received any recent data from CAT Interface this timeout is defined in the cloudlog.php configuration file

$config['cat_timeout_interval'] = 1800;

The default has been changed to 30mins.
2020-05-12 22:51:56 +01:00
Peter Goodhall
531d165d5d Refactored the CAT lookup code reduced the load times from 0.5152ms to load to a mere 0.0012ms 2019-09-06 16:55:13 +01:00
Peter Goodhall
1b3d496aaa Removed cat_status from controller and model as I believe its not used anymore if it breaks just have to rollback 2018-12-17 22:19:23 +00:00
Warren Volz
e384826aea Codeignitor 3.1.6 and corresponding changes
- fixes missing () from num_rows in authenticate user function
- removes passwordhash library in favor of built in PHP password_hash
  and password_verify functions
- uppercase all class filenames
- add new CLI error templates, move HTML error templates
- update mimes file to latest version
- update routes to latest version
2017-12-01 19:25:26 +00:00
Renamed from application/models/cat.php (Browse further)