19 Commits

Author SHA1 Message Date
Marco Dalla Tiezza
1b48405c14 Rolling out DB v61 2024-06-05 22:20:43 +02:00
Marco Dalla Tiezza
c8fcb2c3e0 Added project webpage in help section 2024-06-05 21:03:06 +02:00
Marco Dalla Tiezza
ab8403c16e Corrected few docs typo 2024-06-05 00:05:00 +02:00
Marco Dalla Tiezza
7929c23ac5 Fixed a bug introduced in 10607c88ea 2024-06-04 22:15:44 +02:00
Marco Dalla Tiezza
707cc001cf Updated docs about new text search behaviour 2024-06-04 21:57:56 +02:00
Marco Dalla Tiezza
4594237c09 Added volume slider and mute bbutton to audio player, closed #45 2024-06-04 21:43:57 +02:00
Marco Dalla Tiezza
10607c88ea Searches in the name field has been extended to the description as well (close #44) 2024-06-04 19:51:21 +02:00
Marco Dalla Tiezza
f61527ed70 Locked audio player upon signal deletion 2024-06-04 19:30:15 +02:00
Marco Dalla Tiezza
4e7ebcc2f5 Read-only ops are separated in different standard and OS dependent folders from read-write ones (fixed #43), bump Nuitka 2.3 2024-06-04 19:25:12 +02:00
Marco Dalla Tiezza
16e2668fe9 Forced std error and std output in building script for Windows for logging purposes 2024-06-02 00:57:32 +02:00
Marco Dalla Tiezza
cc607fdd28 Added more extension for FileDialog 2024-06-01 22:28:13 +02:00
Marco Dalla Tiezza
f5565a6b5e Basic Operations chapter added to the docs 2024-06-01 22:22:14 +02:00
Marco Dalla Tiezza
04bc4cce5f Added documentation for the new 2 products implemented in the previous commits 2024-06-01 13:12:15 +02:00
Marco Dalla Tiezza
c6afcc0e75 Added Aurora Forecast Model 2024-06-01 11:48:27 +02:00
Marco Dalla Tiezza
3fdbdbfae4 Added D-Region Absorption Predictions 2024-05-31 19:59:51 +02:00
Marco Dalla Tiezza
359e5c9076 Added Sporadic-E and Aurora spots in RF propagation panel 2024-05-31 16:48:27 +02:00
Marco Dalla Tiezza
7a89b64ca8 Code polished from unused functions 2024-05-31 16:36:34 +02:00
Marco Dalla Tiezza
e2a48e7a54 Docs updated and corrected a type in the space weather window 2024-05-30 18:25:18 +02:00
Marco Dalla Tiezza
2a70e42a59 Changed to GitHub hosted latest software and db version manifest 2024-05-30 12:48:29 +02:00
66 changed files with 3838 additions and 1699 deletions

1
.gitignore vendored
View File

@@ -5,3 +5,4 @@ data/
.flake8
*.qtds
artemis_rc.py
site

View File

@@ -12,13 +12,18 @@
- Databases can be exported/imported for easy sharing
- Possibility to store and view all type of documents related to a signal entry
- Filtration process is now much more efficient due to usage of SQL queries
- D-Region Absorption Predictions (DRAP) and Aurora OVATION model are now present in the Space Weather window
### Changed
- Updated GUI libray from PyQt5 to PySide6. Artemis 4 now relies on the QtQuick framework.
- Undefined value for frequency and bandwidth is now deprecated.
- SigID standard database is now hosted on GitHub (the server is much faster) along with the website parser
- Undefined value for frequency and bandwidth is now deprecated
- Drastically reduced the number of third party libraries
- The signals filtering page has been simplified to be more immediate and user friendly
- Space weather page now relies on Poseidon daemon (hosted on aresvalley.com)
- Space weather page has been greatly improved and now relies on Poseidon daemon (hosted on aresvalley.com)
### Fixed
- Artemis can be execunted inside standard pretected folder (such as Program Files) without using elevated privileges
## [3.2.4] - 2022-09-30
### Fixed

View File

@@ -4,10 +4,11 @@
<div align="center">
<a href="">![GitHub Release](https://img.shields.io/github/v/release/aresvalley/artemis)</a>
<a href="">![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/aresvalley/artemis/windows.yml?logo=windows&logoColor=white)</a>
<a href="">![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/aresvalley/artemis/linux.yml?logo=linux&logoColor=white)</a>
<a href="">![GitHub Issues or Pull Requests](https://img.shields.io/github/issues/aresvalley/artemis)</a>
![GitHub Release](https://img.shields.io/github/v/release/aresvalley/artemis)
![GitHub Release](https://img.shields.io/github/v/release/AresValley/Artemis-DB?label=DB%20version)
![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/aresvalley/artemis/windows.yml?logo=windows&logoColor=white)
![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/aresvalley/artemis/linux.yml?logo=linux&logoColor=white)
![GitHub Issues or Pull Requests](https://img.shields.io/github/issues/aresvalley/artemis)
</div>

View File

@@ -12,6 +12,7 @@
<file>images/icons/player_play.svg</file>
<file>images/icons/player_stop.svg</file>
<file>images/icons/player_loop.svg</file>
<file>images/icons/player_mute.svg</file>
<file>images/icons/save.svg</file>
<file>images/icons/delete.svg</file>
<file>images/icons/add.svg</file>
@@ -22,6 +23,7 @@
<file>images/icons/documents.svg</file>
<file>images/icons/abort.svg</file>
<file>images/spectrum_not_available.svg</file>
<file>images/artemis_not_available.svg</file>
<file>ui/Artemis.qml</file>
<file>ui/DbManager.qml</file>
@@ -37,6 +39,8 @@
<file>ui/SignalPage.qml</file>
<file>ui/SpaceWeatherCurrentPage.qml</file>
<file>ui/SpaceWeatherForecastPage.qml</file>
<file>ui/SpaceWeatherDRAPPage.qml</file>
<file>ui/SpaceWeatherAuroraPage.qml</file>
<file>ui/About.qml</file>

File diff suppressed because it is too large Load Diff

View File

@@ -4,9 +4,9 @@ from PySide6.QtQml import QQmlApplicationEngine
from PySide6.QtCore import QObject, Slot, Signal
from artemis.utils.constants import Constants, Messages
from artemis.utils.sys_utils import open_directory, pack_db, unpack_db
from artemis.utils.sys_utils import open_directory, make_tar, unpack_tar
from artemis.utils.sql_utils import ArtemisDatabase, ArtemisSignal
from artemis.utils.path_utils import check_data_dir
from artemis.utils.path_utils import DATA_DIR
from artemis.utils.network_utils import NetworkManager
from artemis.utils.generic_utils import generate_filter_query
from artemis.utils.path_utils import normalize_dialog_path
@@ -69,8 +69,6 @@ class UIArtemis(QObject):
self.network_manager = NetworkManager(self)
check_data_dir()
def _connect(self):
# QML > Python connections
@@ -277,7 +275,7 @@ class UIArtemis(QObject):
"""
try:
dest_path = normalize_dialog_path(save_path)
pack_db(dest_path, self.loaded_db.db_dir)
make_tar(dest_path, self.loaded_db.db_dir)
self.dialog_popup(
Messages.DIALOG_TYPE_INFO,
Messages.GENERIC_SUCCESS,
@@ -300,7 +298,8 @@ class UIArtemis(QObject):
"""
try:
origin_path = normalize_dialog_path(tar_path)
unpack_db(origin_path, str(uuid.uuid4()))
save_path = DATA_DIR / str(uuid.uuid4())
unpack_tar(origin_path, save_path)
self.dialog_popup(
Messages.DIALOG_TYPE_INFO,
Messages.GENERIC_SUCCESS,

View File

@@ -1,10 +1,13 @@
import os
from PySide6.QtQml import QQmlApplicationEngine
from PySide6.QtCore import QObject, Signal, Slot
from artemis.utils.path_utils import *
from artemis.utils.path_utils import DATA_DIR
from artemis.utils.generic_utils import *
from artemis.utils.sql_utils import ArtemisDatabase
from artemis.utils.constants import Constants
from artemis.utils.sys_utils import delete_dir
class UIdbmanager(QObject):
@@ -67,7 +70,7 @@ class UIdbmanager(QObject):
self._parent.lock_menu.emit(True)
self._parent.clear_list.emit()
self._parent.clear_signal_page.emit()
delete_db_dir(db_dir_name)
delete_dir(DATA_DIR / db_dir_name)
self.load_local_db_list()
@@ -85,10 +88,10 @@ class UIdbmanager(QObject):
return a dictionary containing only the valid ones with a summary
"""
valid_db_list = []
db_dirs = next(os.walk(Constants.DB_DIR))[1]
db_dirs = next(os.walk(DATA_DIR))[1]
for db_dir_name in db_dirs:
if valid_db(db_dir_name):
if self._valid_db(db_dir_name):
database = ArtemisDatabase(db_dir_name)
database.load()
valid_db_list.append(
@@ -103,3 +106,22 @@ class UIdbmanager(QObject):
)
return valid_db_list
def _valid_db(self, db_dir_name):
""" Checks if db_dir_name is a valid db dir containing a `data.sqlite` file.
Db must be valid as well and should be properly initialized and loaded with
no errors.
Args:
db_dir_name (str): name of the db folder
"""
if os.path.exists(DATA_DIR / db_dir_name / Constants.SQL_NAME):
try:
database = ArtemisDatabase(db_dir_name)
database.load()
return True
except:
return False # Invalid or corrupted DB
else:
return False # The dir is not containing a data.sqlite file

View File

@@ -3,9 +3,9 @@ from PySide6.QtCore import QObject, Slot, Signal, QUrl, QSaveFile, QDir, QIODevi
from PySide6.QtNetwork import QNetworkReply, QNetworkRequest, QNetworkAccessManager
from artemis.utils.config_utils import *
from artemis.utils.sys_utils import delete_file, match_hash, unpack_db
from artemis.utils.sys_utils import delete_file, delete_dir, match_hash, unpack_tar
from artemis.utils.constants import Messages
from artemis.utils.sys_utils import delete_db_dir
from artemis.utils.path_utils import DATA_DIR
class UIDownloader(QObject):
@@ -42,7 +42,7 @@ class UIDownloader(QObject):
the attributes of the UpdatesController class
"""
url_file = QUrl(self._parent.network_manager.remote_db_url)
dest_path = QDir(Constants.DB_DIR)
dest_path = QDir(DATA_DIR)
self.dest_file = dest_path.filePath(url_file.fileName())
self.file = QSaveFile(self.dest_file)
@@ -97,8 +97,8 @@ class UIDownloader(QObject):
if match_hash(self.dest_file, self._parent.network_manager.remote_db_hash):
self._label_progress.setProperty("text", "Unpacking archive...")
delete_db_dir('SigID')
unpack_db(self.dest_file, 'SigID')
delete_dir(DATA_DIR / 'SigID')
unpack_tar(self.dest_file, DATA_DIR / 'SigID')
delete_file(self.dest_file)
self._parent.load_db('SigID')
self.close_ui.emit()

View File

@@ -4,6 +4,7 @@ from PySide6.QtCore import QObject, Signal, Slot
from artemis.utils.path_utils import *
from artemis.utils.generic_utils import *
from artemis.utils.sql_utils import ArtemisSignal
from artemis.utils.sys_utils import delete_file
class UIsignaleditor(QObject):
@@ -104,6 +105,7 @@ class UIsignaleditor(QObject):
"""
if param_type == 'Signal':
self._parent.loaded_sig.delete_signal()
self._parent.lock_audio_player.emit()
for doc in self._parent.loaded_sig.documents:
doc_file_name = '{}.{}'.format(str(doc[0]), doc[1])
doc_file_path = self._parent.loaded_db.media_dir / doc_file_name

View File

@@ -12,6 +12,8 @@ class UIspaceweather(QObject):
show_ui = Signal()
load_poseidon_report = Signal(dict)
load_poseidon_forecast_report = Signal(dict)
load_poseidon_drap_report = Signal(dict)
load_aurora_report = Signal()
update_bottom_bar = Signal(str)
@@ -26,6 +28,8 @@ class UIspaceweather(QObject):
self._window_current = self._window.findChild(QObject, "spaceWeatherCurrentObj")
self._window_forecast = self._window.findChild(QObject, "spaceWeatherForecastObj")
self._window_drap = self._window.findChild(QObject, "spaceWeatherDRAPObj")
self._window_aurora = self._window.findChild(QObject, "spaceWeatherAuroraObj")
self._connect()
@@ -38,6 +42,8 @@ class UIspaceweather(QObject):
self.update_bottom_bar.connect(self._window.updateBottomBar)
self.load_poseidon_report.connect(self._window_current.loadReport)
self.load_poseidon_forecast_report.connect(self._window_forecast.loadForecastReport)
self.load_poseidon_drap_report.connect(self._window_drap.loadDrapReport)
self.load_aurora_report.connect(self._window_aurora.loadAuroraReport)
def load_spaceweather_ui(self):
@@ -50,11 +56,13 @@ class UIspaceweather(QObject):
network_manager = self._parent.network_manager
network_manager.show_popup = True
poseidon_data = network_manager.fetch_remote_json(
Constants.POSEIDON_REPORT
Constants.POSEIDON_REPORT_URL
)
if poseidon_data:
self.load_poseidon_report.emit(poseidon_data)
self.load_poseidon_forecast_report.emit(poseidon_data)
self.load_poseidon_drap_report.emit(poseidon_data)
self.load_aurora_report.emit()
self.update_bottom_bar.emit(
'Loaded Poseidon report issued on {} at {} UTC'.format(

View File

@@ -1,5 +1,7 @@
from configparser import ConfigParser
from artemis.utils.constants import Constants
from artemis.utils.path_utils import PREFERENCES_DIR, BASE_DIR
from artemis.utils.sys_utils import copy_file
class Config(ConfigParser):
@@ -29,4 +31,11 @@ class Config(ConfigParser):
with open(self._config_file_path, 'w') as f:
self.write(f, space_around_delimiters=self._space_around_delimiters)
CONFIGURE_QT = Config((Constants.PREFERENCES_DIR / 'qtquickcontrols2.conf').resolve().as_posix())
if not (PREFERENCES_DIR / 'qtquickcontrols2.conf').exists():
copy_file(
BASE_DIR / 'config' / 'qtquickcontrols2.conf',
PREFERENCES_DIR / 'qtquickcontrols2.conf'
)
CONFIGURE_QT = Config((PREFERENCES_DIR / 'qtquickcontrols2.conf').resolve().as_posix())

View File

@@ -1,9 +1,7 @@
import os
import locale
import sys
from PySide6.QtCore import qVersion
from pathlib import Path
class Constants():
@@ -14,17 +12,10 @@ class Constants():
ORGANIZATION_DOMAIN = 'aresvalley.com'
APPLICATION_VERSION = '4.0.0'
BASE_DIR = Path(os.path.dirname(__file__)) / '../..'
PREFERENCES_DIR = BASE_DIR / 'config'
DB_DIR = BASE_DIR / 'data'
UI_DIR = BASE_DIR / 'ui'
IMAGES_DIR = BASE_DIR / 'images'
LOGS_DIR = BASE_DIR / 'logs'
SQL_NAME = 'data.sqlite'
DB_LATEST_VERSION = 'https://www.aresvalley.com/artemis/v4/latest.json'
POSEIDON_REPORT = 'https://www.aresvalley.com/poseidon_engine/data.json'
LATEST_VERSION_URL = 'https://raw.githubusercontent.com/AresValley/Artemis/master/config/release-info.json'
POSEIDON_REPORT_URL = 'https://www.aresvalley.com/poseidon_engine/data.json'
DEFAULT_ENCODING = 'utf-8'
SYSTEM_LANGUAGE = 'en_US' # locale.getdefaultlocale()[0]
@@ -68,13 +59,13 @@ class Query():
############################## SELECT
SELECT_ALL_SIGNALS = "SELECT SIG_ID, NAME FROM signals ORDER BY NAME ASC"
SELECT_ALL_SIGNALS = "SELECT SIG_ID, NAME, DESCRIPTION FROM signals ORDER BY NAME ASC"
SELECT_ALL_MODULATION = "SELECT DISTINCT VALUE FROM modulation ORDER BY VALUE ASC"
SELECT_ALL_LOCATION = "SELECT DISTINCT VALUE FROM location ORDER BY VALUE ASC"
SELECT_SIG_ID = "SELECT SIG_ID, NAME FROM signals WHERE SIG_ID IN ({}) ORDER BY NAME ASC"
SELECT_SIG_ID = "SELECT SIG_ID, NAME, DESCRIPTION FROM signals WHERE SIG_ID IN ({}) ORDER BY NAME ASC"
SELECT_ALL_CAT_LABELS = "SELECT CLB_ID, VALUE FROM category_label ORDER BY VALUE ASC"

View File

@@ -6,6 +6,7 @@ from packaging.version import Version
from artemis.utils.constants import Constants, Messages
from artemis.utils.sql_utils import ArtemisDatabase
from artemis.utils.sys_utils import is_windows, is_linux, is_macos
from artemis.utils.path_utils import DATA_DIR
class NetworkManager:
@@ -14,7 +15,7 @@ class NetworkManager:
def __init__(self, parent):
self._parent = parent
self.sigid_db_path = Constants.DB_DIR / 'sigID' / Constants.SQL_NAME
self.sigid_db_path = DATA_DIR / 'SigID' / Constants.SQL_NAME
self.show_popup = False
self.db_update = None
@@ -37,7 +38,7 @@ class NetworkManager:
popup (bool, optional): Suppress the "already up-to-date" message on startup.
Defaults to False.
"""
latest_json = self.fetch_remote_json(Constants.DB_LATEST_VERSION)
latest_json = self.fetch_remote_json(Constants.LATEST_VERSION_URL)
if latest_json:
local_db = self.load_local_db()
remote_db = latest_json['sigID_DB']
@@ -92,7 +93,7 @@ class NetworkManager:
""" Loads the local database if exists
"""
if os.path.exists(self.sigid_db_path):
local_db = ArtemisDatabase('sigID')
local_db = ArtemisDatabase('SigID')
local_db.load()
return local_db
return None

View File

@@ -1,14 +1,8 @@
import os
from pathlib import Path
from artemis.utils.sql_utils import ArtemisDatabase
from artemis.utils.constants import Constants
from artemis.utils.sys_utils import *
def check_data_dir():
if not os.path.exists(Constants.DB_DIR):
os.makedirs(Constants.DB_DIR)
from artemis.utils.sys_utils import is_windows, is_linux, is_macos
def normalize_dialog_path(path):
@@ -19,38 +13,37 @@ def normalize_dialog_path(path):
return norm_path
def logs_dir():
def _app_dir():
if is_macos():
logs_dir_path = Path.home() / 'Library/Logs/' / Constants.ORGANIZATION_NAME / Constants.APPLICATION_NAME
app_dir_path = Path.home() / 'Library' / 'Application Support' / Constants.ORGANIZATION_NAME / Constants.APPLICATION_NAME
elif is_windows():
logs_dir_path = Path.home() / 'AppData/Local/' / Constants.ORGANIZATION_NAME / Constants.APPLICATION_NAME / 'logs'
app_dir_path = Path.home() / 'AppData' / 'Local' / Constants.ORGANIZATION_NAME / Constants.APPLICATION_NAME
elif is_linux():
logs_dir_path = Path.home() / '/var/log/' / Constants.ORGANIZATION_NAME / Constants.APPLICATION_NAME
app_dir_path = Path.home() / '.local' / 'share' / Constants.ORGANIZATION_NAME / Constants.APPLICATION_NAME
else:
logs_dir_path = Constants.LOGS_DIR
app_dir_path = BASE_DIR
if not logs_dir_path.exists():
logs_dir_path.mkdir(parents=True)
if not app_dir_path.exists():
app_dir_path.mkdir(parents=True)
return logs_dir_path
return app_dir_path
def valid_db(db_dir_name):
""" Checks if db_dir_name is a valid db dir containing a `data.sqlite` file.
Db must be valid as well and should be properly initialized and loaded with
no errors.
def _data_dir():
data_dir_path = APP_DIR / 'data'
if not data_dir_path.exists():
data_dir_path.mkdir(parents=True)
return data_dir_path
Args:
db_dir_name (str): name of the db folder
"""
if os.path.exists(Constants.DB_DIR / db_dir_name / Constants.SQL_NAME):
try:
database = ArtemisDatabase(db_dir_name)
database.load()
return True
except Exception as e:
# Invalid or corrupted DB
return False
else:
# The dir is not containing a data.sqlite file
return False
def _preference_dir():
preference_dir_path = APP_DIR / 'config'
if not preference_dir_path.exists():
preference_dir_path.mkdir(parents=True)
return preference_dir_path
BASE_DIR = Path(os.path.dirname(__file__)) / '../..'
APP_DIR = _app_dir()
DATA_DIR = _data_dir()
PREFERENCES_DIR = _preference_dir()

View File

@@ -1,13 +1,14 @@
import sqlite3
import os
import sqlite3
from PySide6.QtCore import QUrl
from operator import itemgetter
from datetime import datetime
from contextlib import closing
from artemis.utils.constants import Query, Constants
from artemis.utils.generic_utils import *
from contextlib import closing
from artemis.utils.path_utils import DATA_DIR
from artemis.utils.generic_utils import format_frequency
class Database():
@@ -51,7 +52,7 @@ class ArtemisDatabase(Database):
def __init__(self, db_dir_name):
self.db_dir_name = db_dir_name
self.db_dir = Constants.DB_DIR / db_dir_name
self.db_dir = DATA_DIR / db_dir_name
self.sql_path = self.db_dir / Constants.SQL_NAME
self.media_dir = self.db_dir / 'media'
super().__init__(self.sql_path)
@@ -95,7 +96,7 @@ class ArtemisDatabase(Database):
contains the SIG_ID and the NAME of the signal
"""
self.all_signals = self.execute(Query.SELECT_ALL_SIGNALS)
keys = ('SIG_ID', 'name')
keys = ('SIG_ID', 'name', 'description')
result = [dict(zip(keys, values)) for values in self.all_signals]
self.all_signals = result
@@ -131,7 +132,7 @@ class ArtemisDatabase(Database):
sig_ids = ",".join(str(num[0]) for num in matching_sig_ids)
self.all_signals = self.execute(Query.SELECT_SIG_ID.format(sig_ids))
keys = ('SIG_ID', 'name')
keys = ('SIG_ID', 'name', 'description')
result = [dict(zip(keys, values)) for values in self.all_signals]
self.all_signals = result

View File

@@ -6,7 +6,7 @@ import hashlib
from shutil import rmtree, copyfile, make_archive, unpack_archive
from pathlib import Path
from artemis.utils.constants import Constants, Messages
from artemis.utils.constants import Messages
def is_windows():
@@ -46,29 +46,38 @@ def open_directory(directory, timeout=3):
return
def delete_db_dir(db_dir_name):
"""Delete the db folder"""
db_dir = Constants.DB_DIR / db_dir_name
if os.path.exists(db_dir):
rmtree(db_dir)
def copy_file(src_file_path, dst_file_path):
copyfile(src_file_path, dst_file_path)
def delete_dir(dir_path):
if os.path.exists(dir_path):
rmtree(dir_path)
def delete_file(file_path):
if os.path.exists(file_path):
os.remove(file_path)
def pack_db(save_path, db_dir):
make_archive(save_path, 'tar', db_dir.resolve().as_posix())
def make_tar(save_path, origin_path):
""" Create a tar archive from a folder
Args:
save_path: destination path where new tar is saved
origin_path: directory path of the folder to be archived
"""
make_archive(save_path, 'tar', origin_path.resolve().as_posix())
def unpack_db(tar_path, db_dir_name):
db_dir = Constants.DB_DIR / db_dir_name
unpack_archive(tar_path, db_dir, 'tar')
def unpack_tar(tar_path, destination_path):
""" Unpack a tar archive in a folder
Args:
tar_path: path of the tar to be unpacked
destination_path: path where the tar is extracted
"""
unpack_archive(tar_path, destination_path, 'tar')
def match_hash(data, reference_hash):

View File

@@ -4,7 +4,7 @@ echo "Building Linux target ..."
echo "Installing requirements ..."
pip install -r requirements.txt
pip install nuitka
pip install nuitka==2.3
echo "Building with Nuitka ..."
python -m nuitka app.py \
@@ -12,8 +12,9 @@ python -m nuitka app.py \
--follow-imports \
--show-modules \
--assume-yes-for-downloads \
--disable-console \
--enable-plugin=pyside6 \
--force-stderr-spec="{TEMP}/artemis.err.log" \
--force-stdout-spec="{TEMP}/artemis.out.log" \
--include-qt-plugins=sensible,styles,qml,multimedia \
--include-data-files=./artemis/resources.py=./artemis/resources.py \
--include-data-files=./config/qtquickcontrols2.conf=./config/qtquickcontrols2.conf \

View File

@@ -2,7 +2,7 @@ Write-Output "Building Windows target"
Write-Output "Installing requirements ..."
pip install -r requirements.txt
pip install nuitka
pip install nuitka==2.3
Write-Output "Building with Nuitka ..."
python -m nuitka app.py `
@@ -10,8 +10,10 @@ python -m nuitka app.py `
--follow-imports `
--show-modules `
--assume-yes-for-downloads `
--disable-console `
--windows-console-mode=disable `
--enable-plugin=pyside6 `
--force-stderr-spec="{TEMP}\artemis.err.log" `
--force-stdout-spec="{TEMP}\artemis.out.log" `
--include-qt-plugins=sensible,styles,qml,multimedia `
--include-data-files=.\artemis\resources.py=.\artemis\resources.py `
--include-data-files=.\config\qtquickcontrols2.conf=.\config\qtquickcontrols2.conf `

View File

@@ -42,3 +42,7 @@ Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: de
[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
[UninstallDelete]
Type: filesandordirs; Name: "{localappdata}\{#MyAppPublisher}\{#MyAppName}\cache"
Type: filesandordirs; Name: "{localappdata}\{#MyAppPublisher}\{#MyAppName}\config"

View File

@@ -4,7 +4,7 @@ echo "Building maacOS target ..."
echo "Installing requirements ..."
pip install -r requirements.txt
pip install nuitka imageio
pip install nuitka==2.3 imageio
echo "Building with Nuitka ..."
python -m nuitka app.py \
@@ -12,7 +12,6 @@ python -m nuitka app.py \
--follow-imports \
--show-modules \
--assume-yes-for-downloads \
--disable-console \
--enable-plugin=pyside6 \
--include-qt-plugins=sensible,styles,qml,multimedia \
--include-data-files=./artemis/resources.py=./artemis/resources.py \

17
config/release-info.json Normal file
View File

@@ -0,0 +1,17 @@
{
"sigID_DB": {
"version": 61,
"url": "https://github.com/AresValley/Artemis-DB/releases/download/v61/v61.tar",
"sha256_hash": "c65d2ab65e9420cd7789190c100abef2f1575ea15489776c2d97b5b09cdc8410",
"total_bytes": 244449280
},
"windows": {
"version": "4.0.0"
},
"linux": {
"version": "4.0.0"
},
"mac": {
"version": "4.0.0"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 100 KiB

BIN
docs/assets/sw_1.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 113 KiB

BIN
docs/assets/sw_2.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 137 KiB

BIN
docs/assets/sw_3.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 171 KiB

BIN
docs/assets/sw_4.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 154 KiB

63
docs/basic_operations.md Normal file
View File

@@ -0,0 +1,63 @@
#
![sw_current](assets/main_window.webp)
## 1. Main Menu
### File
* **New Database:** Create a new database.
* **Load Database:** Open the Database Manager windows in order to open, rename, or delete a database.
* **Import Database:** Import an Artemis database with a standard .tar format.
* **Export Database:** Export the loaded database with a standard .tar format.
* **Edit Tags:** Open the tags editor window. From here, you can add, rename, or delete tags. The tags can be added to a signal from the [tags menu](#4-tags)
* **Open Database Folder:** Shows the folder of the currently loaded database in the explorer.
* **Preferences:** Open the program settings window.
* **Exit:** This will close the application.
### Signal
* **New:** Add a new signal to the database.
* **Edit:** Edit the current/selected signal from the loaded database.
### Space Weather
* **Check Report:** Open the main [Space Weather window](space_weather/current.md) and retrieve all the live data from Poseidon Crawler.
## 2. Signal List
This is the signal list where all the database entries are shown. When a signal is selected, it will load on the right panel.
### Filter by Name/Description
On top of the list, there is a field for filtering signals by name or any keyword inside the description of the signal: this filter has the highest priority among all the filters.
## 3. Signal Menu
Here you can swithc between the main **signal** window and the **filter** page.
## 4. Tags
* **Associate Tag:** Custom tags can be associated to the selected signal with the :octicons-plus-circle-16: icon
* **Remove Tag:** In order to remove a tag, just click on its badge.
* **Add/Rename Tag:** To add a new tag open the [Tags Editor](#1-main-menu) in the main menu.
## 5. Add Parameter
Click on the labels to add the corresponding parameter to the signal (e.g. click on **Frequency** to add a new frequency).
## 6. Edit Parameter
Click on the parameter badge to open the Signal Editor windows. From here, you can edit or delete the corresponding parameter.
!!! tip "Parameter Description"
All the parameters have a description field: if some text is added, it will appear when the corresponding parameter badge is hovered with the mouse pointer.
## 7. Description :simple-markdown:{ title="Markdown Supported" }
This is the description of the signal and can be edited from the [Main Menu](#1-main-menu) (`Signal/Edit...`)
!!! tip "Markdown Supported"
The Description field can render **Markdown**, a simple markup language for creating rich text using plain text. Headers, emphasis, lists, links, code blocks, and many more features for advanced text formatting. [Markdown Basic Syntax :simple-markdown:](https://www.markdownguide.org/basic-syntax/)
## 8. Audio Sample
This is a player where an audio sample of the signal can be played. To associate an audio file to be shown as the **main** audio sample, check in the [extra menu](#10-extra) below the signal spectrum.
## 9. Image Sample
This is an image box that commonly contains the signal spectrum/waterfall. To associate an image file to be shown as the **main** image sample, check in the [extra menu](#10-extra) below the signal spectrum.
## 10. Extra
:material-earth: This button is only available for the standard SigID wiki database and connects the local signal to its counterpart on the [sigidwiki website](https://www.sigidwiki.com/).
:material-file-document-multiple: This will open the **Documents Manager**. From here you can add any file (audio, image, pdf, etc.) to the signal entry. It is also possible to mark only one image and one audio to be shown on the main signal window.

View File

@@ -1,5 +1,5 @@
# Build Package
Building a distributable package with an executable for Artemis creates a practical solution for end-users, as they can run the application without needing to interact with the terminal and they can easily share the application as a stand-alone package.
Building a distributable package with an executable for Artemis creates a practical solution for end-users, as they can run the application without needing to interact with the terminal and they can easily share the application as a standalone package.
## Requirements
* Python (3.11 or higher)
@@ -8,7 +8,7 @@ Building a distributable package with an executable for Artemis creates a practi
We assume that Python is already installed on the system and the Artemis source code has been downloaded and extracted. If these prerequisites are not met, please follow steps 1 to 3 in the [run from source section](run_from_source.md).
!!! warning "Cross-Compilation"
To generate standalone packages, an operating system that matches the target OS must be used, as Nuitka does not support cross-compilation. For example: you cannot build binaries on Windows that work on Linux or macOS.
An operating system that matches the target OS must be used to generate standalone packages, as Nuitka does not support cross-compilation. For example, you cannot build binaries on Windows that work on Linux or macOS.
## :simple-windows: Windows
@@ -20,7 +20,7 @@ Building a distributable package with an executable for Artemis creates a practi
.\building\Windows\build_windows.ps1
```
2. Wait for the build process to complete. This may take a few minutes depending on your system's performance. Once the process finishes, check the `artemis.dist/` directory: it will contain the stand-alone software with the `artemis.exe` executable.
2. Wait for the build process to complete. This may take a few minutes depending on your system's performance. Once the process finishes, check the `artemis.dist/` directory: it will contain the standalone software with the `artemis.exe` executable.
---
@@ -33,7 +33,7 @@ Building a distributable package with an executable for Artemis creates a practi
. ./building/Linux/build_linux.sh
```
2. Wait for the build process to complete. This may take a few minutes depending on your system's performance. Once the process finishes, check the `artemis.dist/` directory: it will contain the stand-alone software with the `app.bin` executable.
2. Wait for the build process to complete. This may take a few minutes depending on your system's performance. Once the process finishes, check the `artemis.dist/` directory: it will contain the standalone software with the `app.bin` executable.
3. If you wish to create a shortcut, follows the procedure in the [installation section](installation.md/#create-a-shortcut)
---

View File

@@ -1,5 +1,5 @@
# Contribute
Artemis is an open source project an every contribution, no matter how small, is valuable and greatly appreciated. Don't worry about getting everything perfect, we are happy to work with you on your contribution and help you along the way. This guide will help you get started by outlining various ways you can contribute.
Artemis is an open-source project, and every contribution, no matter how small, is valuable and greatly appreciated. Don't worry about getting everything perfect; we are happy to work with you on your contribution and help you along the way. This guide will help you get started by outlining various ways you can contribute.
<div class="grid cards" markdown>
@@ -7,7 +7,7 @@ Artemis is an open source project an every contribution, no matter how small, is
---
Open an issue (or pull request) and let us know the problem you faced (or you're working on)
Please open an issue (or pull request) and let us know the problem you faced (or you're working on)
[:octicons-arrow-right-24: Open an Issue](https://github.com/AresValley/Artemis/issues)
@@ -15,7 +15,7 @@ Artemis is an open source project an every contribution, no matter how small, is
---
Create your own copy of the codebase that you can modify and submit pull requests from.
Create a copy of the codebase from which you can modify and submit pull requests.
[:octicons-arrow-right-24: Fork the repo](https://github.com/AresValley/Artemis)
@@ -24,7 +24,7 @@ Artemis is an open source project an every contribution, no matter how small, is
---
Idea for a new feature? Open an issue on the project's GitHub repository to describe your proposal in detail.
Idea for a new feature? Open an issue on the project's GitHub repository to describe your proposal.
[:octicons-arrow-right-24: Open an Issue](https://github.com/AresValley/Artemis/issues)
@@ -32,6 +32,6 @@ Artemis is an open source project an every contribution, no matter how small, is
---
Do you like Artemis? Don't forgeto to share it with your network and your friends!
Do you like Artemis? Remember to share it with your network and your friends!
</div>

View File

@@ -2,7 +2,7 @@
The table contains 4 columns explained below.
!!! example
A technical explanation on how autocorrelation function works along with a practical example is reported [HERE](acf_analysis.md)
A technical explanation on how autocorrelation function works along with a practical example is reported [HERE](../acf_analysis.md)
## ACF_ID
`INTEGER` :material-key-outline:{ title="Primary key" } :material-upload-outline:{ title="Auto-increment" }

View File

@@ -2,7 +2,7 @@
With the release of Artemis 4, we have made a significant upgrade in our data management system by transitioning from a CSV file to a full relational SQL database. This change brings a multitude of advantages that enhance the efficiency, scalability, and reliability of our system. In the following sections, we will explore, table by table, the structure of the new database.
![Screenshot](assets/sql_schema.webp)
![Screenshot](../assets/sql_schema.webp)

View File

@@ -1,8 +1,17 @@
# SigID Wiki Database
<div align="center" markdown>
![GitHub Release](https://img.shields.io/github/v/release/AresValley/Artemis-DB?label=Latest%20release)
![GitHub Downloads (all assets, all releases)](https://img.shields.io/github/downloads/AresValley/Artemis-DB/total?label=DB%20requests)
![GitHub Release Date](https://img.shields.io/github/release-date/AresValley/Artemis-DB)
</div>
Artemis serves as a valuable resource for both personal signal collection and leveraging a vast repository of pre-identified signals. This software application allows users to curate their own collections, but its true strength lies in its integration with a comprehensive database of known signals. This database is directly sourced from the [Signal Identification Wiki](https://www.sigidwiki.com/wiki/Signal_Identification_Guide), an open-source resource collaboratively maintained by a global community of radio enthusiasts.
!!! tip "Database Revision"
For quality control purposes, the database undergoes a rigorous review process before integration into Artemis. This review adheres to established guidelines (**DIANA** crawler, not yet released), ensuring the accuracy and completeness of the information presented to users. The specifics of this review process are outlined in the following section.
For quality control purposes, the database undergoes a rigorous review process before integration into Artemis. This review adheres to established [guidelines](https://github.com/AresValley/Artemis-DB), ensuring the accuracy and completeness of the information presented to users. The specifics of this review process are outlined in the following section.
## Modulation
A good practise (reported also on ) is to write the primary type of modulation (if known) and not all the possible variants. A practical example is reported on [Signal Identification Wiki](https://www.sigidwiki.com/wiki/Signal_Identification_Guide): there is no need to write **8-PSK** or **QPSK**, **PSK** is enough. The Artemis SigID database is provided without any modulation variants included. The recognized modulations are listed below:

View File

@@ -7,12 +7,12 @@
* **macOS** 11+ (Big Sur or later)
## :simple-windows: Windows
Just download the installer and follow the guided procedure to complete the installation process.
1. Download the installer `Artemis-Windows-x86_64-4.x.x.exe` in the Assets menu from the [:material-download: LATEST RELEASE](https://github.com/AresValley/Artemis/releases) and follow the guided procedure to complete the installation process.
---
## :simple-linux: Linux
Download and extract the tarball archive in a folder of your choice and run the executable `app.bin`.
1. Download `Artemis-Linux-x86_64-4.x.x.tar` in the Assets menu from the [:material-download: LATEST RELEASE](https://github.com/AresValley/Artemis/releases) and extract the tarball archive in a folder of your choice and run the executable `app.bin`.
### Create a Shortcut
@@ -31,8 +31,12 @@ This script will:
---
## :simple-apple: Mac OS
!!! warning
The macOS support is temporarily limited!
The support for the macOS compiled version of the program is temporarily limited due to a lack of machines for extensive testing. To use Artemis on a macOS device, you have the following options:
* **Run the program directly from the source:** Follow the instructions provided in [this chapter](run_from_source.md) to launch the program from the source code.
* **Compile the Artemis 4 binaries on your machine:** In this case, you can contribute by reporting any issues you encounter by [opening an Issue](https://github.com/AresValley/Artemis/issues).
* **Use the last available compiled version (3.2.1):** Although this version is no longer officially supported, it remains available for use.
* **Use the last available compiled version (3.2.1):** Although this version is no longer officially supported, it remains available for use: [:material-download: Artemis-3.2.1.dmg](https://aresvalley.com/download/11/).

View File

@@ -27,3 +27,18 @@ Running Artemis directly from the source code using the Python interpreter is co
```
pyside6-rcc ./artemis.qrc -o artemis/resources.py
```
## Folders Structure
Artemis can be safely executed and/or installed in any folder (even protected ones, such as `Program Files (x86)` in Windows) because Artemis performs read-only operations in the `BASE_DIR` folder from where it runs. All the reading-writing operations (such as database ops, logging, etc.) are performed in standard folders as follow:
### :simple-windows: Windows
* Data, Cache, Configurations: `$USER\AppData\Local\AresValley\Artemis`
* Logs: `$USER\AppData\Local\Temp`
### :simple-linux: Linux
* Data, Cache, Configurations: `~/.local/share/AresValley/Artemis`
* Logs: `/tmp`
### :simple-apple: Mac OS
* Data, Cache, Configurations: `~/Library/Application Support/AresValley/Artemis`
* Logs: `/tmp`

View File

@@ -0,0 +1,9 @@
#
![sw_current](../assets/sw_4.webp)
This short-term aurora forecast predicts its location and intensity over the next 30 to 90 minutes, based on the [OVATION model](https://www.swpc.noaa.gov/products/aurora-30-minute-forecast). The lead time of the forecast corresponds to the duration it takes for the solar wind to travel from the L1 observation point to Earth.
Auroras indicate current geomagnetic storm conditions and provide situational awareness for various technologies: for example, they directly affect HF radio communication and GPS/GNSS satellite navigation and are related to ground-induced currents impacting electric power transmission.
For many people, the aurora is a beautiful nighttime phenomenon that is worth traveling to arctic regions just to observe. It is the only way for most people to actually experience space weather.

View File

@@ -0,0 +1,212 @@
#
![sw_current](../assets/sw_1.webp)
## 1. Kp Index
The **K index** is a number (from 0 to 9) that shows how much Earth's magnetic field is disturbed. A K index of 1 means things are calm, while a K index of 5 or higher indicates a geomagnetic storm. These disturbances are measured with magnetometers that track changes in Earth's magnetic field every three hours. The K itself comes from a German word "Kennziffer" meaning "characteristic digit". To get a big picture of what's happening around the world, an official planetary **Kp index** is calculated. This is done by averaging the K indices from a special network of 13 geomagnetic observatories located around the globe at mid-latitudes.
## 2. A Index
The **A index** represents the three-hourly equivalent amplitude of geomagnetic activity at a specific magnetometer station, derived from the station-specific K index. Due to the quasi-logarithmic nature of the K-scale in relation to magnetometer fluctuations, directly averaging a set of K indices is not really meaningful. Instead each K is converted back into a linear scale. The **Ap index** is determined by averaging the eight daily A values, providing a measure of geomagnetic activity for a specific day. Days with higher levels of geomagnetic activity correspond to higher daily Ap values.
## 3. NOAA Space Weather Scale
### Geomagnetic Storm
??? danger "G5 (Extreme)"
* **Physical measure:** Kp = 9
* **Average Frequency:** 4 days per cycle (11 years)
**Power systems:** Widespread voltage control problems and protective system problems can occur, some grid systems may experience complete collapse or blackouts. Transformers may experience damage.
**Spacecraft operations:** May experience extensive surface charging, problems with orientation, uplink/downlink and tracking satellites.
**Other systems:** Pipeline currents can reach hundreds of amps, HF (high frequency) radio propagation may be impossible in many areas for one to two days, satellite navigation may be degraded for days, low-frequency radio navigation can be out for hours, and aurora has been seen as low as Florida and southern Texas (typically 40° geomagnetic lat.).
??? danger "G4 (Severe)"
* **Physical measure:** Kp = 8 to 9-
* **Average Frequency:** 60 days per cycle (11 years)
**Power systems:** Possible widespread voltage control problems and some protective systems will mistakenly trip out key assets from the grid.
**Spacecraft operations:** May experience surface charging and tracking problems, corrections may be needed for orientation problems.
**Other systems:** Induced pipeline currents affect preventive measures, HF radio propagation sporadic, satellite navigation degraded for hours, low-frequency radio navigation disrupted, and aurora has been seen as low as Alabama and northern California (typically 45° geomagnetic lat.).
??? warning "G3 (Strong)"
* **Physical measure:** Kp = 7
* **Average Frequency:** 130 days per cycle (11 years)
**Power systems:** Voltage corrections may be required, false alarms triggered on some protection devices.
**Spacecraft operations:** Surface charging may occur on satellite components, drag may increase on low-Earth-orbit satellites, and corrections may be needed for orientation problems.
**Other systems:** Intermittent satellite navigation and low-frequency radio navigation problems may occur, HF radio may be intermittent, and aurora has been seen as low as Illinois and Oregon (typically 50° geomagnetic lat.).
??? warning "G2 (Moderate)"
* **Physical measure:** Kp = 6
* **Average Frequency:** 360 days per cycle (11 years)
**Power systems:** High-latitude power systems may experience voltage alarms, long-duration storms may cause transformer damage.
**Spacecraft operations:** Corrective actions to orientation may be required by ground control; possible changes in drag affect orbit predictions.
**Other systems:** HF radio propagation can fade at higher latitudes, and aurora has been seen as low as New York and Idaho (typically 55° geomagnetic lat.).
??? info "G1 (Minor)"
* **Physical measure:** Kp = 5
* **Average Frequency:** 900 days per cycle (11 years)
**Power systems:** Weak power grid fluctuations can occur.
**Spacecraft operations:** Minor impact on satellite operations possible.
**Other systems:** Migratory animals are affected at this and higher levels; aurora is commonly visible at high latitudes (northern Michigan and Maine).
### Solar Radiation Storms
??? danger "S5 (Extreme)"
* **Physical measure:** Flux level of $\ge 10 MeV$ particles = $10^5$
* **Average Frequency:** < 1 event per cycle (11 years)
**Biological:** Unavoidable high radiation hazard to astronauts on EVA (extra-vehicular activity); passengers and crew in high-flying aircraft at high latitudes may be exposed to radiation risk.
**Satellite operations:** Satellites may be rendered useless, memory impacts can cause loss of control, may cause serious noise in image data, star-trackers may be unable to locate sources; permanent damage to solar panels possible.
**Other systems:** Complete blackout of HF (high frequency) communications possible through the polar regions, and position errors make navigation operations extremely difficult.
??? danger "S4 (Severe)"
* **Physical measure:** Flux level of $\ge 10 MeV$ particles = $10^4$
* **Average Frequency:** 3 events per cycle (11 years)
**Biological:** Unavoidable radiation hazard to astronauts on EVA; passengers and crew in high-flying aircraft at high latitudes may be exposed to radiation risk.
**Satellite operations:** May experience memory device problems and noise on imaging systems; star-tracker problems may cause orientation problems, and solar panel efficiency can be degraded.
**Other systems:** Blackout of HF radio communications through the polar regions and increased navigation errors over several days are likely.
??? warning "S3 (Strong)"
* **Physical measure:** Flux level of $\ge 10 MeV$ particles = $10^3$
* **Average Frequency:** 10 events per cycle (11 years)
**Biological:** Radiation hazard avoidance recommended for astronauts on EVA; passengers and crew in high-flying aircraft at high latitudes may be exposed to radiation risk.
**Satellite operations:** Single-event upsets, noise in imaging systems, and slight reduction of efficiency in solar panel are likely.
**Other systems:** Degraded HF radio propagation through the polar regions and navigation position errors likely.
??? warning "S2 (Moderate)"
* **Physical measure:** Flux level of $\ge 10 MeV$ particles = $10^2$
* **Average Frequency:** 25 events per cycle (11 years)
**Biological:** Passengers and crew in high-flying aircraft at high latitudes may be exposed to elevated radiation risk.
**Satellite operations:** Infrequent single-event upsets possible.
**Other systems:** Small effects on HF propagation through the polar regions and navigation at polar cap locations possibly affected.
??? info "S1 (Minor)"
* **Physical measure:** Flux level of $\ge 10 MeV$ particles = $10$
* **Average Frequency:** 50 events per cycle (11 years)
**Biological:** None.
**Satellite operations:** None.
**Other systems:** Minor impacts on HF radio in the polar regions.
### Radio Blackouts
??? danger "R5 (Extreme)"
* **Physical measure:*** X20 ($2e^{-3} Wm^{-2}$)
* **Average Frequency:** < 1 days per cycle (11 years)
**HF Radio:** Complete HF (high frequency**) radio blackout on the entire sunlit side of the Earth lasting for a
number of hours. This results in no HF radio contact with mariners and en route aviators in this sector.
**Navigation:** Low-frequency navigation signals used by maritime and general aviation systems experience outages
on the sunlit side of the Earth for many hours, causing loss in positioning. Increased satellite navigation errors in
positioning for several hours on the sunlit side of Earth, which may spread into the night side.
*GOES X-ray peak brightness by class and by flux (measured in the 0.1-0.8 nm range, in W·m-2)
??? danger "R4 (Severe)"
* **Physical measure:*** X10 ($10^{-3} Wm^{-2}$)
* **Average Frequency:** 8 days per cycle (11 years)
**HF Radio:** HF radio communication blackout on most of the sunlit side of Earth for one to two hours. HF radio
contact lost during this time.
**Navigation:** Outages of low-frequency navigation signals cause increased error in positioning for one to two
hours. Minor disruptions of satellite navigation possible on the sunlit side of Earth.
*GOES X-ray peak brightness by class and by flux (measured in the 0.1-0.8 nm range, in W·m-2)
??? warning "R3 (Strong)"
* **Physical measure:*** X1 ($10^{-4} Wm^{-2}$)
* **Average Frequency:** 140 days per cycle (11 years)
**HF Radio:** Wide area blackout of HF radio communication, loss of radio contact for about an hour on sunlit side
of Earth.
**Navigation:** Low-frequency navigation signals degraded for about an hour.
*GOES X-ray peak brightness by class and by flux (measured in the 0.1-0.8 nm range, in W·m-2)
??? warning "R2 (Moderate)"
* **Physical measure:*** M5 ($5e^{-5} Wm^{-2}$)
* **Average Frequency:** 300 days per cycle (11 years)
**HF Radio:** Limited blackout of HF radio communication on sunlit side of the Earth, loss of radio contact for tens
of minutes.
**Navigation:** Degradation of low-frequency navigation signals for tens of minutes.
*GOES X-ray peak brightness by class and by flux (measured in the 0.1-0.8 nm range, in W·m-2)
??? info "R1 (Minor)"
* **Physical measure:*** M1 ($10^{-5} Wm^{-2}$)
* **Average Frequency:** 950 days per cycle (11 years)
**HF Radio:** Weak or minor degradation of HF radio communication on sunlit side of the Earth, occasional loss of
radio contact.
**Navigation:** Low-frequency navigation signals degraded for brief intervals.
*GOES X-ray peak brightness by class and by flux (measured in the 0.1-0.8 nm range, in W·m-2)
## 4. X-Ray Solar Activity
This is a summary of the **X-Ray Flare Class**. Large solar X-ray flares can change the Earths ionosphere, which blocks high-frequency (HF) radio transmissions on the sunlit side of the Earth. Solar flares are also associated with Coronal Mass Ejections (CMEs) which can ultimately lead to geomagnetic storms. SWPC sends out space weather alerts at the M5 level. Some large flares are accompanied by strong radio bursts that may interfere with other radio frequencies and cause problems for satellite communication and radio navigation (GPS).
| Class | Peak Strength (W/m<sup>2</sup>) | Effects on Earth |
|-------|---------------------------------|--------------------------------------------------------------|
| B | I < 10<sup>-6</sup> | Too small to harm Earth |
| C | 10<sup>-6</sup> ≤ I < 10<sup>-5</sup> | Small with few noticeable consequences |
| M | 10<sup>-5</sup> ≤ I < 10<sup>-4</sup> | Brief radio blackouts in polar regions, minor radiation storms |
| X | I ≥ 10<sup>-4</sup> | Planet-wide radio blackouts, long-lasting radiation storms |
## 5. RF Propagation
### Maximum Usable Frequency
In radio transmission, the maximum usable frequency (MUF) is the highest frequency that can be effectively used for communication between two locations on Earth by reflecting off the ionosphere (via skywave or skip) at a given time, regardless of the transmitter's power. This measurement is particularly valuable for shortwave transmissions.
### Earth-Moon-Earth
EarthMoonEarth communication (EME), commonly referred to as Moon bounce, is a radio communication method in which radio waves are transmitted from an Earth-based station, reflected off the Moon's surface, and then received back on Earth. The value gives the probability of a succesfull connection.
### Meteor Scatter
Meteor burst communications (MBC), also known as meteor scatter (MS) communications, is a radio propagation technique that uses the ionized trails created by meteors entering the atmosphere to establish brief communication links between radio stations up to 2,250 kilometers (1,400 miles) apart. This can involve either forward-scatter or back-scatter of the radio waves. Like EME, the value gives the probability of a succesfull connection.
### Sporadic-E
**Report of the latest E-skip spots on 50, 70 & 144 MHz by [DXrobot](https://dxrobot.gooddx.net/)**
Sporadic E (Es or SpE) is a rare type of radio propagation that uses a lower part of the Earth's ionosphere, which typically doesn't refract radio waves. It reflects signals off small "clouds" in the E region at altitudes of 95-150 km (50-100 miles). Unlike the regular F region skywave propagation, which depends on daily cycles of ionized layers from UV light, Sporadic E uses transient ionized patches. This allows for occasional long-distance VHF communication, usually during the six weeks around the summer solstice, beyond the normal line-of-sight range.
### Aurora Spots
**Report of the latest aurora spots on 50, 70 & 144 MHz by [DXrobot](https://dxrobot.gooddx.net/)**
Auroral propagation, or auroral backscatter, is a form of radio propagation that occurs during an auroral event, affecting VHF and UHF communications. Increased ionization in the E layer of the ionosphere reflects signals at much higher frequencies than usual, enabling communication up to 1000 MHz, though 500 MHz is more common. Signals are directed towards the auroral region and reflected back, but they are often distorted due to particle movement (the signal is roughly Doppler shifted of 1 kHz at around 150 MHz as the electrons stream down).
### Expected HF Noise
This is just the expected noise in HF based on the current Space Weather conditions.
## 6. Report Age
Poseidon Daemon is in charge of parse all the necessary data used for the Space Weather module. The data of the last generated report is written here.

View File

@@ -0,0 +1,7 @@
#
![sw_current](../assets/sw_3.webp)
The D-Region Absorption Product (DRAP) evaluates the effects of solar X-ray flux and solar energetic particle (SEP) events on HF radio communication. Long-distance communications using high frequency (HF) radio waves (3 - 30 MHz) rely on signal reflection in the ionosphere. Typically, radio waves reflect near the peak of the F2 layer (~300 km altitude), but during their journey to and from this peak, the signals experience attenuation due to absorption by the intervening ionosphere.
The [D-Region Absorption Prediction model](https://www.swpc.noaa.gov/products/d-region-absorption-predictions-d-rap) provides guidance to understand the degradation and blackouts of HF radio communications that can result from these conditions.

View File

@@ -0,0 +1,15 @@
#
![sw_current](../assets/sw_2.webp)
## 1. Forecast Summary
Geomagnetic activity, Solar Radiation Storms and Radio Blackouts probable events (in the next 3 days) are described in this section.
## 2. 3-Day Kp Index
This is a 3 day projection of the [Kp index](current.md).
## 3. Events Probability
The probability (in percentage) of different events that can take place and generate some important conditions for RF propagation. All the event are explained [here](current.md).
!!! info
Geomagnetic Activity has two percentual value per day: the left one refers to high-latitude location and the right one is for middle-latitude locations.

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 20 KiB

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="#5f6368"><path d="M671-177q-11 7-22 13t-23 11q-15 7-30.5 0T574-176q-6-15 1.5-29.5T598-227q7-3 13-6.5t12-7.5L480-368v111q0 27-24.5 37.5T412-228L280-360H160q-17 0-28.5-11.5T120-400v-160q0-17 11.5-28.5T160-600h88L84-764q-11-11-11-28t11-28q11-11 28-11t28 11l680 680q11 11 11 28t-11 28q-11 11-28 11t-28-11l-93-93Zm89-304q0-83-44-151.5T598-735q-15-7-22-21.5t-2-29.5q6-16 21.5-23t31.5 0q97 43 155 131t58 197q0 33-6 65.5T817-353q-8 22-24.5 27.5t-30.5.5q-14-5-22.5-18t-.5-30q11-26 16-52.5t5-55.5ZM591-623q33 21 51 63t18 80v10q0 5-1 10-2 13-14 17t-22-6l-51-51q-6-6-9-13.5t-3-15.5v-77q0-12 10.5-17.5t20.5.5Zm-201-59q-6-6-6-14t6-14l22-22q19-19 43.5-8.5T480-703v63q0 14-12 19t-22-5l-56-56Z"/></svg>

After

Width:  |  Height:  |  Size: 783 B

View File

@@ -53,20 +53,26 @@ nav:
- Installation: 'installation.md'
- Run from source: 'run_from_source.md'
- Build Package: 'build_package.md'
- Basic Operations: 'basic_operations.md'
- Database:
- 'Overview': 'db_overview.md'
- Overview: 'database/db_overview.md'
- Structure:
- 'Info': 'db_info.md'
- 'Signals': 'db_signals.md'
- 'Frequency': 'db_frequency.md'
- 'Bandwidth': 'db_bandwidth.md'
- 'Modulation': 'db_modulation.md'
- 'Mode': 'db_mode.md'
- 'Location': 'db_location.md'
- 'Category': 'db_category.md'
- 'Category Label': 'db_cat_label.md'
- 'ACF': 'db_acf.md'
- SigID: 'sigid.md'
- Info: 'database/db_info.md'
- Signals: 'database/db_signals.md'
- Frequency: 'database/db_frequency.md'
- Bandwidth: 'database/db_bandwidth.md'
- Modulation: 'database/db_modulation.md'
- Mode: 'database/db_mode.md'
- Location: 'database/db_location.md'
- Category: 'database/db_category.md'
- Category Label: 'database/db_cat_label.md'
- ACF: 'database/db_acf.md'
- SigID: 'database/sigid.md'
- Space Weather:
- Current: 'space_weather/current.md'
- Forecasts: 'space_weather/forecasts.md'
- DRAP: 'space_weather/drap.md'
- Aurora: 'space_weather/aurora.md'
- Example:
- ACF Analysis: 'acf_analysis.md'
- Contribute: 'contribute.md'

View File

@@ -4,6 +4,7 @@ import QtQuick.Controls
import QtQuick.Window
import QtQuick.Controls.Material
Dialog {
x: (parent.width - width) / 2
y: (parent.height - height) / 2

View File

@@ -12,8 +12,8 @@ Window {
height: 800
Component.onCompleted: {
x = Screen.width/2 - width/2
y = Screen.height/2 - height/2
x = Screen.width / 2 - width / 2
y = Screen.height / 2 - height / 2
}
title: qsTr("Artemis")
@@ -55,8 +55,9 @@ Window {
listModel.clear()
for (var i = 0; i < loadedList.length; i++) {
var name = loadedList[i].name.toLowerCase()
var description = loadedList[i].description.toLowerCase()
var search = textFieldSearch.text.toLowerCase()
if (name.includes(search)) {
if (name.includes(search) || description.includes(search)) {
listModel.append(loadedList[i])
}
}
@@ -169,13 +170,16 @@ Window {
ColumnLayout {
anchors.fill: parent
Label {
text: qsTr("Enter the name of the new database:")
Layout.bottomMargin: 15
font.pointSize: 12
}
TextField {
id: newDbName
Layout.fillWidth: true
placeholderText: qsTr("New DB Name")
placeholderText: qsTr("Name")
}
}
onAccepted: {
@@ -211,9 +215,8 @@ Window {
Page {
anchors.fill: parent
leftPadding: 5
rightPadding: 5
bottomPadding: 5
leftPadding: 10
bottomPadding: 10
header: MenuBar {
id: topBar
@@ -317,6 +320,11 @@ Window {
MenuSeparator {}
MenuItem {
text: "Project Homepage"
onClicked: {Qt.openUrlExternally('https://aresvalley.com/')}
}
MenuItem {
text: "Documentation"
onClicked: {Qt.openUrlExternally('https://AresValley.github.io/Artemis')}
@@ -355,16 +363,18 @@ Window {
RowLayout {
anchors.fill: parent
spacing: 20
spacing: 10
ColumnLayout {
Layout.maximumWidth: 250
TextField {
id: textFieldSearch
Layout.preferredHeight: 39
Layout.topMargin: 5
enabled: false
Layout.fillWidth: true
Layout.topMargin: 10
placeholderText: qsTr("Search")
onTextChanged: {
refreshList()
@@ -413,16 +423,14 @@ Window {
TabBar {
id: tabBar
width: parent.width
Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
Layout.fillWidth: true
TabButton {
text: qsTr("Signal")
text: qsTr("SIGNAL")
}
TabButton {
text: qsTr("Filter")
text: qsTr("FILTERS")
}
}

View File

@@ -13,8 +13,8 @@ Window {
height: 400
Component.onCompleted: {
x = Screen.width/2 - width/2
y = Screen.height/2 - height/2
x = Screen.width / 2 - width / 2
y = Screen.height / 2 - height / 2
}
modality: Qt.ApplicationModal
@@ -41,14 +41,6 @@ Window {
}
}
function getModel() {
var modelList = []
for (var i = 0; i < myModel.count; i++) {
modelList.push(myModel.get(i).value)
}
return modelList
}
function clearAll() {
myModel.clear()
}
@@ -79,11 +71,15 @@ Window {
ColumnLayout {
anchors.fill: parent
Label {
text: qsTr("Enter the name of the new tag:")
Layout.bottomMargin: 15
font.pointSize: 12
}
TextField {
id: newCatName
Layout.fillWidth: true
placeholderText: qsTr("Tag")
placeholderText: qsTr("Tag Name")
}
}
@@ -105,11 +101,15 @@ Window {
ColumnLayout {
anchors.fill: parent
Label {
text: qsTr("Enter the new name for the tag:")
Layout.bottomMargin: 15
font.pointSize: 12
}
TextField {
id: renameCatName
Layout.fillWidth: true
placeholderText: qsTr("Tag")
placeholderText: qsTr("Tag Name")
}
}

View File

@@ -4,6 +4,7 @@ import QtQuick.Controls
import QtQuick.Controls.Material
import QtQuick.Layouts
Window {
id: windowDBmanager
@@ -41,14 +42,6 @@ Window {
}
}
function getModel() {
var modelList = []
for (var i = 0; i < myModel.count; i++) {
modelList.push(myModel.get(i).name)
}
return modelList
}
function clearAll() {
titleLabel.text = 'N/A'
totDocsLabel.text = ''
@@ -62,7 +55,6 @@ Window {
loadDB(myModel.get(listView.currentIndex).db_dir_name)
}
function renameDb() {
if (textDBName.readOnly) {
textDBName.focus = true
@@ -120,7 +112,11 @@ Window {
ColumnLayout {
anchors.fill: parent
Label {
text: qsTr("Enter the new for the database:")
Layout.bottomMargin: 15
font.pointSize: 12
}
TextField {
id: newDbName
Layout.fillWidth: true

View File

@@ -12,8 +12,8 @@ Window {
height: 500
Component.onCompleted: {
x = Screen.width/2 - width/2
y = Screen.height/2 - height/2
x = Screen.width / 2 - width / 2
y = Screen.height / 2 - height / 2
}
modality: Qt.ApplicationModal
@@ -167,9 +167,9 @@ Window {
id: fileDialog
title: "Please choose a file"
nameFilters: [
"Image (*.jpg *.png)",
"Audio (*.mp3 *.m4a *.ogg)",
"Document (*.txt *.pdf)",
"Image (*.png *.jpg *.jpeg *.gif *.bmp *.tiff *.tif *.webp *.svg *.heic *.raw *.cr2 *.nef *.orf *.sr2 *.arw *.dng)",
"Audio (*.mp3 *.wav *.aac *.flac *.alac *.wma *.ogg *.m4a *.aiff *.aif *.amr *.opus *.mid *.midi *.pcm)",
"Document (*.doc *.docx *.pdf *.txt *.rtf *.odt *.html *.htm *.xml *.ppt *.pptx *.xls *.xlsx *.csv *.epub *.mobi *.md *.tex *.wps)",
"All files (*)"
]

View File

@@ -213,6 +213,8 @@ Page {
ColumnLayout {
anchors.fill: parent
anchors.rightMargin: 10
anchors.topMargin: 10
GridLayout {
rows: 2

View File

@@ -12,8 +12,8 @@ Window {
height: 400
Component.onCompleted: {
x = Screen.width/2 - width/2
y = Screen.height/2 - height/2
x = Screen.width / 2 - width / 2
y = Screen.height / 2 - height / 2
}
modality: Qt.ApplicationModal
@@ -67,10 +67,10 @@ Window {
ColumnLayout {
anchors.fill: parent
anchors.rightMargin: 15
anchors.leftMargin: 15
anchors.bottomMargin: 15
anchors.topMargin: 15
anchors.rightMargin: 10
anchors.leftMargin: 10
anchors.bottomMargin: 10
anchors.topMargin: 10
RowLayout {
Layout.fillWidth: true

View File

@@ -12,8 +12,8 @@ Window {
height: 400
Component.onCompleted: {
x = Screen.width/2 - width/2
y = Screen.height/2 - height/2
x = Screen.width / 2 - width / 2
y = Screen.height / 2 - height / 2
}
modality: Qt.ApplicationModal

View File

@@ -168,6 +168,8 @@ Page {
ColumnLayout {
anchors.fill: parent
anchors.rightMargin: 10
anchors.topMargin: 10
Label {
id: signalName

View File

@@ -11,8 +11,8 @@ Window {
height: 700
Component.onCompleted: {
x = Screen.width/2 - width/2
y = Screen.height/2 - height/2
x = Screen.width / 2 - width / 2
y = Screen.height / 2 - height / 2
}
modality: Qt.ApplicationModal
@@ -50,6 +50,12 @@ Window {
TabButton {
text: qsTr("Forecasts")
}
TabButton {
text: qsTr("DRAP")
}
TabButton {
text: qsTr("Aurora")
}
}
StackLayout {
@@ -68,6 +74,18 @@ Window {
id: spaceWeatherForecastPage
}
}
Item {
SpaceWeatherDRAPPage {
id: spaceWeatherDRAPPage
}
}
Item {
SpaceWeatherAuroraPage {
id: spaceWeatherAuroraPage
}
}
}
}
}

View File

@@ -0,0 +1,49 @@
import QtQuick
import QtQuick.Window
import QtQuick.Controls
import QtQuick.Controls.Material
import QtQuick.Layouts
Page {
id: spaceWeatherAurora
anchors.fill: parent
objectName: "spaceWeatherAuroraObj"
function loadAuroraReport() {
checkUrlExists("https://www.aresvalley.com/poseidon_engine/aurora.png", function(exists) {
if (exists) {
imageBox.source = "https://www.aresvalley.com/poseidon_engine/aurora.png"
} else {
imageBox.source = "qrc:///images/artemis_not_available.svg"
}
})
}
function checkUrlExists(url, callback) {
var xhr = new XMLHttpRequest()
xhr.onreadystatechange = function() {
if (xhr.readyState === XMLHttpRequest.DONE) {
callback(xhr.status === 200)
}
}
xhr.open("HEAD", url, true)
xhr.send()
}
ColumnLayout {
anchors.fill: parent
anchors.rightMargin: 10
anchors.leftMargin: 10
anchors.bottomMargin: 10
anchors.topMargin: 10
Image {
id: imageBox
Layout.fillHeight: true
Layout.fillWidth: true
fillMode: Image.PreserveAspectFit
}
}
}

View File

@@ -39,6 +39,10 @@ Page {
labelMux.text = poseidon_data['PROPAGATION']['MUX']
labelEME.text = poseidon_data['PROPAGATION']['EME']
labelMS.text = poseidon_data['PROPAGATION']['MS']
labelESEU50.text = poseidon_data['PROPAGATION']['ES_EU_50']
labelESEU70.text = poseidon_data['PROPAGATION']['ES_EU_70']
labelESEU144.text = poseidon_data['PROPAGATION']['ES_EU_144']
labelESAURORA.text = poseidon_data['PROPAGATION']['ES_AURORA']
labelHfNoise.text = poseidon_data['AK']['exp_noise']
labelPeakFluxClass.text = poseidon_data['XRAY']['peak_flux_class']
@@ -75,10 +79,10 @@ Page {
RowLayout {
anchors.fill: parent
anchors.rightMargin: 20
anchors.leftMargin: 20
anchors.bottomMargin: 20
anchors.topMargin: 20
anchors.rightMargin: 10
anchors.leftMargin: 10
anchors.bottomMargin: 10
anchors.topMargin: 10
ColumnLayout {
Layout.fillHeight: true
@@ -261,7 +265,6 @@ Page {
Label {
text: qsTr("Current Flux Class:")
font.capitalization: Font.SmallCaps
}
Label {
@@ -274,7 +277,6 @@ Page {
Label {
text: qsTr("Peak 3h Flux Class:")
font.capitalization: Font.SmallCaps
}
Label {
@@ -287,7 +289,6 @@ Page {
Label {
text: qsTr("Peak 24h Flux Class:")
font.capitalization: Font.SmallCaps
}
Label {
@@ -321,7 +322,7 @@ Page {
columns: 2
Label {
text: qsTr("MUX (MHz):")
text: qsTr("Maximum Usable Frequency (MHz):")
}
Label {
@@ -334,7 +335,6 @@ Page {
Label {
text: qsTr("Earth-Moon-Earth:")
font.capitalization: Font.SmallCaps
}
Label {
@@ -347,7 +347,6 @@ Page {
Label {
text: qsTr("Meteor Scatter:")
font.capitalization: Font.SmallCaps
}
Label {
@@ -359,8 +358,55 @@ Page {
}
Label {
text: qsTr("Expected HF Noise:")
text: qsTr("Sporadic-E EU 50 MHz:")
}
Label {
id: labelESEU50
Layout.alignment: Qt.AlignRight | Qt.AlignVCenter
font.pointSize: 12
font.capitalization: Font.SmallCaps
font.bold: true
}
Label {
text: qsTr("Sporadic-E EU 70 MHz:")
}
Label {
id: labelESEU70
Layout.alignment: Qt.AlignRight | Qt.AlignVCenter
font.pointSize: 12
font.capitalization: Font.SmallCaps
font.bold: true
}
Label {
text: qsTr("Sporadic-E EU 144 MHz:")
}
Label {
id: labelESEU144
Layout.alignment: Qt.AlignRight | Qt.AlignVCenter
font.pointSize: 12
font.capitalization: Font.SmallCaps
font.bold: true
}
Label {
text: qsTr("Aurora Spots:")
}
Label {
id: labelESAURORA
Layout.alignment: Qt.AlignRight | Qt.AlignVCenter
font.pointSize: 12
font.capitalization: Font.SmallCaps
font.bold: true
}
Label {
text: qsTr("Expected HF Noise:")
}
Label {

107
ui/SpaceWeatherDRAPPage.qml Normal file
View File

@@ -0,0 +1,107 @@
import QtQuick
import QtQuick.Window
import QtQuick.Controls
import QtQuick.Controls.Material
import QtQuick.Layouts
Page {
id: spaceWeatherDRAP
anchors.fill: parent
objectName: "spaceWeatherDRAPObj"
function loadDrapReport(poseidon_data) {
labelRecovery.text = poseidon_data['DRAP']['Recovery Time']
labelXrayMsg.text = poseidon_data['DRAP']['XRay Msg']
labelProtonMsg.text = poseidon_data['DRAP']['Proton Msg']
checkUrlExists("https://www.aresvalley.com/poseidon_engine/drap.png", function(exists) {
if (exists) {
imageBox.source = "https://www.aresvalley.com/poseidon_engine/drap.png"
} else {
imageBox.source = "qrc:///images/artemis_not_available.svg"
}
})
}
function checkUrlExists(url, callback) {
var xhr = new XMLHttpRequest()
xhr.onreadystatechange = function() {
if (xhr.readyState === XMLHttpRequest.DONE) {
callback(xhr.status === 200)
}
}
xhr.open("HEAD", url, true)
xhr.send()
}
ColumnLayout {
anchors.fill: parent
anchors.rightMargin: 10
anchors.leftMargin: 10
anchors.bottomMargin: 10
anchors.topMargin: 10
Image {
id: imageBox
Layout.fillHeight: true
Layout.fillWidth: true
fillMode: Image.PreserveAspectFit
}
RowLayout {
Item {
Layout.fillWidth: true
}
Label {
text: qsTr("RECOVERY TIME:")
Layout.fillWidth: false
Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
}
Label {
id: labelRecovery
Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
font.pointSize: 12
font.bold: true
}
Item {
Layout.fillWidth: true
}
}
RowLayout {
Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
Layout.fillWidth: true
ColumnLayout {
Label {
text: qsTr("X-RAY STATUS")
}
Label {
id: labelXrayMsg
font.pointSize: 12
font.bold: true
}
}
Item {
Layout.fillWidth: true
}
ColumnLayout {
Label {
text: qsTr("PROTON STATUS")
Layout.alignment: Qt.AlignRight | Qt.AlignVCenter
}
Label {
id: labelProtonMsg
Layout.alignment: Qt.AlignRight | Qt.AlignVCenter
font.pointSize: 12
font.bold: true
}
}
}
}
}

View File

@@ -53,7 +53,6 @@ Page {
}
}
labelDay1Event.text = poseidon_data['FORCST']['PRE_DATES'][0]
labelDay2Event.text = poseidon_data['FORCST']['PRE_DATES'][1]
labelDay3Event.text = poseidon_data['FORCST']['PRE_DATES'][2]
@@ -119,13 +118,12 @@ Page {
labelEventMajor2.text = geoMajorM2 + ' / ' + geoMajorH2
}
ColumnLayout {
anchors.fill: parent
anchors.rightMargin: 20
anchors.leftMargin: 20
anchors.bottomMargin: 20
anchors.topMargin: 20
anchors.rightMargin: 10
anchors.leftMargin: 10
anchors.bottomMargin: 10
anchors.topMargin: 10
ColumnLayout {
Layout.fillHeight: true

View File

@@ -7,8 +7,8 @@ import QtMultimedia
Item {
width: 200
height: 80
width: 180
height: 132
property bool loop: false
@@ -28,7 +28,7 @@ Item {
buttonPause.enabled = true
buttonStop.enabled = true
buttonLoop.enabled = true
playerPosition.enabled = player.seekable
positionSlider.enabled = player.seekable
player.play()
}
@@ -65,10 +65,12 @@ Item {
buttonPause.enabled = false
buttonStop.enabled = false
buttonLoop.enabled = false
playerPosition.enabled = false
positionSlider.enabled = false
}
ColumnLayout {
anchors.fill: parent
spacing: 0
RowLayout {
spacing: 0
Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
@@ -83,6 +85,10 @@ Item {
onClicked: playSound()
}
Item {
Layout.fillWidth: true
}
RoundButton {
id: buttonPause
icon.color: Material.foreground
@@ -93,6 +99,10 @@ Item {
onClicked: pauseSound()
}
Item {
Layout.fillWidth: true
}
RoundButton {
id: buttonStop
icon.color: Material.foreground
@@ -103,6 +113,10 @@ Item {
onClicked: stopSound()
}
Item {
Layout.fillWidth: true
}
RoundButton {
id: buttonLoop
icon.color: Material.foreground
@@ -122,21 +136,43 @@ Item {
}
}
RowLayout {
Slider {
id: playerPosition
Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
id: positionSlider
Layout.preferredHeight: 20
enabled: player.seekable
value: player.duration > 0 ? player.position / player.duration : 0
Layout.fillWidth: true
onMoved: {
player.position = player.duration * playerPosition.position
player.position = player.duration * positionSlider.position
}
}
}
RowLayout {
Slider {
id: volumeSlider
Layout.preferredHeight: 20
value: 0.5
Layout.fillWidth: true
}
RoundButton {
id: buttonMute
icon.color: Material.foreground
icon.source: "qrc:/images/icons/player_mute.svg"
display: AbstractButton.IconOnly
enabled: true
flat: true
onClicked: {
volumeSlider.value = 0
}
}
}
MediaPlayer {
id: player
audioOutput: audioOutput
onPlaybackStateChanged: {
if (player.playbackState === MediaPlayer.StoppedState) {
if (loop) {
@@ -150,7 +186,7 @@ Item {
AudioOutput {
id: audioOutput
//volume: volumeSlider.value
volume: volumeSlider.value
}
}
}