------------------------------------------------------------------------ A poll associated with this post was created, to vote and see the results, please visit http://forums.slimdevices.com/showthread.php?t=116649 ------------------------------------------------------------------------ Question: On what player types does the alarm fail for you? - Squeezebox Radio (official firmware 7.x) - Squeezebox Radio (community firmware 8.x) - Squeezebox Touch (official firmware 7.x) - Squeezebox Touch (community firmware 8.x) - SB Classic/Boom/Receiver/Transporter - Other (eg. Raspberry Pi based) ------------------------------------------------------------------------
gordonb3 wrote: > If you could I would appreciate you verifying the patch for the LMS side > I posted earlier (with the 'bad' MaterialSkin). Obviously it is good > when the current issue gets solved from whatever side but I think the > objective should be to stop this forever rather than rely on Craig > fixing it all. I tested this last night and it seemed to work... Code: -------------------- # Don't respond to requests that we created ourselves my $source = $request->source; if ($source && (($source eq 'ALARM') || ($source eq 'PLUGIN_RANDOMPLAY') || (index($source,'playerprefs') != -1))) { warn Data::Dump::dump($request, 'Alarm: ignored event'); main::DEBUGLOG && $isDebug && $log->debug('Ignoring self-created request'); return; } elsif ($source) { warn Data::Dump::dump($request, 'Alarm: fired event'); $log->error("Unknown source: $source"); } -------------------- Here's my test actions/results log: 21:25 - Alarm OK - timeout to end, log file shows source=ALARM 21:40 - Alarm OK - timeout to end, log file shows source=ALARM Opened Material MacOS/Safari, swapped players from BB to SR2 and then to Lounge - left monitoring Lounge 21:55 - Alarm OK - timeout to end, log file shows source=blahblah'playerprefs 22:10 - Alarm OK - Turned of Material player dropdown, log file shows source=ALARM 22:30 - Alarm OK - timeout to end, log file shows source=blahblahplayerprefs 22:40 - Alarm OK - timeout to end, log file shows source=ALARM, changed to SR2 and then back to Lounge in Material 22:50 - Alarm OK - timeout to end, log file shows source=blahblahplayerprefs, changed to SR2 and then back to Lounge in Material 23:00 - Alarm OK - timeout to end, log file shows source=blahblahplayerprefs Here's a debug extract from 21:55 alarm which showed a source of 'playerprefs' but the Alarm still worked: [22-11-26 21:55:00.0011] Slim::Utils::Alarm::sound (516) Alarm triggered for Spare Radio 2 [22-11-26 21:55:00.0020] Slim::Utils::Alarm::sound (560) Sounding alarm [22-11-26 21:55:00.0045] Slim::Utils::Alarm::sound (589) Current Power State: Off [22-11-26 21:55:00.0091] Slim::Utils::Alarm::pushAlarmScreensaver (1839) Attempting to push into alarm screensaver: . Current mode: INPUT.List [22-11-26 21:55:00.0100] Slim::Utils::Alarm::sound (609) Current vol: 18 Alarm vol: 18 [22-11-26 21:55:00.0109] Slim::Utils::Alarm::sound (622) Alarm playlist shufflemode: 0 [22-11-26 21:55:00.0124] Slim::Utils::Alarm::sound (628) Alarm playlist url: sounds://_LIVE_bbc_radio_two [22-11-26 21:55:00.0317] Slim::Utils::Alarm::_setAlarmSubscription (1204) Adding alarm subscription [22-11-26 21:55:00.0329] Slim::Utils::Alarm::sound (697) Scheduling time out in 300 seconds [22-11-26 21:55:00.0338] Slim::Utils::Alarm::_startStopTimeCheck (1880) 0 scheduled alarm(s) [22-11-26 21:55:00.0341] Slim::Utils::Alarm::_startStopTimeCheck (1889) Stopping time checker task [22-11-26 21:55:00.0348] Slim::Utils::Alarm::scheduleNext (1391) Asked to schedule next alarm for Spare Radio 2 [22-11-26 21:55:00.0353] Slim::Utils::Alarm::findNextTime (461) Potential next time found: 14:0:0 27/11/2022 [22-11-26 21:55:00.0356] Slim::Utils::Alarm::findNextTime (466) Last alarm due: 21:55:0 26/11/2022 ~KeBul - removed lots of findNextTime entries~ [22-11-26 21:55:00.0680] Slim::Utils::Alarm::findNextTime (461) Potential next time found: 16:15:0 27/11/2022 [22-11-26 21:55:00.0684] Slim::Utils::Alarm::findNextTime (466) Last alarm due: 21:55:0 26/11/2022 [22-11-26 21:55:00.0688] Slim::Utils::Alarm::scheduleNext (1424) Next alarm is at 22:10:0 26/11/2022 [22-11-26 21:55:00.0692] Slim::Utils::Alarm::scheduleNext (1435) Scheduling alarm [22-11-26 21:55:00.0696] Slim::Utils::Alarm::_startStopTimeCheck (1880) 1 scheduled alarm(s) [22-11-26 21:55:00.0700] Slim::Utils::Alarm::_startStopTimeCheck (1884) Starting time checker task [22-11-26 21:55:00.0785] Slim::Utils::Alarm::_alarmEnd (1970) _alarmEnd called with request: stop [22-11-26 21:55:00.0805] Slim::Utils::Misc::msg (1325) Warning: [21:55:00.0800] ( bless({ _cb_args => undef, _cb_enable => 1, _cb_func => undef, _clientid => "00:04:20:26:1d:b9", _func => sub { "???" }, _isQuery => 0, _langoverride => undef, _needClient => 1, _params => {}, _request => ["stop"], _requeststr => "stop", _results => {}, _source => "/91843e22/slim/playerprefs/00:04:20:26:1d:b9|17||91843e22|Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.1 Safari/605.1.15", _status => 10, _useixhash => 0, }, "Slim::Control::Request"), "Alarm: ignored event", ) at /usr/local/slimserver/Slim/Utils/Alarm.pm line 1981. [22-11-26 21:55:00.0810] Slim::Utils::Alarm::_alarmEnd (1982) Ignoring self-created request [22-11-26 21:55:00.0846] Slim::Utils::Alarm::_alarmEnd (1970) _alarmEnd called with request: power [22-11-26 21:55:00.0866] Slim::Utils::Misc::msg (1325) Warning: [21:55:00.0861] ( bless({ _cb_args => undef, _cb_enable => 1, _cb_func => undef, _clientid => "00:04:20:26:1d:b9", _func => sub { "???" }, _isQuery => 0, _langoverride => undef, _needClient => 1, _params => { _newvalue => 1, _noplay => undef }, _request => ["power"], _requeststr => "power", _results => {}, _source => "/91843e22/slim/playerprefs/00:04:20:26:1d:b9|17||91843e22|Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.1 Safari/605.1.15", _status => 10, _useixhash => 0, }, "Slim::Control::Request"), "Alarm: ignored event", ) at /usr/local/slimserver/Slim/Utils/Alarm.pm line 1981. [22-11-26 21:55:00.0870] Slim::Utils::Alarm::_alarmEnd (1982) Ignoring self-created request [22-11-26 21:55:00.1666] Slim::Utils::Alarm::_alarmEnd (1966) Ignoring unwanted notification: playlist stop [22-11-26 22:00:00.0341] Slim::Utils::Alarm::_timeout (1162) Alarm b609635f ending automatically due to timeout [22-11-26 22:00:00.0429] Slim::Utils::Alarm::popAlarmScreensaver (1866) Attempting to pop alarm screensaver. Current mode: INPUT.List [22-11-26 22:00:01.0434] Slim::Utils::Alarm::__ANON__ (896) Restoring pre-alarm volume level: 18 [22-11-26 22:00:01.0450] Slim::Utils::Alarm::__ANON__ (901) Restoring pre-alarm shuffle mode: 0 [22-11-26 22:00:01.0467] Slim::Utils::Alarm::__ANON__ (905) Restoring pre-alarm power state: off Cheers Kev ------------------------------------------------------------------------ KeBul's Profile: http://forums.slimdevices.com/member.php?userid=32883 View this thread: http://forums.slimdevices.com/showthread.php?t=116649
_______________________________________________ beta mailing list beta@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/beta