PDA

View Full Version : Funcion call question



m_gustafsson
2009-01-05, 08:19
I am pretty new to writing plugins and is trying to write my own first little application.
When trying to use the showBriefly call I get some problems which can be seen in this log:

# cat /var/log/squeezecenter/server.log

[09-01-05 13:41:22.6237] Slim::Display::Display::showBriefly (240) Error: showBriefly should be passed a display hash
[09-01-05 13:41:22.6272] Slim::Display::Display::showBriefly (240) Backtrace:

frame 0: Slim::Utils::Log::logBacktrace (/usr/lib/perl5/vendor_perl/5.8.8/Slim/Display/Display.pm line 240)
frame 1: Slim::Display::Display::showBriefly (Slim/Player/Player.pm line 157)
frame 2: Slim::Player::Player::showBriefly (/var/lib/squeezecenter/Plugins/squeezedVera/lib/Plugins/squeezedVera/Plugin.pm line 214)
frame 3: Plugins::squeezedVera::Plugin::squeezedveraMainMen u (/usr/lib/perl5/vendor_perl/5.8.8/Slim/Buttons/Input/List.pm line 517)
frame 4: Slim::Buttons::Input::List::exitInput (/usr/lib/perl5/vendor_perl/5.8.8/Slim/Buttons/Input/List.pm line 140)
frame 5: Slim::Buttons::Input::List::__ANON__ (/usr/lib/perl5/vendor_perl/5.8.8/Slim/Hardware/IR.pm line 1104)
frame 6: Slim::Hardware::IR::executeButton (/usr/lib/perl5/vendor_perl/5.8.8/Slim/Control/Commands.pm line 278)
frame 7: Slim::Control::Commands::buttonCommand (/usr/lib/perl5/vendor_perl/5.8.8/Slim/Control/Request.pm line 1885)
frame 8: (eval) (/usr/lib/perl5/vendor_perl/5.8.8/Slim/Control/Request.pm line 1885)
frame 9: Slim::Control::Request::execute (/usr/lib/perl5/vendor_perl/5.8.8/Slim/Control/Request.pm line 867)
frame 10: Slim::Control::Request::executeRequest (/usr/lib/perl5/vendor_perl/5.8.8/Slim/Player/Client.pm line 655)
frame 11: Slim::Player::Client::execute (/usr/lib/perl5/vendor_perl/5.8.8/Slim/Hardware/IR.pm line 1125)
frame 12: Slim::Hardware::IR::processCode (/usr/lib/perl5/vendor_perl/5.8.8/Slim/Hardware/IR.pm line 795)
frame 13: Slim::Hardware::IR::processIR (/usr/lib/perl5/vendor_perl/5.8.8/Slim/Control/Commands.pm line 493)
frame 14: Slim::Control::Commands::irCommand (/usr/lib/perl5/vendor_perl/5.8.8/Slim/Control/Request.pm line 1885)
frame 15: (eval) (/usr/lib/perl5/vendor_perl/5.8.8/Slim/Control/Request.pm line 1885)
frame 16: Slim::Control::Request::execute (/usr/lib/perl5/vendor_perl/5.8.8/Slim/Control/Request.pm line 867)
frame 17: Slim::Control::Request::executeRequest (/usr/lib/perl5/vendor_perl/5.8.8/Slim/Player/Client.pm line 655)
frame 18: Slim::Player::Client::execute (/usr/lib/perl5/vendor_perl/5.8.8/Slim/Hardware/IR.pm line 125)
frame 19: Slim::Hardware::IR::idle (/usr/sbin/squeezecenter-server line 517)
frame 20: main::idle (/usr/sbin/squeezecenter-server line 486)
frame 21: main::main (/usr/sbin/squeezecenter-server line 1048)

My call looks like this:
$client->showBriefly("", "Running...");


Any idea on what I am doing wrong?

mherger
2009-01-05, 08:32
> My call looks like this:
> $client->showBriefly("", "Running...");

http://localhost:9000/html/docs/display.html - you'll need to pass showBriefly a hash (as the error message says). The docs should help.

--

Michael

m_gustafsson
2009-01-05, 15:51
Many thanks :-)
I will read the documentation.