kfigiela / denon-raspberry

App for integrating Denon DRA-F109 stereo receiver with Raspberry Pi
MIT License
10 stars 1 forks source link

mpd_demo.rb #1

Open lubino opened 8 years ago

lubino commented 8 years ago

I am trying to run ruby mpd_demo.rb

It ends with this result /var/lib/gems/2.1.0/gems/ruby-mpd-0.3.1/lib/ruby-mpd.rb:144:in 'initialize': Connection refused - connect(2) for "localhost" port 6600 (Errno::ECONNREFUSED) from /var/lib/gems/2.1.0/gems/ruby-mpd-0.3.1/lib/ruby-mpd.rb:144:in 'new' from /var/lib/gems/2.1.0/gems/ruby-mpd-0.3.1/lib/ruby-mpd.rb:144:in 'connect' from mpd_demo.rb:142:in 'block in < main >' from /var/lib/gems/2.1.0/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in 'call' from /var/lib/gems/2.1.0/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in 'run_machine' from /var/lib/gems/2.1.0/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in 'run' from mpd_demo.rb:140:in '< main >'

What is wrong with my configuration? Thanks a lot.

lubino commented 8 years ago

Also ruby web_ui.rb

web_ui.rb:18:in 'class:WebSocketUI': uninitialized constant WebSocketUI::MPDOperations (NameError) from web_ui.rb:17:in '< main >'