mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-07 23:09:26 +00:00
71_YAMAHA_NP: New Feature added. Direct FM frequency setting.
git-svn-id: https://svn.fhem.de/fhem/trunk@10217 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
c609f5b0fd
commit
c398e7c7f1
@ -5,6 +5,7 @@
|
|||||||
- bugfix: 49_SSCam: fixed a bug that functions may impact each other
|
- bugfix: 49_SSCam: fixed a bug that functions may impact each other
|
||||||
- feature: 31_MilightDevice: Add restoreAtStart attribute so group devices (slot 'A') do not restore state by default at startup
|
- feature: 31_MilightDevice: Add restoreAtStart attribute so group devices (slot 'A') do not restore state by default at startup
|
||||||
- bugfix: 30_MilightBridge/31_MilightDevice: Fix startup restore. Fix crash on invalid hostname.
|
- bugfix: 30_MilightBridge/31_MilightDevice: Fix startup restore. Fix crash on invalid hostname.
|
||||||
|
- feature: YAMAHA_NP: Direct FM frequency setting.
|
||||||
- feature: 30_pilight_xyz: possibility to change IO-Device (IODEV)
|
- feature: 30_pilight_xyz: possibility to change IO-Device (IODEV)
|
||||||
- bugfix: YAMAHA_AVR: fixing not correctly volume smoothing
|
- bugfix: YAMAHA_AVR: fixing not correctly volume smoothing
|
||||||
- change: 49_SSCam: turned completly to HttpUtils_NonblockingGet for
|
- change: 49_SSCam: turned completly to HttpUtils_NonblockingGet for
|
||||||
|
@ -207,6 +207,7 @@ sub YAMAHA_NP_Set
|
|||||||
"tunerPresetDAB:1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30 ".
|
"tunerPresetDAB:1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30 ".
|
||||||
"tunerPresetFM:1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30 ".
|
"tunerPresetFM:1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30 ".
|
||||||
"timerHour:0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23 ".
|
"timerHour:0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23 ".
|
||||||
|
"tunerFMFrequency ".
|
||||||
"timerMinute:0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59 ";
|
"timerMinute:0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59 ";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -240,6 +241,7 @@ sub YAMAHA_NP_Set
|
|||||||
"playerListCursorUp:noArg ".
|
"playerListCursorUp:noArg ".
|
||||||
"tunerPresetFM:1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30 ".
|
"tunerPresetFM:1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30 ".
|
||||||
"timerHour:0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23 ".
|
"timerHour:0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23 ".
|
||||||
|
"tunerFMFrequency ".
|
||||||
"timerMinute:0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59 ";
|
"timerMinute:0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59 ";
|
||||||
}
|
}
|
||||||
Log3 $name, 5, "Model: $model.";
|
Log3 $name, 5, "Model: $model.";
|
||||||
@ -692,6 +694,26 @@ sub YAMAHA_NP_Set
|
|||||||
return $usage;
|
return $usage;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
elsif($what eq "tunerFMFrequency")
|
||||||
|
{
|
||||||
|
if ( $a[2] =~ /^[0-9,.E]+$/ ) # Check if value is numeric
|
||||||
|
{
|
||||||
|
if( $a[2] >= 87.50 and $a[2] <= 108.00)
|
||||||
|
{
|
||||||
|
my $frequency = $a[2];
|
||||||
|
$frequency =~ s/\.//; # Remove decimal point
|
||||||
|
YAMAHA_NP_SendCommand($hash, "<YAMAHA_AV cmd=\"PUT\"><Tuner><Play_Control><Tuning><FM><Freq>".$frequency."<\/Freq><\/FM><\/Tuning><\/Play_Control><\/Tuner></YAMAHA_AV>", "tunerFMFrequency", $a[2]);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return "Frequency value must be in the range 87.50 ... 108.00 of the format (x)xx.xx"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return "Frequency value must be numeric in the range 87.50 ... 108.00 of the format (x)xx.xx"
|
||||||
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return $usage;
|
return $usage;
|
||||||
@ -1645,6 +1667,7 @@ sub YAMAHA_NP_html2txt
|
|||||||
<li><b>presetUp</b> - tuner preset up.</li>
|
<li><b>presetUp</b> - tuner preset up.</li>
|
||||||
<li><b>presetDown</b> - tuner preset down.</li>
|
<li><b>presetDown</b> - tuner preset down.</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
<li><b>tunerFMFrequency</b> [87.50 ... 108.00] - Sets the FM frequency. The value must be 87.50 ... 108.00 including the decimal point ('.') with two digits after. Otherwise the value will be ignored.</li>
|
||||||
<li><b>tunerPresetDAB</b> [1...30] - Sets the DAB preset.</li>
|
<li><b>tunerPresetDAB</b> [1...30] - Sets the DAB preset.</li>
|
||||||
<li><b>tunerPresetFM</b> [1...30] - Sets the FM preset.</li>
|
<li><b>tunerPresetFM</b> [1...30] - Sets the FM preset.</li>
|
||||||
<li><b>volume</b> [0...100] - set the volume level in %</li>
|
<li><b>volume</b> [0...100] - set the volume level in %</li>
|
||||||
@ -1894,6 +1917,7 @@ sub YAMAHA_NP_html2txt
|
|||||||
<li><b>presetUp</b> - Tuner Voreinstellung hoch.</li>
|
<li><b>presetUp</b> - Tuner Voreinstellung hoch.</li>
|
||||||
<li><b>presetDown</b> - Tuner Voreinstellung runter.</li>
|
<li><b>presetDown</b> - Tuner Voreinstellung runter.</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
<li><b>tunerFMFrequency</b> [87.50 ... 108.00] - Setzt die FM Frequenz. Der Wert muss zwischen 87.50 ... 108.00 liegen und muss den Digitalpunkt beinhalten ('.') mit zwei Nachkommastellen.</li>
|
||||||
<li><b>tunerPresetDAB</b> [1...30] - Setzt die DAB Voreinstellung.</li>
|
<li><b>tunerPresetDAB</b> [1...30] - Setzt die DAB Voreinstellung.</li>
|
||||||
<li><b>tunerPresetFM</b> [1...30] - Setzt die FM Voreinstellung.</li>
|
<li><b>tunerPresetFM</b> [1...30] - Setzt die FM Voreinstellung.</li>
|
||||||
<li><b>volume</b> [0...100] - Setzt den Lautstärkepegel in %</li>
|
<li><b>volume</b> [0...100] - Setzt den Lautstärkepegel in %</li>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user