Skip to content

Commit ff59839

Browse files
committed
Added signal level units (Thanks to Winfried).
1 parent d366856 commit ff59839

24 files changed

+295
-38
lines changed

HISTORY

+4
Original file line numberDiff line numberDiff line change
@@ -547,3 +547,7 @@ VDR Plugin 'femon' Revision History
547547
2018-04-15: Version 2.4.0
548548

549549
- Updated for vdr-2.4.0.
550+
551+
2019-xx-xx: Version 2.4.1
552+
553+
- Added signal level units (Thanks to Winfried).

README

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Terminology:
3838
| [LOCK] [SIGNAL] [CARRIER] [VITERBI] [SYNC] |
3939
--------------------------------------------------------------
4040

41-
STR - Signal strength in dBm
41+
STR - Signal strength in dBm/dBuV/dbV
4242
CNR - Signal-to-noise ratio of the main carrier in dB
4343
BER - Bit error rate after the forward error correction (FEC) done by inner code block
4444
PER - Block error rate after the outer forward error correction coding

config.c

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ cFemonConfig::cFemonConfig()
2020
themeM(0),
2121
positionM(1),
2222
downscaleM(0),
23+
signalUnitM(0),
2324
redLimitM(33),
2425
greenLimitM(66),
2526
updateIntervalM(5),

config.h

+11
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@ enum eFemonModes
1919
eFemonModeMaxNumber
2020
};
2121

22+
enum eFemonSignalUnit
23+
{
24+
eFemonSignalUnitdBm,
25+
eFemonSignalUnitdBuV,
26+
eFemonSignalUnitdBV,
27+
eFemonSignalUnitMaxNumber
28+
};
29+
2230
class cFemonConfig
2331
{
2432
private:
@@ -29,6 +37,7 @@ class cFemonConfig
2937
int themeM;
3038
int positionM;
3139
int downscaleM;
40+
int signalUnitM;
3241
int redLimitM;
3342
int greenLimitM;
3443
int updateIntervalM;
@@ -68,6 +77,7 @@ class cFemonConfig
6877
int GetTheme(void) const { return themeM; }
6978
int GetPosition(void) const { return positionM; }
7079
int GetDownscale(void) const { return downscaleM; }
80+
int GetSignalUnit(void) const { return signalUnitM; }
7181
int GetRedLimit(void) const { return redLimitM; }
7282
int GetGreenLimit(void) const { return greenLimitM; }
7383
int GetUpdateInterval(void) const { return updateIntervalM; }
@@ -84,6 +94,7 @@ class cFemonConfig
8494
void SetTheme(int themeP) { themeM = themeP; }
8595
void SetPosition(int positionP) { positionM = positionP; }
8696
void SetDownscale(int downscaleP) { downscaleM = downscaleP; }
97+
void SetSignalUnit(int signalUnitP) { signalUnitM = signalUnitP; }
8798
void SetRedLimit(int redLimitP) { redLimitM = redLimitP; }
8899
void SetGreenLimit(int greenLimitP) { greenLimitM = greenLimitP; }
89100
void SetUpdateInterval(int updateIntervalP) { updateIntervalM = updateIntervalP; }

femon.c

+4-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#define GITVERSION ""
2626
#endif
2727

28-
static const char VERSION[] = "2.4.0" GITVERSION;
28+
static const char VERSION[] = "2.4.1" GITVERSION;
2929
static const char DESCRIPTION[] = trNOOP("DVB Signal Information Monitor (OSD)");
3030
static const char MAINMENUENTRY[] = trNOOP("Signal Information");
3131

@@ -165,6 +165,8 @@ bool cPluginFemon::SetupParse(const char *nameP, const char *valueP)
165165
FemonConfig.SetSvdrpPort(atoi(valueP));
166166
else if (!strcasecmp(nameP, "ServerIp"))
167167
FemonConfig.SetSvdrpIp(valueP);
168+
else if (!strcasecmp(nameP, "SignalUnit"))
169+
FemonConfig.SetSignalUnit(atoi(valueP));
168170
else
169171
return false;
170172

@@ -292,7 +294,7 @@ cString cPluginFemon::SVDRPCommand(const char *commandP, const char *optionP, in
292294
return cString::sprintf("%d on device #%d", dev->SignalQuality(), dev->CardIndex());
293295
}
294296
else if (strcasecmp(commandP, "SGNL") == 0) {
295-
return cString::sprintf("%.2f dBm on device #%d", getSignal(dev), dev->CardIndex());
297+
return cString::sprintf("%s on device #%d", *getSignalStrength(getSignal(dev)), dev->CardIndex());
296298
}
297299
else if (strcasecmp(commandP, "CNRA") == 0) {
298300
return cString::sprintf("%.2f dB on device #%d", getCNR(dev), dev->CardIndex());

osd.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ void cFemonOsd::DrawStatusWindow(void)
371371
if (qualityValidM)
372372
OSDDRAWSTATUSBAR(qualityM);
373373
offset += OSDROWHEIGHT;
374-
OSDDRAWSTATUSVALUES(signalValidM ? *cString::sprintf("STR: %.2f dBm", signalM) : "STR: ---",
374+
OSDDRAWSTATUSVALUES(signalValidM ? *cString::sprintf("STR: %s", *getSignalStrength(signalM)) : "STR: ---",
375375
cnrValidM ? *cString::sprintf("CNR: %.2f dB", cnrM) : "CNR: ---",
376376
berValidM ? *cString::sprintf("BER: %.0f", berM) : "BER: ---",
377377
perValidM ? *cString::sprintf("PER: %.0f", perM) : "PER: ---",

po/de_DE.po

+18-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
# VDR plugin language source file.
2-
# Copyright (C) 2007-2018 Rolf Ahrenberg
2+
# Copyright (C) 2007-2019 Rolf Ahrenberg
33
# This file is distributed under the same license as the femon package.
44
# Peter Marquardt
55
# Andreas Brachold
6-
# Christian Wieninger
6+
# Christian Wieninger
7+
# Winfried
78
#
89
msgid ""
910
msgstr ""
@@ -129,6 +130,15 @@ msgstr "Transponder"
129130
msgid "stream"
130131
msgstr "Stream"
131132

133+
msgid "dBm"
134+
msgstr "dBm"
135+
136+
msgid "dBuV"
137+
msgstr "dBuV"
138+
139+
msgid "dBV"
140+
msgstr "dBV"
141+
132142
msgid "Classic"
133143
msgstr "Klassischer"
134144

@@ -189,6 +199,12 @@ msgstr "OSD Größe verkleinern [%]"
189199
msgid "Define the downscale ratio for OSD size."
190200
msgstr "Definiert den Verkleinerungsfaktor der OSD-Größe."
191201

202+
msgid "Signal level unit"
203+
msgstr "Signalpegel Einheiten"
204+
205+
msgid "Define the used signal level unit."
206+
msgstr "Definiert der Einheit für Signalpegel."
207+
192208
msgid "Red limit [%]"
193209
msgstr "Grenze Rot [%]"
194210

po/es_ES.po

+16-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# VDR plugin language source file.
2-
# Copyright (C) 2007-2018 Rolf Ahrenberg
2+
# Copyright (C) 2007-2019 Rolf Ahrenberg
33
# This file is distributed under the same license as the femon package.
44
# Luis Palacios
55
#
@@ -127,6 +127,15 @@ msgstr "Transpondedor"
127127
msgid "stream"
128128
msgstr "Flujo"
129129

130+
msgid "dBm"
131+
msgstr "dBm"
132+
133+
msgid "dBuV"
134+
msgstr "dBuV"
135+
136+
msgid "dBV"
137+
msgstr "dBV"
138+
130139
msgid "Classic"
131140
msgstr "Clásico"
132141

@@ -187,6 +196,12 @@ msgstr ""
187196
msgid "Define the downscale ratio for OSD size."
188197
msgstr ""
189198

199+
msgid "Signal level unit"
200+
msgstr ""
201+
202+
msgid "Define the used signal level unit."
203+
msgstr ""
204+
190205
msgid "Red limit [%]"
191206
msgstr "Límite de rojo [%s]"
192207

po/et_EE.po

+16-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# VDR plugin language source file.
2-
# Copyright (C) 2007-2018 Rolf Ahrenberg
2+
# Copyright (C) 2007-2019 Rolf Ahrenberg
33
# This file is distributed under the same license as the femon package.
44
# Arthur Konovalov
55
#
@@ -127,6 +127,15 @@ msgstr "transponder"
127127
msgid "stream"
128128
msgstr "voog"
129129

130+
msgid "dBm"
131+
msgstr "dBm"
132+
133+
msgid "dBuV"
134+
msgstr "dBuV"
135+
136+
msgid "dBV"
137+
msgstr "dBV"
138+
130139
msgid "Classic"
131140
msgstr "Classic"
132141

@@ -187,6 +196,12 @@ msgstr "Ekraanimen
187196
msgid "Define the downscale ratio for OSD size."
188197
msgstr "Ekraanimenüü suuruse vähendamise määritlemine"
189198

199+
msgid "Signal level unit"
200+
msgstr ""
201+
202+
msgid "Define the used signal level unit."
203+
msgstr ""
204+
190205
msgid "Red limit [%]"
191206
msgstr "Punase limiit [%]"
192207

po/fi_FI.po

+21-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# VDR plugin language source file.
2-
# Copyright (C) 2007-2018 Rolf Ahrenberg
2+
# Copyright (C) 2007-2019 Rolf Ahrenberg
33
# This file is distributed under the same license as the femon package.
44
# Rolf Ahrenberg
55
#
66
msgid ""
77
msgstr ""
88
"Project-Id-Version: vdr-femon 2.4.0\n"
99
"Report-Msgid-Bugs-To: <see README>\n"
10-
"POT-Creation-Date: 2018-04-15 04:15+0300\n"
10+
"POT-Creation-Date: 2019-10-27 16:29+0200\n"
1111
"PO-Revision-Date: 2018-04-15 04:15+0300\n"
1212
"Last-Translator: Rolf Ahrenberg\n"
1313
"Language-Team: Finnish <[email protected]>\n"
@@ -127,8 +127,17 @@ msgstr "transponderi"
127127
msgid "stream"
128128
msgstr "lähete"
129129

130+
msgid "dBm"
131+
msgstr "dBm"
132+
133+
msgid "dBuV"
134+
msgstr "dBuV"
135+
136+
msgid "dBV"
137+
msgstr "dBV"
138+
130139
msgid "Classic"
131-
msgstr "Klassinen"
140+
msgstr ""
132141

133142
msgid "Elchi"
134143
msgstr "Elchi"
@@ -187,6 +196,12 @@ msgstr "Pienennä näytön kokoa [%]"
187196
msgid "Define the downscale ratio for OSD size."
188197
msgstr "Määrittele näytön pienennyssuhde."
189198

199+
msgid "Signal level unit"
200+
msgstr "Signaalitason yksikkö"
201+
202+
msgid "Define the used signal level unit."
203+
msgstr "Määrittele yksikkö signaalin tasolle."
204+
190205
msgid "Red limit [%]"
191206
msgstr "Punaisen taso [%]"
192207

@@ -390,3 +405,6 @@ msgstr "Mbit/s"
390405

391406
msgid "kbit/s"
392407
msgstr "kbit/s"
408+
409+
#~ msgid "Clasxsic"
410+
#~ msgstr "Klassinen"

po/fr_FR.po

+16-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# VDR plugin language source file.
2-
# Copyright (C) 2007-2018 Rolf Ahrenberg
2+
# Copyright (C) 2007-2019 Rolf Ahrenberg
33
# This file is distributed under the same license as the femon package.
44
# Nicolas Huillard
55
# Michaël Nival <[email protected]>, 2010
@@ -129,6 +129,15 @@ msgstr "transpondeur"
129129
msgid "stream"
130130
msgstr "flux"
131131

132+
msgid "dBm"
133+
msgstr "dBm"
134+
135+
msgid "dBuV"
136+
msgstr "dBuV"
137+
138+
msgid "dBV"
139+
msgstr "dBV"
140+
132141
msgid "Classic"
133142
msgstr "Classique"
134143

@@ -189,6 +198,12 @@ msgstr "Réduit la taille de l'OSD (%)"
189198
msgid "Define the downscale ratio for OSD size."
190199
msgstr "Définit le ration de réduction de l'OSD."
191200

201+
msgid "Signal level unit"
202+
msgstr ""
203+
204+
msgid "Define the used signal level unit."
205+
msgstr ""
206+
192207
msgid "Red limit [%]"
193208
msgstr "Limite du rouge (%)"
194209

po/hu_HU.po

+16-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# VDR plugin language source file.
2-
# Copyright (C) 2007-2018 Rolf Ahrenberg
2+
# Copyright (C) 2007-2019 Rolf Ahrenberg
33
# This file is distributed under the same license as the femon package.
44
# Füley István <ifuley at tigercomp dot ro>, 2011
55
#
@@ -130,6 +130,15 @@ msgstr "transponder"
130130
msgid "stream"
131131
msgstr "adatfolyam (stream)"
132132

133+
msgid "dBm"
134+
msgstr "dBm"
135+
136+
msgid "dBuV"
137+
msgstr "dBuV"
138+
139+
msgid "dBV"
140+
msgstr "dBV"
141+
133142
msgid "Classic"
134143
msgstr "Klasszikus"
135144

@@ -190,6 +199,12 @@ msgstr "Az OSD lem
190199
msgid "Define the downscale ratio for OSD size."
191200
msgstr "Az OSD méretének leméretezése százalékban."
192201

202+
msgid "Signal level unit"
203+
msgstr ""
204+
205+
msgid "Define the used signal level unit."
206+
msgstr ""
207+
193208
msgid "Red limit [%]"
194209
msgstr "Piros színt határa [%]"
195210

po/it_IT.po

+16-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# VDR plugin language source file.
2-
# Copyright (C) 2007-2018 Rolf Ahrenberg
2+
# Copyright (C) 2007-2019 Rolf Ahrenberg
33
# This file is distributed under the same license as the femon package.
44
# Sean Carlos
55
# Diego Pierotto <[email protected]>
@@ -131,6 +131,15 @@ msgstr "transponder"
131131
msgid "stream"
132132
msgstr "flusso"
133133

134+
msgid "dBm"
135+
msgstr "dBm"
136+
137+
msgid "dBuV"
138+
msgstr "dBuV"
139+
140+
msgid "dBV"
141+
msgstr "dBV"
142+
134143
msgid "Classic"
135144
msgstr "Classico"
136145

@@ -191,6 +200,12 @@ msgstr "Riduci dimensione OSD [%]"
191200
msgid "Define the downscale ratio for OSD size."
192201
msgstr "Definisci il rapporto di riduzione della dimensione OSD."
193202

203+
msgid "Signal level unit"
204+
msgstr ""
205+
206+
msgid "Define the used signal level unit."
207+
msgstr ""
208+
194209
msgid "Red limit [%]"
195210
msgstr "Limite rosso [%]"
196211

0 commit comments

Comments
 (0)