Commit Graph

45 Commits

Author SHA1 Message Date
int2001
8ef85db129 Do stuff only if config is set (+re-add line at dashboard) 2025-04-16 19:10:22 +00:00
int2001
20c5a6655a Add user_name/id as well to CAT 2025-04-11 07:58:01 +00:00
int2001
30703b8275 Merge branch 'dev' into mqtt 2025-04-04 08:38:12 +00:00
int2001
ca89b7a821 Check power for valid string/number, otherwise ignore 2025-04-03 07:07:21 +00:00
int2001
1c2c0f1bf8 Publish on CAT 2025-04-02 16:30:02 +00:00
Filip Melík
6e2e2ce498 Add function for retrieving radio status for given user id 2025-02-23 13:28:41 +01:00
int2001
fe1d11982f Fixes missing API-Key/Radio Bug 2025-01-02 12:53:46 +00:00
Fabian Berg
c70c2ec5cd Clubstations for Wavelog (#1334)
* feat[clubstations]: New DB structure

* feat[clubstations]: Add clubstationstable in user managment

* feat[clubstations]: Show last operator

* feat[clubstations]: Better solution for last operator. tnx for the hint @int2001

* feat[clubstations]: New Club Model and Controller

* feat[clubstations]: Add "Add User" and "Edit User" functionality

* docs[clubstations]: move comment

* feat[clubstations]: Add "Delete Member" functionality

* feat[clubstations]: some enhancements and javascript

* fix[clubstations]: Wrong message class for flashmessages

* feat[clubstations]: Added Switch in the Header menu (not functional yet)

* feat[clubstations]: clubswitch modal

* fix[clubstations]: Load encryption library if not already loaded

* fix[clubstations]: Prevent direct login attempts to clubstations and enhance impersonation authorization

* fix[clubstations]: Typo

* feat[clubstations]: Only show the operator dialog if there is something fishy

* fix[user]: little UI bug

* feat[impersonate]: Add source uid to session data

* fix[impersonate]: logic adjustment

* feat[clubstations]: Add manage button in header menu for club officers

* fix[clubstations]: typo in permission level check

* fix[clubstations]: Full rights for the admin

* feat[impersonate]: Custom sessiondata

* feat[impersonate]: Implement stop impersonation feature with modal confirmation; "the way back"

* fix(modal): Fix bug where modal was hidden when mouse leaved the browser content

* docs(config): Adjust config description for special callsigns and clubstations

* feat(club): Add club access check helper

* typo

* fix[impersonation]: Better text

* feat(club): Selectize for a efficient user search

* feat(clubstations): Restrict clubstations based on users permission level part 1/x

* adjustments for dev merge

* Adjusted club right for the advanced logbook

* feat[user]: Refactoring of the Action Buttons in the user table

* fix[club_permissions]: normal button instead small one for club permissions

* remove unnecessary line break in modal body

* feat[clubstations]: Add Club Mode badge to the header

* fix[clubstations]: fix maintenance mode

* allow switch back on http

* feat(simplefle): display operator input based on club_access

* small UI adjustments

* small UI adjustments

* moved api page to a index.php file and added support for clubstations

* removed unused stuff

* typo

* radios and api keys

* missed one binding

* fix qso view, even officers do just see their own radios in QSO logging

* omit the need for a relogin to see the changes as an admin

* Omit the need for relogin after club changes in general. It's a question of UX. It's better to accept a little higher DB load (if clubstations are enabled) then the need of an user to relogin. There is some room for improvement by changing user_model->get_by_id() and adding a join there. This can be done later if we see that the load is too high

* If the user is not the creator of the API key, it's likely a clubstation. In this case the callsign of the clubstation can not be the same as the callsign of the user (operator call provided by the user). If this is the case, we need to use the callsign of the creator of the API key

* remove debug messages

* better UI in header

* found a typo

* full access in clubstations for admins (if accessed via admin usertable)

* adjusted text

* adjusted text

* adjust text

* reduce required chars

* bugfix: missing the correct authentication in case the admin was not member of the club. he wasn't able to switch back

* reduce debug messages

* fixed UI bug related to tooltips

* load js in controller

* upps..

* some UI adjustments

* corrected permissions

* if user gets delete we need to remove data in club_permissions and also api keys which were created by this user

* Notify members about new memberships or changes in permission level

* add spinner to save button

* make login/logout process more bulletproof

* remove the relogin cookie after the attempt

* better strategy

* bug where switch back failed if user is no admin

* make api keys more secure

* mask not owned api keys

* removed annoying link

* if a user gets removed from a club we also should delete the corresponding api keys and cat radios

* adjusted wiki link

* Auto creation of logbook and location when new user is created

* store and display locator in uppercase

* same for callsign

* fixed a bug in user/club creation

* Revert "Auto creation of logbook and location when new user is created"
We found another solution to which will be addressed in a second PR
This reverts commit f05f4b7bf0.

* Optimized SQL for stats at userlist

* Source query for lastop "out", because mysql<9.0 can't handle Windowed functions

* adjust migration

* add new columns to users table to get created_at and modified_at

* added a partial down function

* add operator dropdown for clubstations

* fix mig version

* Add some backend restrictions in case a user wants to try something funny with the club

---------

Co-authored-by: Andreas Kristiansen <6977712+AndreasK79@users.noreply.github.com>
Co-authored-by: int2001 <joerg@dj7nt.de>
2025-01-02 10:22:23 +01:00
int2001
377843dcd9 Make CAT-URL Editable 2024-11-08 14:21:10 +00:00
int2001
107ce21f7e Catches a non-numeric CAT-QRG 2024-08-15 05:05:06 +00:00
HB9HIL
1fe3ce7a2a use sql bindings 2024-08-09 08:35:10 +02:00
github-actions
c6bd33d16a show which radio was last updated 2024-08-06 00:04:59 +02:00
int2001
dabb4e2925 Do not update QRG if it wasn't provided via API-Call 2024-08-01 06:35:33 +00: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