Add APRS Feature
@ -308,6 +308,7 @@ if (BUILD_GUI)
|
|||||||
find_package(Qt5 COMPONENTS Quick)
|
find_package(Qt5 COMPONENTS Quick)
|
||||||
find_package(Qt5 COMPONENTS QuickWidgets)
|
find_package(Qt5 COMPONENTS QuickWidgets)
|
||||||
find_package(Qt5 COMPONENTS Positioning)
|
find_package(Qt5 COMPONENTS Positioning)
|
||||||
|
find_package(Qt5 COMPONENTS Charts)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# other requirements
|
# other requirements
|
||||||
|
BIN
doc/img/APRS_plugin.png
Normal file
After Width: | Height: | Size: 55 KiB |
67
plugins/feature/aprs/CMakeLists.txt
Normal file
@ -0,0 +1,67 @@
|
|||||||
|
project(aprs)
|
||||||
|
|
||||||
|
set(aprs_SOURCES
|
||||||
|
aprs.cpp
|
||||||
|
aprssettings.cpp
|
||||||
|
aprsplugin.cpp
|
||||||
|
aprsworker.cpp
|
||||||
|
aprswebapiadapter.cpp
|
||||||
|
)
|
||||||
|
|
||||||
|
set(aprs_HEADERS
|
||||||
|
aprs.h
|
||||||
|
aprssettings.h
|
||||||
|
aprsplugin.h
|
||||||
|
aprsreport.h
|
||||||
|
aprsworker.h
|
||||||
|
aprswebapiadapter.h
|
||||||
|
)
|
||||||
|
|
||||||
|
include_directories(
|
||||||
|
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
|
||||||
|
)
|
||||||
|
|
||||||
|
if(NOT SERVER_MODE)
|
||||||
|
set(aprs_SOURCES
|
||||||
|
${aprs_SOURCES}
|
||||||
|
aprsgui.cpp
|
||||||
|
aprsgui.ui
|
||||||
|
aprssettingsdialog.cpp
|
||||||
|
aprssettingsdialog.ui
|
||||||
|
aprs.qrc
|
||||||
|
)
|
||||||
|
set(aprs_HEADERS
|
||||||
|
${aprs_HEADERS}
|
||||||
|
aprsgui.h
|
||||||
|
aprssettingsdialog.h
|
||||||
|
)
|
||||||
|
|
||||||
|
set(TARGET_NAME aprs)
|
||||||
|
set(TARGET_LIB "Qt5::Widgets" Qt5::Charts)
|
||||||
|
set(TARGET_LIB_GUI "sdrgui")
|
||||||
|
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
|
||||||
|
else()
|
||||||
|
set(TARGET_NAME aprssrv)
|
||||||
|
set(TARGET_LIB "")
|
||||||
|
set(TARGET_LIB_GUI "")
|
||||||
|
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
|
||||||
|
endif()
|
||||||
|
|
||||||
|
add_library(${TARGET_NAME} SHARED
|
||||||
|
${aprs_SOURCES}
|
||||||
|
)
|
||||||
|
|
||||||
|
target_link_libraries(${TARGET_NAME}
|
||||||
|
Qt5::Core
|
||||||
|
${TARGET_LIB}
|
||||||
|
sdrbase
|
||||||
|
${TARGET_LIB_GUI}
|
||||||
|
)
|
||||||
|
|
||||||
|
install(TARGETS ${TARGET_NAME} DESTINATION ${INSTALL_FOLDER})
|
||||||
|
|
||||||
|
if(WIN32)
|
||||||
|
# Run deployqt for Charts etc
|
||||||
|
include(DeployQt)
|
||||||
|
windeployqt(${TARGET_NAME} ${SDRANGEL_BINARY_BIN_DIR} ${PROJECT_SOURCE_DIR}/aprs)
|
||||||
|
endif()
|
413
plugins/feature/aprs/aprs.cpp
Normal file
@ -0,0 +1,413 @@
|
|||||||
|
///////////////////////////////////////////////////////////////////////////////////
|
||||||
|
// Copyright (C) 2021 Jon Beniston, M7RCE //
|
||||||
|
// Copyright (C) 2020 Edouard Griffiths, F4EXB //
|
||||||
|
// //
|
||||||
|
// This program is free software; you can redistribute it and/or modify //
|
||||||
|
// it under the terms of the GNU General Public License as published by //
|
||||||
|
// the Free Software Foundation as version 3 of the License, or //
|
||||||
|
// (at your option) any later version. //
|
||||||
|
// //
|
||||||
|
// This program is distributed in the hope that it will be useful, //
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of //
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
|
||||||
|
// GNU General Public License V3 for more details. //
|
||||||
|
// //
|
||||||
|
// You should have received a copy of the GNU General Public License //
|
||||||
|
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#include <QDebug>
|
||||||
|
#include <QNetworkAccessManager>
|
||||||
|
#include <QNetworkReply>
|
||||||
|
#include <QBuffer>
|
||||||
|
|
||||||
|
#include "SWGFeatureSettings.h"
|
||||||
|
#include "SWGFeatureReport.h"
|
||||||
|
#include "SWGFeatureActions.h"
|
||||||
|
#include "SWGDeviceState.h"
|
||||||
|
|
||||||
|
#include "dsp/dspengine.h"
|
||||||
|
|
||||||
|
#include "device/deviceset.h"
|
||||||
|
#include "channel/channelapi.h"
|
||||||
|
#include "maincore.h"
|
||||||
|
#include "aprsworker.h"
|
||||||
|
#include "aprs.h"
|
||||||
|
|
||||||
|
MESSAGE_CLASS_DEFINITION(APRS::MsgConfigureAPRS, Message)
|
||||||
|
MESSAGE_CLASS_DEFINITION(APRS::MsgReportWorker, Message)
|
||||||
|
|
||||||
|
const char* const APRS::m_featureIdURI = "sdrangel.feature.aprs";
|
||||||
|
const char* const APRS::m_featureId = "APRS";
|
||||||
|
|
||||||
|
APRS::APRS(WebAPIAdapterInterface *webAPIAdapterInterface) :
|
||||||
|
Feature(m_featureIdURI, webAPIAdapterInterface)
|
||||||
|
{
|
||||||
|
qDebug("APRS::APRS: webAPIAdapterInterface: %p", webAPIAdapterInterface);
|
||||||
|
setObjectName(m_featureId);
|
||||||
|
m_worker = new APRSWorker(this, webAPIAdapterInterface);
|
||||||
|
m_state = StIdle;
|
||||||
|
m_errorMessage = "APRS error";
|
||||||
|
connect(&m_updatePipesTimer, SIGNAL(timeout()), this, SLOT(updatePipes()));
|
||||||
|
m_updatePipesTimer.start(1000);
|
||||||
|
}
|
||||||
|
|
||||||
|
APRS::~APRS()
|
||||||
|
{
|
||||||
|
if (m_worker->isRunning()) {
|
||||||
|
stop();
|
||||||
|
}
|
||||||
|
|
||||||
|
delete m_worker;
|
||||||
|
}
|
||||||
|
|
||||||
|
void APRS::start()
|
||||||
|
{
|
||||||
|
qDebug("APRS::start");
|
||||||
|
m_worker->reset();
|
||||||
|
m_worker->setMessageQueueToFeature(getInputMessageQueue());
|
||||||
|
m_worker->setMessageQueueToGUI(getMessageQueueToGUI());
|
||||||
|
bool ok = m_worker->startWork();
|
||||||
|
m_state = ok ? StIdle : StError;
|
||||||
|
m_thread.start();
|
||||||
|
|
||||||
|
APRSWorker::MsgConfigureAPRSWorker *msg = APRSWorker::MsgConfigureAPRSWorker::create(m_settings, true);
|
||||||
|
m_worker->getInputMessageQueue()->push(msg);
|
||||||
|
}
|
||||||
|
|
||||||
|
void APRS::stop()
|
||||||
|
{
|
||||||
|
qDebug("APRS::stop");
|
||||||
|
m_worker->stopWork();
|
||||||
|
m_state = StIdle;
|
||||||
|
m_thread.quit();
|
||||||
|
m_thread.wait();
|
||||||
|
}
|
||||||
|
|
||||||
|
bool APRS::handleMessage(const Message& cmd)
|
||||||
|
{
|
||||||
|
if (MsgConfigureAPRS::match(cmd))
|
||||||
|
{
|
||||||
|
MsgConfigureAPRS& cfg = (MsgConfigureAPRS&) cmd;
|
||||||
|
qDebug() << "APRS::handleMessage: MsgConfigureAPRS";
|
||||||
|
applySettings(cfg.getSettings(), cfg.getForce());
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
else if (MsgReportWorker::match(cmd))
|
||||||
|
{
|
||||||
|
MsgReportWorker& report = (MsgReportWorker&) cmd;
|
||||||
|
if (report.getMessage() == "Connected")
|
||||||
|
m_state = StRunning;
|
||||||
|
else if (report.getMessage() == "Disconnected")
|
||||||
|
m_state = StIdle;
|
||||||
|
else
|
||||||
|
{
|
||||||
|
m_state = StError;
|
||||||
|
m_errorMessage = report.getMessage();
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
else if (MainCore::MsgPacket::match(cmd))
|
||||||
|
{
|
||||||
|
MainCore::MsgPacket& report = (MainCore::MsgPacket&) cmd;
|
||||||
|
if (getMessageQueueToGUI())
|
||||||
|
{
|
||||||
|
MainCore::MsgPacket *copy = new MainCore::MsgPacket(report);
|
||||||
|
getMessageQueueToGUI()->push(copy);
|
||||||
|
}
|
||||||
|
if (m_state == StRunning)
|
||||||
|
{
|
||||||
|
MainCore::MsgPacket *copy = new MainCore::MsgPacket(report);
|
||||||
|
m_worker->getInputMessageQueue()->push(copy);
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void APRS::updatePipes()
|
||||||
|
{
|
||||||
|
QList<AvailablePipeSource> availablePipes = updateAvailablePipeSources("packets", APRSSettings::m_pipeTypes, APRSSettings::m_pipeURIs, this);
|
||||||
|
|
||||||
|
if (availablePipes != m_availablePipes)
|
||||||
|
{
|
||||||
|
m_availablePipes = availablePipes;
|
||||||
|
if (getMessageQueueToGUI())
|
||||||
|
{
|
||||||
|
MsgReportPipes *msgToGUI = MsgReportPipes::create();
|
||||||
|
QList<AvailablePipeSource>& msgAvailablePipes = msgToGUI->getAvailablePipes();
|
||||||
|
msgAvailablePipes.append(availablePipes);
|
||||||
|
getMessageQueueToGUI()->push(msgToGUI);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
QByteArray APRS::serialize() const
|
||||||
|
{
|
||||||
|
return m_settings.serialize();
|
||||||
|
}
|
||||||
|
|
||||||
|
bool APRS::deserialize(const QByteArray& data)
|
||||||
|
{
|
||||||
|
if (m_settings.deserialize(data))
|
||||||
|
{
|
||||||
|
MsgConfigureAPRS *msg = MsgConfigureAPRS::create(m_settings, true);
|
||||||
|
m_inputMessageQueue.push(msg);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
m_settings.resetToDefaults();
|
||||||
|
MsgConfigureAPRS *msg = MsgConfigureAPRS::create(m_settings, true);
|
||||||
|
m_inputMessageQueue.push(msg);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void APRS::applySettings(const APRSSettings& settings, bool force)
|
||||||
|
{
|
||||||
|
qDebug() << "APRS::applySettings:"
|
||||||
|
<< " m_igateEnabled: " << settings.m_igateEnabled
|
||||||
|
<< " m_title: " << settings.m_title
|
||||||
|
<< " m_rgbColor: " << settings.m_rgbColor
|
||||||
|
<< " m_useReverseAPI: " << settings.m_useReverseAPI
|
||||||
|
<< " m_reverseAPIAddress: " << settings.m_reverseAPIAddress
|
||||||
|
<< " m_reverseAPIPort: " << settings.m_reverseAPIPort
|
||||||
|
<< " m_reverseAPIFeatureSetIndex: " << settings.m_reverseAPIFeatureSetIndex
|
||||||
|
<< " m_reverseAPIFeatureIndex: " << settings.m_reverseAPIFeatureIndex
|
||||||
|
<< " force: " << force;
|
||||||
|
|
||||||
|
QList<QString> reverseAPIKeys;
|
||||||
|
|
||||||
|
if ((m_settings.m_igateEnabled != settings.m_igateEnabled) || force)
|
||||||
|
{
|
||||||
|
if (settings.m_igateEnabled)
|
||||||
|
start();
|
||||||
|
else
|
||||||
|
stop();
|
||||||
|
reverseAPIKeys.append("igateEnabled");
|
||||||
|
}
|
||||||
|
|
||||||
|
if ((m_settings.m_title != settings.m_title) || force) {
|
||||||
|
reverseAPIKeys.append("title");
|
||||||
|
}
|
||||||
|
if ((m_settings.m_rgbColor != settings.m_rgbColor) || force) {
|
||||||
|
reverseAPIKeys.append("rgbColor");
|
||||||
|
}
|
||||||
|
|
||||||
|
APRSWorker::MsgConfigureAPRSWorker *msg = APRSWorker::MsgConfigureAPRSWorker::create(
|
||||||
|
settings, force
|
||||||
|
);
|
||||||
|
m_worker->getInputMessageQueue()->push(msg);
|
||||||
|
|
||||||
|
if (settings.m_useReverseAPI)
|
||||||
|
{
|
||||||
|
bool fullUpdate = ((m_settings.m_useReverseAPI != settings.m_useReverseAPI) && settings.m_useReverseAPI) ||
|
||||||
|
(m_settings.m_reverseAPIAddress != settings.m_reverseAPIAddress) ||
|
||||||
|
(m_settings.m_reverseAPIPort != settings.m_reverseAPIPort) ||
|
||||||
|
(m_settings.m_reverseAPIFeatureSetIndex != settings.m_reverseAPIFeatureSetIndex) ||
|
||||||
|
(m_settings.m_reverseAPIFeatureIndex != settings.m_reverseAPIFeatureIndex);
|
||||||
|
webapiReverseSendSettings(reverseAPIKeys, settings, fullUpdate || force);
|
||||||
|
}
|
||||||
|
|
||||||
|
m_settings = settings;
|
||||||
|
}
|
||||||
|
|
||||||
|
int APRS::webapiRun(bool run,
|
||||||
|
SWGSDRangel::SWGDeviceState& response,
|
||||||
|
QString& errorMessage)
|
||||||
|
{
|
||||||
|
(void) errorMessage;
|
||||||
|
//getFeatureStateStr(*response.getState());
|
||||||
|
//MsgStartStopIGate *msg = MsgStartStopIGate::create(run);
|
||||||
|
//getInputMessageQueue()->push(msg);
|
||||||
|
return 202;
|
||||||
|
}
|
||||||
|
|
||||||
|
int APRS::webapiSettingsGet(
|
||||||
|
SWGSDRangel::SWGFeatureSettings& response,
|
||||||
|
QString& errorMessage)
|
||||||
|
{
|
||||||
|
(void) errorMessage;
|
||||||
|
response.setAprsSettings(new SWGSDRangel::SWGAPRSSettings());
|
||||||
|
response.getAprsSettings()->init();
|
||||||
|
webapiFormatFeatureSettings(response, m_settings);
|
||||||
|
return 200;
|
||||||
|
}
|
||||||
|
|
||||||
|
int APRS::webapiSettingsPutPatch(
|
||||||
|
bool force,
|
||||||
|
const QStringList& featureSettingsKeys,
|
||||||
|
SWGSDRangel::SWGFeatureSettings& response,
|
||||||
|
QString& errorMessage)
|
||||||
|
{
|
||||||
|
(void) errorMessage;
|
||||||
|
APRSSettings settings = m_settings;
|
||||||
|
webapiUpdateFeatureSettings(settings, featureSettingsKeys, response);
|
||||||
|
|
||||||
|
MsgConfigureAPRS *msg = MsgConfigureAPRS::create(settings, force);
|
||||||
|
m_inputMessageQueue.push(msg);
|
||||||
|
|
||||||
|
qDebug("APRS::webapiSettingsPutPatch: forward to GUI: %p", m_guiMessageQueue);
|
||||||
|
if (m_guiMessageQueue) // forward to GUI if any
|
||||||
|
{
|
||||||
|
MsgConfigureAPRS *msgToGUI = MsgConfigureAPRS::create(settings, force);
|
||||||
|
m_guiMessageQueue->push(msgToGUI);
|
||||||
|
}
|
||||||
|
|
||||||
|
webapiFormatFeatureSettings(response, settings);
|
||||||
|
|
||||||
|
return 200;
|
||||||
|
}
|
||||||
|
|
||||||
|
void APRS::webapiFormatFeatureSettings(
|
||||||
|
SWGSDRangel::SWGFeatureSettings& response,
|
||||||
|
const APRSSettings& settings)
|
||||||
|
{
|
||||||
|
response.getAprsSettings()->setIgateServer(new QString(settings.m_igateServer));
|
||||||
|
response.getAprsSettings()->setIgatePort(settings.m_igatePort);
|
||||||
|
response.getAprsSettings()->setIgateCallsign(new QString(settings.m_igateCallsign));
|
||||||
|
response.getAprsSettings()->setIgatePasscode(new QString(settings.m_igatePasscode));
|
||||||
|
response.getAprsSettings()->setIgateFilter(new QString(settings.m_igateFilter));
|
||||||
|
response.getAprsSettings()->setIgateEnabled(settings.m_igateEnabled ? 1 : 0);
|
||||||
|
|
||||||
|
if (response.getAprsSettings()->getTitle()) {
|
||||||
|
*response.getAprsSettings()->getTitle() = settings.m_title;
|
||||||
|
} else {
|
||||||
|
response.getAprsSettings()->setTitle(new QString(settings.m_title));
|
||||||
|
}
|
||||||
|
|
||||||
|
response.getAprsSettings()->setRgbColor(settings.m_rgbColor);
|
||||||
|
response.getAprsSettings()->setUseReverseApi(settings.m_useReverseAPI ? 1 : 0);
|
||||||
|
|
||||||
|
if (response.getAprsSettings()->getReverseApiAddress()) {
|
||||||
|
*response.getAprsSettings()->getReverseApiAddress() = settings.m_reverseAPIAddress;
|
||||||
|
} else {
|
||||||
|
response.getAprsSettings()->setReverseApiAddress(new QString(settings.m_reverseAPIAddress));
|
||||||
|
}
|
||||||
|
|
||||||
|
response.getAprsSettings()->setReverseApiPort(settings.m_reverseAPIPort);
|
||||||
|
response.getAprsSettings()->setReverseApiDeviceIndex(settings.m_reverseAPIFeatureSetIndex);
|
||||||
|
response.getAprsSettings()->setReverseApiChannelIndex(settings.m_reverseAPIFeatureIndex);
|
||||||
|
}
|
||||||
|
|
||||||
|
void APRS::webapiUpdateFeatureSettings(
|
||||||
|
APRSSettings& settings,
|
||||||
|
const QStringList& featureSettingsKeys,
|
||||||
|
SWGSDRangel::SWGFeatureSettings& response)
|
||||||
|
{
|
||||||
|
if (featureSettingsKeys.contains("igateServer")) {
|
||||||
|
settings.m_igateServer = *response.getAprsSettings()->getIgateServer();
|
||||||
|
}
|
||||||
|
if (featureSettingsKeys.contains("igatePort")) {
|
||||||
|
settings.m_igatePort = response.getAprsSettings()->getIgatePort();
|
||||||
|
}
|
||||||
|
if (featureSettingsKeys.contains("igateCallsign")) {
|
||||||
|
settings.m_igateCallsign = *response.getAprsSettings()->getIgateCallsign();
|
||||||
|
}
|
||||||
|
if (featureSettingsKeys.contains("igatePasscode")) {
|
||||||
|
settings.m_igatePasscode = *response.getAprsSettings()->getIgatePasscode();
|
||||||
|
}
|
||||||
|
if (featureSettingsKeys.contains("igateFilter")) {
|
||||||
|
settings.m_igateFilter = *response.getAprsSettings()->getIgateFilter();
|
||||||
|
}
|
||||||
|
if (featureSettingsKeys.contains("title")) {
|
||||||
|
settings.m_title = *response.getAprsSettings()->getTitle();
|
||||||
|
}
|
||||||
|
if (featureSettingsKeys.contains("rgbColor")) {
|
||||||
|
settings.m_rgbColor = response.getAprsSettings()->getRgbColor();
|
||||||
|
}
|
||||||
|
if (featureSettingsKeys.contains("useReverseAPI")) {
|
||||||
|
settings.m_useReverseAPI = response.getAprsSettings()->getUseReverseApi() != 0;
|
||||||
|
}
|
||||||
|
if (featureSettingsKeys.contains("reverseAPIAddress")) {
|
||||||
|
settings.m_reverseAPIAddress = *response.getAprsSettings()->getReverseApiAddress();
|
||||||
|
}
|
||||||
|
if (featureSettingsKeys.contains("reverseAPIPort")) {
|
||||||
|
settings.m_reverseAPIPort = response.getAprsSettings()->getReverseApiPort();
|
||||||
|
}
|
||||||
|
if (featureSettingsKeys.contains("reverseAPIDeviceIndex")) {
|
||||||
|
settings.m_reverseAPIFeatureSetIndex = response.getAprsSettings()->getReverseApiDeviceIndex();
|
||||||
|
}
|
||||||
|
if (featureSettingsKeys.contains("reverseAPIChannelIndex")) {
|
||||||
|
settings.m_reverseAPIFeatureIndex = response.getAprsSettings()->getReverseApiChannelIndex();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void APRS::webapiReverseSendSettings(QList<QString>& featureSettingsKeys, const APRSSettings& settings, bool force)
|
||||||
|
{
|
||||||
|
SWGSDRangel::SWGFeatureSettings *swgFeatureSettings = new SWGSDRangel::SWGFeatureSettings();
|
||||||
|
// swgFeatureSettings->setOriginatorFeatureIndex(getIndexInDeviceSet());
|
||||||
|
// swgFeatureSettings->setOriginatorFeatureSetIndex(getDeviceSetIndex());
|
||||||
|
swgFeatureSettings->setFeatureType(new QString("APRS"));
|
||||||
|
swgFeatureSettings->setAprsSettings(new SWGSDRangel::SWGAPRSSettings());
|
||||||
|
SWGSDRangel::SWGAPRSSettings *swgAPRSSettings = swgFeatureSettings->getAprsSettings();
|
||||||
|
|
||||||
|
// transfer data that has been modified. When force is on transfer all data except reverse API data
|
||||||
|
|
||||||
|
if (featureSettingsKeys.contains("igateServer") || force) {
|
||||||
|
swgAPRSSettings->setIgateServer(new QString(settings.m_igateServer));
|
||||||
|
}
|
||||||
|
if (featureSettingsKeys.contains("igatePort") || force) {
|
||||||
|
swgAPRSSettings->setIgatePort(settings.m_igatePort);
|
||||||
|
}
|
||||||
|
if (featureSettingsKeys.contains("igateCallsign") || force) {
|
||||||
|
swgAPRSSettings->setIgateCallsign(new QString(settings.m_igateCallsign));
|
||||||
|
}
|
||||||
|
if (featureSettingsKeys.contains("igatePasscode") || force) {
|
||||||
|
swgAPRSSettings->setIgatePasscode(new QString(settings.m_igatePasscode));
|
||||||
|
}
|
||||||
|
if (featureSettingsKeys.contains("igateFilter") || force) {
|
||||||
|
swgAPRSSettings->setIgateFilter(new QString(settings.m_igateFilter));
|
||||||
|
}
|
||||||
|
if (featureSettingsKeys.contains("title") || force) {
|
||||||
|
swgAPRSSettings->setTitle(new QString(settings.m_title));
|
||||||
|
}
|
||||||
|
if (featureSettingsKeys.contains("rgbColor") || force) {
|
||||||
|
swgAPRSSettings->setRgbColor(settings.m_rgbColor);
|
||||||
|
}
|
||||||
|
|
||||||
|
QString channelSettingsURL = QString("http://%1:%2/sdrangel/featureset/%3/feature/%4/settings")
|
||||||
|
.arg(settings.m_reverseAPIAddress)
|
||||||
|
.arg(settings.m_reverseAPIPort)
|
||||||
|
.arg(settings.m_reverseAPIFeatureSetIndex)
|
||||||
|
.arg(settings.m_reverseAPIFeatureIndex);
|
||||||
|
m_networkRequest.setUrl(QUrl(channelSettingsURL));
|
||||||
|
m_networkRequest.setHeader(QNetworkRequest::ContentTypeHeader, "application/json");
|
||||||
|
|
||||||
|
QBuffer *buffer = new QBuffer();
|
||||||
|
buffer->open((QBuffer::ReadWrite));
|
||||||
|
buffer->write(swgFeatureSettings->asJson().toUtf8());
|
||||||
|
buffer->seek(0);
|
||||||
|
|
||||||
|
// Always use PATCH to avoid passing reverse API settings
|
||||||
|
QNetworkReply *reply = m_networkManager->sendCustomRequest(m_networkRequest, "PATCH", buffer);
|
||||||
|
buffer->setParent(reply);
|
||||||
|
|
||||||
|
delete swgFeatureSettings;
|
||||||
|
}
|
||||||
|
|
||||||
|
void APRS::networkManagerFinished(QNetworkReply *reply)
|
||||||
|
{
|
||||||
|
QNetworkReply::NetworkError replyError = reply->error();
|
||||||
|
|
||||||
|
if (replyError)
|
||||||
|
{
|
||||||
|
qWarning() << "APRS::networkManagerFinished:"
|
||||||
|
<< " error(" << (int) replyError
|
||||||
|
<< "): " << replyError
|
||||||
|
<< ": " << reply->errorString();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
QString answer = reply->readAll();
|
||||||
|
answer.chop(1); // remove last \n
|
||||||
|
qDebug("APRS::networkManagerFinished: reply:\n%s", answer.toStdString().c_str());
|
||||||
|
}
|
||||||
|
|
||||||
|
reply->deleteLater();
|
||||||
|
}
|
143
plugins/feature/aprs/aprs.h
Normal file
@ -0,0 +1,143 @@
|
|||||||
|
///////////////////////////////////////////////////////////////////////////////////
|
||||||
|
// Copyright (C) 2021 Jon Beniston, M7RCE //
|
||||||
|
// Copyright (C) 2020 Edouard Griffiths, F4EXB //
|
||||||
|
// //
|
||||||
|
// This program is free software; you can redistribute it and/or modify //
|
||||||
|
// it under the terms of the GNU General Public License as published by //
|
||||||
|
// the Free Software Foundation as version 3 of the License, or //
|
||||||
|
// (at your option) any later version. //
|
||||||
|
// //
|
||||||
|
// This program is distributed in the hope that it will be useful, //
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of //
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
|
||||||
|
// GNU General Public License V3 for more details. //
|
||||||
|
// //
|
||||||
|
// You should have received a copy of the GNU General Public License //
|
||||||
|
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifndef INCLUDE_FEATURE_APRS_H_
|
||||||
|
#define INCLUDE_FEATURE_APRS_H_
|
||||||
|
|
||||||
|
#include <QThread>
|
||||||
|
#include <QHash>
|
||||||
|
#include <QNetworkRequest>
|
||||||
|
#include <QTimer>
|
||||||
|
|
||||||
|
#include "feature/feature.h"
|
||||||
|
#include "util/message.h"
|
||||||
|
|
||||||
|
#include "aprssettings.h"
|
||||||
|
|
||||||
|
class WebAPIAdapterInterface;
|
||||||
|
class APRSWorker;
|
||||||
|
class QNetworkAccessManager;
|
||||||
|
class QNetworkReply;
|
||||||
|
|
||||||
|
namespace SWGSDRangel {
|
||||||
|
class SWGDeviceState;
|
||||||
|
}
|
||||||
|
|
||||||
|
class APRS : public Feature
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
public:
|
||||||
|
class MsgConfigureAPRS : public Message {
|
||||||
|
MESSAGE_CLASS_DECLARATION
|
||||||
|
|
||||||
|
public:
|
||||||
|
const APRSSettings& getSettings() const { return m_settings; }
|
||||||
|
bool getForce() const { return m_force; }
|
||||||
|
|
||||||
|
static MsgConfigureAPRS* create(const APRSSettings& settings, bool force) {
|
||||||
|
return new MsgConfigureAPRS(settings, force);
|
||||||
|
}
|
||||||
|
|
||||||
|
private:
|
||||||
|
APRSSettings m_settings;
|
||||||
|
bool m_force;
|
||||||
|
|
||||||
|
MsgConfigureAPRS(const APRSSettings& settings, bool force) :
|
||||||
|
Message(),
|
||||||
|
m_settings(settings),
|
||||||
|
m_force(force)
|
||||||
|
{ }
|
||||||
|
};
|
||||||
|
|
||||||
|
class MsgReportWorker : public Message {
|
||||||
|
MESSAGE_CLASS_DECLARATION
|
||||||
|
|
||||||
|
public:
|
||||||
|
QString getMessage() { return m_message; }
|
||||||
|
|
||||||
|
static MsgReportWorker* create(QString message) {
|
||||||
|
return new MsgReportWorker(message);
|
||||||
|
}
|
||||||
|
|
||||||
|
private:
|
||||||
|
QString m_message;
|
||||||
|
|
||||||
|
MsgReportWorker(QString message) :
|
||||||
|
Message(),
|
||||||
|
m_message(message)
|
||||||
|
{}
|
||||||
|
};
|
||||||
|
|
||||||
|
APRS(WebAPIAdapterInterface *webAPIAdapterInterface);
|
||||||
|
virtual ~APRS();
|
||||||
|
virtual void destroy() { delete this; }
|
||||||
|
virtual bool handleMessage(const Message& cmd);
|
||||||
|
|
||||||
|
virtual void getIdentifier(QString& id) const { id = objectName(); }
|
||||||
|
virtual void getTitle(QString& title) const { title = m_settings.m_title; }
|
||||||
|
|
||||||
|
virtual QByteArray serialize() const;
|
||||||
|
virtual bool deserialize(const QByteArray& data);
|
||||||
|
|
||||||
|
virtual int webapiRun(bool run,
|
||||||
|
SWGSDRangel::SWGDeviceState& response,
|
||||||
|
QString& errorMessage);
|
||||||
|
|
||||||
|
virtual int webapiSettingsGet(
|
||||||
|
SWGSDRangel::SWGFeatureSettings& response,
|
||||||
|
QString& errorMessage);
|
||||||
|
|
||||||
|
virtual int webapiSettingsPutPatch(
|
||||||
|
bool force,
|
||||||
|
const QStringList& featureSettingsKeys,
|
||||||
|
SWGSDRangel::SWGFeatureSettings& response,
|
||||||
|
QString& errorMessage);
|
||||||
|
|
||||||
|
static void webapiFormatFeatureSettings(
|
||||||
|
SWGSDRangel::SWGFeatureSettings& response,
|
||||||
|
const APRSSettings& settings);
|
||||||
|
|
||||||
|
static void webapiUpdateFeatureSettings(
|
||||||
|
APRSSettings& settings,
|
||||||
|
const QStringList& featureSettingsKeys,
|
||||||
|
SWGSDRangel::SWGFeatureSettings& response);
|
||||||
|
|
||||||
|
static const char* const m_featureIdURI;
|
||||||
|
static const char* const m_featureId;
|
||||||
|
|
||||||
|
private:
|
||||||
|
QThread m_thread;
|
||||||
|
APRSWorker *m_worker;
|
||||||
|
APRSSettings m_settings;
|
||||||
|
QList<PipeEndPoint::AvailablePipeSource> m_availablePipes;
|
||||||
|
QTimer m_updatePipesTimer;
|
||||||
|
|
||||||
|
QNetworkAccessManager *m_networkManager;
|
||||||
|
QNetworkRequest m_networkRequest;
|
||||||
|
|
||||||
|
void start();
|
||||||
|
void stop();
|
||||||
|
void applySettings(const APRSSettings& settings, bool force = false);
|
||||||
|
void webapiReverseSendSettings(QList<QString>& featureSettingsKeys, const APRSSettings& settings, bool force);
|
||||||
|
|
||||||
|
private slots:
|
||||||
|
void updatePipes();
|
||||||
|
void networkManagerFinished(QNetworkReply *reply);
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // INCLUDE_FEATURE_APRS_H_
|
196
plugins/feature/aprs/aprs.qrc
Normal file
@ -0,0 +1,196 @@
|
|||||||
|
<RCC>
|
||||||
|
<qresource prefix="/aprs/">
|
||||||
|
<file>aprs/aprs-symbols-24-0-00.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-01.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-02.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-03.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-04.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-05.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-06.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-07.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-08.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-09.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-10.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-11.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-12.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-13.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-14.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-15.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-16.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-17.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-18.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-19.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-20.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-21.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-22.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-23.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-24.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-25.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-26.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-27.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-28.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-29.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-30.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-31.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-32.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-33.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-34.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-35.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-36.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-37.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-38.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-39.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-40.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-41.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-42.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-43.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-44.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-45.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-46.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-47.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-48.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-49.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-50.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-51.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-52.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-53.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-54.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-55.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-56.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-57.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-58.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-59.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-60.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-61.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-62.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-63.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-64.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-65.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-66.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-67.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-68.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-69.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-70.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-71.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-72.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-73.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-74.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-75.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-76.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-77.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-78.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-79.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-80.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-81.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-82.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-83.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-84.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-85.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-86.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-87.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-88.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-89.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-90.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-91.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-92.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-93.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-94.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-0-95.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-00.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-01.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-02.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-03.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-04.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-05.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-06.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-07.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-08.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-09.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-10.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-11.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-12.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-13.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-14.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-15.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-16.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-17.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-18.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-19.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-20.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-21.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-22.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-23.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-24.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-25.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-26.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-27.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-28.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-29.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-30.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-31.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-32.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-33.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-34.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-35.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-36.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-37.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-38.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-39.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-40.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-41.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-42.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-43.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-44.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-45.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-46.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-47.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-48.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-49.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-50.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-51.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-52.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-53.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-54.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-55.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-56.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-57.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-58.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-59.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-60.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-61.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-62.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-63.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-64.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-65.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-66.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-67.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-68.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-69.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-70.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-71.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-72.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-73.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-74.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-75.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-76.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-77.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-78.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-79.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-80.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-81.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-82.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-83.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-84.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-85.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-86.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-87.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-88.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-89.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-90.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-91.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-92.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-93.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-94.png</file>
|
||||||
|
<file>aprs/aprs-symbols-24-1-95.png</file>
|
||||||
|
</qresource>
|
||||||
|
</RCC>
|
6
plugins/feature/aprs/aprs/README.txt
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
APRS images are from: https://github.com/hessu/aprs-symbols/tree/master/png
|
||||||
|
|
||||||
|
To split in to individual files, using ImageMagick:
|
||||||
|
|
||||||
|
convert aprs-symbols-24-0.png -crop 24x24 aprs-symbols-24-0-%02d.png
|
||||||
|
convert aprs-symbols-24-1.png -crop 24x24 aprs-symbols-24-1-%02d.png
|
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-00.png
Normal file
After Width: | Height: | Size: 617 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-01.png
Normal file
After Width: | Height: | Size: 523 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-02.png
Normal file
After Width: | Height: | Size: 661 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-03.png
Normal file
After Width: | Height: | Size: 544 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-04.png
Normal file
After Width: | Height: | Size: 586 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-05.png
Normal file
After Width: | Height: | Size: 566 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-06.png
Normal file
After Width: | Height: | Size: 867 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-07.png
Normal file
After Width: | Height: | Size: 1.0 KiB |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-08.png
Normal file
After Width: | Height: | Size: 535 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-09.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-10.png
Normal file
After Width: | Height: | Size: 372 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-11.png
Normal file
After Width: | Height: | Size: 544 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-12.png
Normal file
After Width: | Height: | Size: 511 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-13.png
Normal file
After Width: | Height: | Size: 533 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-14.png
Normal file
After Width: | Height: | Size: 623 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-15.png
Normal file
After Width: | Height: | Size: 500 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-16.png
Normal file
After Width: | Height: | Size: 461 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-17.png
Normal file
After Width: | Height: | Size: 531 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-18.png
Normal file
After Width: | Height: | Size: 538 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-19.png
Normal file
After Width: | Height: | Size: 517 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-20.png
Normal file
After Width: | Height: | Size: 525 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-21.png
Normal file
After Width: | Height: | Size: 536 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-22.png
Normal file
After Width: | Height: | Size: 509 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-23.png
Normal file
After Width: | Height: | Size: 536 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-24.png
Normal file
After Width: | Height: | Size: 531 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-25.png
Normal file
After Width: | Height: | Size: 847 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-26.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-27.png
Normal file
After Width: | Height: | Size: 1.0 KiB |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-28.png
Normal file
After Width: | Height: | Size: 747 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-29.png
Normal file
After Width: | Height: | Size: 855 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-30.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-31.png
Normal file
After Width: | Height: | Size: 764 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-32.png
Normal file
After Width: | Height: | Size: 379 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-33.png
Normal file
After Width: | Height: | Size: 528 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-34.png
Normal file
After Width: | Height: | Size: 725 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-35.png
Normal file
After Width: | Height: | Size: 535 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-36.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-37.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-38.png
Normal file
After Width: | Height: | Size: 380 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-39.png
Normal file
After Width: | Height: | Size: 473 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-40.png
Normal file
After Width: | Height: | Size: 713 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-41.png
Normal file
After Width: | Height: | Size: 509 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-42.png
Normal file
After Width: | Height: | Size: 688 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-43.png
Normal file
After Width: | Height: | Size: 771 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-44.png
Normal file
After Width: | Height: | Size: 691 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-45.png
Normal file
After Width: | Height: | Size: 560 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-46.png
Normal file
After Width: | Height: | Size: 821 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-47.png
Normal file
After Width: | Height: | Size: 730 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-48.png
Normal file
After Width: | Height: | Size: 716 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-49.png
Normal file
After Width: | Height: | Size: 534 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-50.png
Normal file
After Width: | Height: | Size: 709 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-51.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-52.png
Normal file
After Width: | Height: | Size: 691 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-53.png
Normal file
After Width: | Height: | Size: 1.0 KiB |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-54.png
Normal file
After Width: | Height: | Size: 638 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-55.png
Normal file
After Width: | Height: | Size: 817 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-56.png
Normal file
After Width: | Height: | Size: 658 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-57.png
Normal file
After Width: | Height: | Size: 937 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-58.png
Normal file
After Width: | Height: | Size: 546 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-59.png
Normal file
After Width: | Height: | Size: 580 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-60.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-61.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-62.png
Normal file
After Width: | Height: | Size: 644 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-63.png
Normal file
After Width: | Height: | Size: 653 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-64.png
Normal file
After Width: | Height: | Size: 556 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-65.png
Normal file
After Width: | Height: | Size: 1.0 KiB |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-66.png
Normal file
After Width: | Height: | Size: 501 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-67.png
Normal file
After Width: | Height: | Size: 533 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-68.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-69.png
Normal file
After Width: | Height: | Size: 635 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-70.png
Normal file
After Width: | Height: | Size: 893 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-71.png
Normal file
After Width: | Height: | Size: 407 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-72.png
Normal file
After Width: | Height: | Size: 876 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-73.png
Normal file
After Width: | Height: | Size: 740 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-74.png
Normal file
After Width: | Height: | Size: 778 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-75.png
Normal file
After Width: | Height: | Size: 850 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-76.png
Normal file
After Width: | Height: | Size: 673 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-77.png
Normal file
After Width: | Height: | Size: 759 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-78.png
Normal file
After Width: | Height: | Size: 656 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-79.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-80.png
Normal file
After Width: | Height: | Size: 358 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-81.png
Normal file
After Width: | Height: | Size: 909 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-82.png
Normal file
After Width: | Height: | Size: 669 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-83.png
Normal file
After Width: | Height: | Size: 476 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-84.png
Normal file
After Width: | Height: | Size: 548 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-85.png
Normal file
After Width: | Height: | Size: 681 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-86.png
Normal file
After Width: | Height: | Size: 498 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-87.png
Normal file
After Width: | Height: | Size: 841 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-88.png
Normal file
After Width: | Height: | Size: 726 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-89.png
Normal file
After Width: | Height: | Size: 456 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-90.png
Normal file
After Width: | Height: | Size: 515 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-91.png
Normal file
After Width: | Height: | Size: 373 B |
BIN
plugins/feature/aprs/aprs/aprs-symbols-24-0-92.png
Normal file
After Width: | Height: | Size: 527 B |